hi-server/queue/types/email.go
shanshanzhong dcdbabdb13
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m34s
注销
2026-03-17 07:12:42 -07:00

26 lines
650 B
Go

package types
const (
// ForthwithSendEmail forthwith send email
ForthwithSendEmail = "forthwith:email:send"
)
const (
EmailTypeVerify = "verify"
EmailTypeMaintenance = "maintenance"
EmailTypeExpiration = "expiration"
EmailTypeTrafficExceed = "traffic_exceed"
EmailTypeDeleteAccount = "delete_account"
EmailTypeCustom = "custom"
)
type (
SendEmailPayload struct {
Type string `json:"type"`
Scene string `json:"scene,omitempty"`
Email string `json:"to"`
Subject string `json:"subject"`
Content map[string]interface{} `json:"content"`
}
)