24 lines
549 B
Go
24 lines
549 B
Go
package types
|
|
|
|
const (
|
|
// ForthwithSendEmail forthwith send email
|
|
ForthwithSendEmail = "forthwith:email:send"
|
|
)
|
|
|
|
const (
|
|
EmailTypeVerify = "verify"
|
|
EmailTypeMaintenance = "maintenance"
|
|
EmailTypeExpiration = "expiration"
|
|
EmailTypeTrafficExceed = "traffic_exceed"
|
|
EmailTypeCustom = "custom"
|
|
)
|
|
|
|
type (
|
|
SendEmailPayload struct {
|
|
Type string `json:"type"`
|
|
Email string `json:"to"`
|
|
Subject string `json:"subject"`
|
|
Content map[string]interface{} `json:"content"`
|
|
}
|
|
)
|