1
This commit is contained in:
parent
9ccd6ecc38
commit
69bb3fc403
@ -1,12 +1,10 @@
|
||||
package mail
|
||||
|
||||
import (
|
||||
"q5"
|
||||
"f5"
|
||||
"sync"
|
||||
"main/common"
|
||||
//"main/constant"
|
||||
//"q5"
|
||||
//"strings"
|
||||
)
|
||||
|
||||
type attachment struct {
|
||||
@ -48,7 +46,23 @@ func (this *mail) GetMailId() int64 {
|
||||
return this.mailId
|
||||
}
|
||||
|
||||
func (this *mail) fillMailDto(mailDto *common.MailDto) bool {
|
||||
func (this *mail) fillMailDto(p *common.MailDto) bool {
|
||||
p.MailId = q5.ToString(this.mailId)
|
||||
p.From = ""
|
||||
p.To = ""
|
||||
p.Subject = this.subject
|
||||
p.Content = this.content
|
||||
//p.Flags
|
||||
p.SendTime = this.sendTime
|
||||
p.ExpireTime = this.expireTime
|
||||
p.MailType = this.mailType
|
||||
//p.MailSubType =
|
||||
//p.Ext
|
||||
for _, ele := range(this.attachments) {
|
||||
attachment := new(common.AttachmentDto)
|
||||
attachment.ItemId = ele.itemId
|
||||
attachment.ItemNum = ele.itemNum
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user