mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-12 06:21:16 +08:00
redis model update
This commit is contained in:
parent
7308d0f9c6
commit
d8ce122254
@ -19,7 +19,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/mitchellh/mapstructure"
|
||||
)
|
||||
|
||||
//func (d * DataBases)pubMessage(channel, msg string) {
|
||||
@ -55,15 +54,6 @@ func (d *DataBases) NewGetMessageListBySeq(userID string, seqList []uint32, oper
|
||||
}
|
||||
return seqMsg, failedSeqList, errResult
|
||||
}
|
||||
func Map2Pb(m map[string]string) (*pbCommon.MsgData, error) {
|
||||
var data pbCommon.MsgData
|
||||
err := mapstructure.Decode(m, &data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &data, nil
|
||||
}
|
||||
|
||||
func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid string, operationID string) error {
|
||||
ctx := context.Background()
|
||||
var failedList []pbChat.MsgDataToMQ
|
||||
|
Loading…
x
Reference in New Issue
Block a user