1
This commit is contained in:
parent
0d9060ff18
commit
5d40750280
10
server/mailserver/model/inbox.go
Normal file
10
server/mailserver/model/inbox.go
Normal file
@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
type inbox struct {
|
||||
|
||||
}
|
||||
|
||||
var Inbox = new(inbox)
|
||||
|
||||
func (this *inbox) Mark(accountId string, mailId int64) {
|
||||
}
|
@ -6,6 +6,7 @@ import (
|
||||
"sync"
|
||||
"main/common"
|
||||
"main/constant"
|
||||
"main/model"
|
||||
)
|
||||
|
||||
type inbox struct {
|
||||
@ -49,24 +50,7 @@ func (this *player) MarkMails(mails []common.Mail) error {
|
||||
if m.IsValid(this) {
|
||||
mi := this.getInbox(m.GetMailId())
|
||||
if mi == nil {
|
||||
f5.GetGoStyleDb().Upsert(
|
||||
constant.MAIL_DB,
|
||||
"t_inbox",
|
||||
[][]string{
|
||||
|
||||
},
|
||||
[][]string{
|
||||
|
||||
},
|
||||
[][]string{
|
||||
|
||||
},
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
resultErr = err
|
||||
return
|
||||
}
|
||||
})
|
||||
model.Inbox.Mark(this.GetAccountId(), m.GetMailId())
|
||||
}
|
||||
}
|
||||
if resultErr != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user