This commit is contained in:
wangchuxiao
2023-03-17 19:54:23 +08:00
parent 0bd80a81eb
commit 69106a4cca
3 changed files with 215 additions and 206 deletions
+10
View File
@@ -2,6 +2,7 @@ package user
import (
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/controller"
@@ -192,3 +193,12 @@ func (s *userServer) GetGlobalRecvMessageOpt(ctx context.Context, req *pbuser.Ge
resp.GlobalRecvMsgOpt = user[0].GlobalRecvMsgOpt
return resp, nil
}
func (s *userServer) GetAllUserID(ctx context.Context, req *pbuser.GetAllUserIDReq) (resp *pbuser.GetAllUserIDResp, err error) {
userIDs, err := s.UserDatabase.GetAllUserID(ctx)
if err != nil {
return nil, err
}
resp = &pbuser.GetAllUserIDResp{UserIDList: userIDs}
return resp, nil
}