mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 09:05:59 +08:00
user update
This commit is contained in:
@@ -49,7 +49,7 @@ func (u *UserGorm) Page(ctx context.Context, pageNumber, showNumber int32) (user
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = utils.Wrap(u.db(ctx).Limit(int(showNumber)).Offset(int(pageNumber*showNumber)).Find(&users).Error, "")
|
||||
err = utils.Wrap(u.db(ctx).Limit(int(showNumber)).Offset(int(pageNumber*showNumber)).Find(&users).Order("create_time DESC").Error, "")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -151,5 +151,7 @@ service user {
|
||||
rpc getPaginationUsers(getPaginationUsersReq) returns (getPaginationUsersResp);
|
||||
//用户注册
|
||||
rpc userRegister(userRegisterReq) returns (userRegisterResp);
|
||||
//获取所有用户ID
|
||||
rpc getAllUserID(getAllUserIDReq) returns (getAllUserIDResp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user