Error code standardization

This commit is contained in:
skiffer-git
2023-02-10 22:10:37 +08:00
parent adc84b68e7
commit 452d9840bf
21 changed files with 1307 additions and 2909 deletions
+4
View File
@@ -1,11 +1,15 @@
package controller
import (
"Open_IM/pkg/proto/msg"
pbMsg "Open_IM/pkg/proto/msg"
"context"
)
type MsgInterface interface {
//消息写入队列
MsgToMQ(ctx context.Context, key string, m *msg.MsgDataToMQ) error
BatchInsertChat2DB(ctx context.Context, userID string, msgList []*pbMsg.MsgDataToMQ, currentMaxSeq uint64) error
BatchInsertChat2Cache(ctx context.Context, insertID string, msgList []*pbMsg.MsgDataToMQ) (error, uint64)