You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.4 KiB
74 lines
1.4 KiB
4 years ago
|
syntax = "proto3";
|
||
|
option go_package = "user;user";
|
||
|
package user;
|
||
|
|
||
|
message CommonResp{
|
||
|
int32 errorCode = 1;
|
||
|
string errorMsg = 2;
|
||
|
}
|
||
3 years ago
|
message DeleteUsersResp{
|
||
|
CommonResp commonResp = 1;
|
||
|
repeated string failedUidList = 2;
|
||
|
}
|
||
|
message DeleteUsersReq{
|
||
|
repeated string deleteUidList = 2;
|
||
|
string token = 3;
|
||
|
string OperationID = 4;
|
||
|
}
|
||
|
message GetAllUsersUidReq{
|
||
|
string token = 2;
|
||
|
string operationID = 3;
|
||
4 years ago
|
|
||
3 years ago
|
}
|
||
|
message GetAllUsersUidResp{
|
||
|
CommonResp commonResp = 1;
|
||
|
repeated string uidList = 2;
|
||
|
|
||
|
}
|
||
4 years ago
|
message GetUserInfoReq{
|
||
|
repeated string userIDList = 1;
|
||
|
string token = 2;
|
||
|
string OperationID = 3;
|
||
|
}
|
||
|
message GetUserInfoResp{
|
||
|
int32 errorCode = 1;
|
||
|
string errorMsg = 2;
|
||
|
repeated UserInfo Data = 3;
|
||
|
}
|
||
|
message UserInfo{
|
||
|
string uid = 1;
|
||
|
string name = 2;
|
||
|
string icon = 3;
|
||
|
int32 gender = 4;
|
||
|
string mobile = 5;
|
||
|
string birth = 6;
|
||
|
string email = 7;
|
||
|
string ex = 8;
|
||
|
}
|
||
|
|
||
|
|
||
|
message LogoutReq{
|
||
|
string OperationID = 1;
|
||
|
string token = 2;
|
||
|
}
|
||
|
|
||
|
message UpdateUserInfoReq{
|
||
|
string icon = 1;
|
||
|
string name = 2;
|
||
|
int32 gender = 3;
|
||
|
string mobile = 4;
|
||
|
string birth = 5;
|
||
|
string email = 6;
|
||
|
string ex = 7;
|
||
|
string token = 8;
|
||
|
string OperationID = 9;
|
||
3 years ago
|
string Uid = 10;
|
||
4 years ago
|
}
|
||
|
|
||
|
service user {
|
||
|
rpc getUserInfo(GetUserInfoReq) returns(GetUserInfoResp);
|
||
|
rpc UpdateUserInfo(UpdateUserInfoReq) returns(CommonResp);
|
||
3 years ago
|
rpc DeleteUsers(DeleteUsersReq)returns(DeleteUsersResp);
|
||
|
rpc GetAllUsersUid(GetAllUsersUidReq)returns(GetAllUsersUidResp);
|
||
4 years ago
|
}
|