This commit is contained in:
aozhiwei 2024-04-27 12:52:50 +08:00
parent 4b9b875599
commit fd3ce243cd

View File

@ -1,10 +1,19 @@
package system package system
type Mail struct { type Mail struct {
Idx uint64 `json:"idx"` MailId int64 `gorm:unique, "column:mail_id"`
Username string `gorm:"uniqueIndex;comment:用户登录名" json:"username"` MailType int32 `gorm:"column:mail_type"`
Password string `gorm:"comment:用户登录密码" json:"password"` Subject string `gorm:"column:subject"`
Roles []string `json:"roles" gorm:"-"'` Content string `gorm:"column:content"`
Reciver string `gorm:"column:reciver"`
Attachments string `gorm:"column:attachments"`
Deleted int32 `gorm:"column:deleted"`
SendTime int32 `gorm:"column:sendtime"`
UserRegStartTime int32 `gorm:"column:user_reg_start_time"`
UserRegEndTime int32 `gorm:"column:user_reg_end_time"`
ExpireTime int32 `gorm:"column:expiretime"`
CreateTime int32 `gorm:"column:createtime"`
ModifyTime int32 `gorm:"column:modifytime"`
} }
func (Mail) TableName() string { func (Mail) TableName() string {