refactor(log): consolidate logging models and update related logic for improved clarity and functionality
This commit is contained in:
+12
-4
@@ -7,11 +7,19 @@ const (
|
||||
ScheduledBatchSendEmail = "scheduled:email:batch"
|
||||
)
|
||||
|
||||
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 string `json:"content"`
|
||||
Type string `json:"type"`
|
||||
Email string `json:"to"`
|
||||
Subject string `json:"subject"`
|
||||
Content map[string]interface{} `json:"content"`
|
||||
}
|
||||
)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package types
|
||||
|
||||
const (
|
||||
// ForthwithSendEmail forthwith send email
|
||||
// ForthwithSendSms forthwith send email
|
||||
ForthwithSendSms = "forthwith:sms:send"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user