mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-04 23:09:34 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
commit
62920d3dd0
@ -31,5 +31,16 @@ func (c *ConversationChecker) getConn() (*grpc.ClientConn, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *ConversationChecker) GetSingleConversationRecvMsgOpt(ctx context.Context, userID, conversationID string) (int32, error) {
|
func (c *ConversationChecker) GetSingleConversationRecvMsgOpt(ctx context.Context, userID, conversationID string) (int32, error) {
|
||||||
panic("implement me")
|
cc, err := c.getConn()
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
var req conversation.GetConversationReq
|
||||||
|
req.OwnerUserID = userID
|
||||||
|
req.ConversationID = conversationID
|
||||||
|
sConversation, err := conversation.NewConversationClient(cc).GetConversation(ctx, &req)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
return sConversation.GetConversation().RecvMsgOpt, err
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ func (l *ZapLogger) cores() (zap.Option, error) {
|
|||||||
c := zap.NewProductionEncoderConfig()
|
c := zap.NewProductionEncoderConfig()
|
||||||
c.EncodeTime = zapcore.ISO8601TimeEncoder
|
c.EncodeTime = zapcore.ISO8601TimeEncoder
|
||||||
c.EncodeDuration = zapcore.SecondsDurationEncoder
|
c.EncodeDuration = zapcore.SecondsDurationEncoder
|
||||||
|
c.EncodeLevel = zapcore.CapitalLevelEncoder
|
||||||
c.MessageKey = "msg"
|
c.MessageKey = "msg"
|
||||||
c.LevelKey = "level"
|
c.LevelKey = "level"
|
||||||
c.TimeKey = "time"
|
c.TimeKey = "time"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user