This commit is contained in:
aozhiwei 2024-05-11 16:02:06 +08:00
parent 17a07580b1
commit afe8d82426
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ type Mail struct {
Subject string `gorm:"column:subject" json:"subject"`
Content string `gorm:"column:content" json:"content"`
Recipients []string `gorm:"column:recipients;serializer:json" json:"recipients"`
Attachments []common.Attachment `gorm:"column:attachments" json:"attachments"`
Attachments []common.Attachment `gorm:"column:attachments;serializer:json" json:"attachments"`
Deleted int32 `gorm:"column:deleted" json:"deleted"`
SendTime int32 `gorm:"column:sendtime" json:"sendtime"`
UserRegStartTime int32 `gorm:"column:user_reg_start_time" json:"user_reg_start_time"`

View File

@ -9,8 +9,8 @@ import (
)
type attachment struct {
itemId int32 `json:"item_id"`
itemNum int32 `json:"item_num"`
itemId int32 `json:"itemid"`
itemNum int32 `json:"itemnum"`
}
type mail struct {