|
@@ -3,11 +3,14 @@ package common
|
|
|
import (
|
|
|
"app.yhyue.com/moapp/MessageCenter/entity"
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/type/message"
|
|
|
+ "app.yhyue.com/moapp/MessageCenter/util"
|
|
|
qutil "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
"context"
|
|
|
"errors"
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -37,7 +40,7 @@ func (service *MessageService) ChangeReadStatus(data *message.ChangeReadStatusRe
|
|
|
}
|
|
|
|
|
|
// 未读消息合计 isRedis 是否需要初始化redis
|
|
|
-/*func (service *MessageService) CountUnread(userId string, isRedis bool) (map[string]int64, int64) {
|
|
|
+func (service *MessageService) CountUnread(userId string, isRedis bool) (map[string]int64, int64) {
|
|
|
var (
|
|
|
count int64
|
|
|
msgTypes, groupIds []string
|
|
@@ -105,7 +108,7 @@ func (service *MessageService) CountClassUnread(userId string, groupId int64) (c
|
|
|
}
|
|
|
|
|
|
return data, count
|
|
|
-}*/
|
|
|
+}
|
|
|
|
|
|
// 查询消息详情
|
|
|
func FindMessageDetail(id, msgLogId int64, userId string) (msg *map[string]interface{}, err error) {
|