This commit is contained in:
aozhiwei 2024-05-09 19:16:35 +08:00
parent 6b5c288b68
commit 1b9e9459e1
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ type MailDto struct {
MailType int32 `json:"mailtype"`
MailSubType int32 `json:"mailsubtype"`
Ext string `json:"ext"`
Attachment []*AttachmentDto `json:"attachments"`
Attachments []*AttachmentDto `json:"attachments"`
}
type App interface {

View File

@ -100,6 +100,7 @@ func (this *mail) fillMailDto(p *common.MailDto) bool {
p.MailType = this.mailType
p.MailSubType = 0
p.Ext = ""
p.Attachments = make([]*common.AttachmentDto, 0)
for _, ele := range(this.attachments) {
attachment := new(common.AttachmentDto)
attachment.ItemId = ele.itemId