initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

39
pkg/email/interface.go Normal file
View File

@@ -0,0 +1,39 @@
package email
import "context"
type Email interface {
Send(ctx context.Context, params Request) (*Response, error)
}
type Response struct {
ID string `json:"id"`
Status string `json:"status"`
}
type Request struct {
Html string
RecipientAddress string
UserFullName string
Subject string
From string
To string
Template TemplateData
}
type Template string
const (
TemplateWelcome = "welcome"
TemplatePasswordReset = "password_reset"
TemplateEmailVerification = "email_verification"
)
func (e Template) String() string {
return string(e)
}
type TemplateData struct {
EmailTemplateName Template
Data any
}