1
This commit is contained in:
parent
4b9b875599
commit
fd3ce243cd
@ -1,10 +1,19 @@
|
||||
package system
|
||||
|
||||
type Mail struct {
|
||||
Idx uint64 `json:"idx"`
|
||||
Username string `gorm:"uniqueIndex;comment:用户登录名" json:"username"`
|
||||
Password string `gorm:"comment:用户登录密码" json:"password"`
|
||||
Roles []string `json:"roles" gorm:"-"'`
|
||||
MailId int64 `gorm:unique, "column:mail_id"`
|
||||
MailType int32 `gorm:"column:mail_type"`
|
||||
Subject string `gorm:"column:subject"`
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user