增加基础的用户邮件通知

This commit is contained in:
刘祥超
2022-12-27 18:53:49 +08:00
parent 874139ea07
commit c9b666e5bc
8 changed files with 64 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
package models
// UserEmailNotification 邮件通知队列
type UserEmailNotification struct {
Id uint64 `field:"id"` // ID
Email string `field:"email"` // 邮箱地址
Subject string `field:"subject"` // 标题
Body string `field:"body"` // 内容
CreatedAt uint64 `field:"createdAt"` // 创建时间
Day string `field:"day"` // YYYYMMDD
}
type UserEmailNotificationOperator struct {
Id any // ID
Email any // 邮箱地址
Subject any // 标题
Body any // 内容
CreatedAt any // 创建时间
Day any // YYYYMMDD
}
func NewUserEmailNotificationOperator() *UserEmailNotificationOperator {
return &UserEmailNotificationOperator{}
}