mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
Error code standardization
This commit is contained in:
parent
6201e5c206
commit
7e9b8f6808
@ -100,5 +100,12 @@ func (u *UserCheck) GetPublicUserInfoMap(ctx context.Context, userIDs []string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserCheck) GetUserGlobalMsgRecvOpt(ctx context.Context, userID string) (int32, error) {
|
func (u *UserCheck) GetUserGlobalMsgRecvOpt(ctx context.Context, userID string) (int32, error) {
|
||||||
return 0, nil
|
cc, err := u.getConn()
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
resp, err := user.NewUserClient(cc).GetGlobalRecvMessageOpt(ctx, &user.GetGlobalRecvMessageOptReq{
|
||||||
|
UserID: userID,
|
||||||
|
})
|
||||||
|
return resp.GlobalRecvMsgOpt, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user