mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-10 20:40:56 +08:00
增加基础的用户邮件通知
This commit is contained in:
24
internal/db/models/user_email_notification_model.go
Normal file
24
internal/db/models/user_email_notification_model.go
Normal 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{}
|
||||
}
|
||||
Reference in New Issue
Block a user