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"
|
"sync"
|
||||||
"main/common"
|
"main/common"
|
||||||
"main/constant"
|
"main/constant"
|
||||||
|
"main/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type inbox struct {
|
type inbox struct {
|
||||||
@ -49,24 +50,7 @@ func (this *player) MarkMails(mails []common.Mail) error {
|
|||||||
if m.IsValid(this) {
|
if m.IsValid(this) {
|
||||||
mi := this.getInbox(m.GetMailId())
|
mi := this.getInbox(m.GetMailId())
|
||||||
if mi == nil {
|
if mi == nil {
|
||||||
f5.GetGoStyleDb().Upsert(
|
model.Inbox.Mark(this.GetAccountId(), m.GetMailId())
|
||||||
constant.MAIL_DB,
|
|
||||||
"t_inbox",
|
|
||||||
[][]string{
|
|
||||||
|
|
||||||
},
|
|
||||||
[][]string{
|
|
||||||
|
|
||||||
},
|
|
||||||
[][]string{
|
|
||||||
|
|
||||||
},
|
|
||||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
|
||||||
if err != nil {
|
|
||||||
resultErr = err
|
|
||||||
return
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if resultErr != nil {
|
if resultErr != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user