This commit is contained in:
aozhiwei 2024-08-07 09:43:10 +08:00
parent 82215f3d35
commit 11e66e3e18

View File

@ -16,14 +16,14 @@ Recipients:
Attachments:
[
{
"item_id": 100001,
"item_num": 100
"itemid": 100001,
"itemnum": 100
}
]
*/
type Mail struct {
UniKey *string `gorm:"column:unikey" json:"unikey"`
UniKey *string `gorm:"column:unikey;<-:create" json:"unikey"`
MailId int64 `gorm:"primaryKey;column:mail_id;<-:create" json:"mail_id,string"`
MailType int32 `gorm:"column:mail_type;<-:create" json:"mail_type"`
Subject string `gorm:"column:subject" json:"subject"`
@ -34,8 +34,8 @@ type Mail struct {
SendTime int32 `gorm:"column:sendtime" json:"sendtime"`
UserRegStartTime int32 `gorm:"column:user_reg_start_time" json:"user_reg_start_time"`
UserRegEndTime int32 `gorm:"column:user_reg_end_time" json:"user_reg_end_time"`
Tag1 int32 `gorm:"column:tag1" json:"tag1"`
Tag2 int32 `gorm:"column:tag2;" json:"tag2"`
Tag1 int32 `gorm:"column:tag1;<-:create" json:"tag1"`
Tag2 int32 `gorm:"column:tag2;<-:create" json:"tag2"`
ExpireTime int32 `gorm:"column:expiretime" json:"expiretime"`
CreateTime int32 `gorm:"column:createtime;<-:create" json:"createtime"`
ModifyTime int32 `gorm:"column:modifytime" json:"modifytime"`