mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-04 14:59:22 +08:00
conversation update
This commit is contained in:
parent
38d3c5d94d
commit
ce87ef0a04
@ -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