Error code standardization

This commit is contained in:
skiffer-git 2023-02-07 20:33:56 +08:00
parent 0565474732
commit bf5fbe8d6f

View File

@ -28,10 +28,10 @@ message accountCheckResp{
} }
message getUsersInfoReq{ message getDesignateUsersReq{
repeated string userIDs = 1; repeated string userIDs = 1;
} }
message getUsersInfoResp{ message getDesignateUsersResp{
repeated server_api_params.UserInfo usersInfo = 1; repeated server_api_params.UserInfo usersInfo = 1;
} }
@ -112,11 +112,11 @@ message batchSetConversationsResp{
} }
message getUsersReq { message getPaginationUsersReq {
server_api_params.RequestPagination pagination = 2; server_api_params.RequestPagination pagination = 2;
} }
message getUsersResp{ message getPaginationUsersResp{
int32 total = 1; int32 total = 1;
repeated server_api_params.UserInfo users = 2; repeated server_api_params.UserInfo users = 2;
} }
@ -132,7 +132,7 @@ message userRegisterResp {
service user { service user {
// //
rpc getUsersInfo(getUsersInfoReq) returns(getUsersInfoResp); rpc getDesignateUsers(getUsersInfoReq) returns(getUsersInfoResp);
// //
rpc updateUserInfo(updateUserInfoReq) returns(updateUserInfoResp); rpc updateUserInfo(updateUserInfoReq) returns(updateUserInfoResp);
// //
@ -140,7 +140,7 @@ service user {
//userID是否存在 //userID是否存在
rpc accountCheck(accountCheckReq)returns(accountCheckResp); rpc accountCheck(accountCheckReq)returns(accountCheckResp);
//userID //userID
rpc getPaginationUsers(getUsersReq) returns (getUsersResp); rpc getPaginationUsers(getPaginationUsersReq) returns (getPaginationUsersResp);
// //
rpc userRegister(userRegisterReq) returns (userRegisterResp); rpc userRegister(userRegisterReq) returns (userRegisterResp);
} }