...
|
...
|
@@ -33,6 +33,10 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent |
|
|
}
|
|
|
}
|
|
|
err = models.GetUserMsgTotals(header.UserId, header.CompanyId, request.MsgType, &rsp.Totals)
|
|
|
if rsp.Totals == nil || len(rsp.Totals) == 0 {
|
|
|
rsp.Totals = make([]*protocol.MessageTotal, 0)
|
|
|
return
|
|
|
}
|
|
|
for i := range rsp.Totals {
|
|
|
item := rsp.Totals[i]
|
|
|
if item.MsgType == protocol.MsgTypeThumbUp {
|
...
|
...
|
|