This commit is contained in:
@@ -21,6 +21,7 @@ service AuthService {
|
|||||||
rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse);
|
rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse);
|
||||||
rpc SystemBlockIp(SystemBlockIpRequest) returns (SystemBlockIpResponse);
|
rpc SystemBlockIp(SystemBlockIpRequest) returns (SystemBlockIpResponse);
|
||||||
rpc SystemUnblockIp(SystemUnblockIpRequest) returns (SystemUnblockIpResponse);
|
rpc SystemUnblockIp(SystemUnblockIpRequest) returns (SystemUnblockIpResponse);
|
||||||
|
rpc SystemGetAllAccounts (SystemGetAllAccountsRequest) returns (SystemGetAllAccountsResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginRequest {
|
message LoginRequest {
|
||||||
@@ -156,4 +157,20 @@ message SystemUnblockIpRequest {
|
|||||||
|
|
||||||
message SystemUnblockIpResponse {
|
message SystemUnblockIpResponse {
|
||||||
bool success = 2;
|
bool success = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SystemGetAllAccountsRequest {
|
||||||
|
int32 limit = 1;
|
||||||
|
int32 offset = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AccountBasicItem {
|
||||||
|
string id = 1;
|
||||||
|
string username = 2;
|
||||||
|
string status = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SystemGetAllAccountsResponse {
|
||||||
|
repeated AccountBasicItem accounts = 1;
|
||||||
|
int32 total = 2;
|
||||||
}
|
}
|
||||||
@@ -17,6 +17,8 @@ service UsersService {
|
|||||||
rpc GetBlockedUsers (GetBlockedUsersRequest) returns (GetBlockedUsersResponse);
|
rpc GetBlockedUsers (GetBlockedUsersRequest) returns (GetBlockedUsersResponse);
|
||||||
rpc AddContact (AddContactRequest) returns (AddContactResponse);
|
rpc AddContact (AddContactRequest) returns (AddContactResponse);
|
||||||
rpc GetContacts (GetContactsRequest) returns (GetContactsResponse);
|
rpc GetContacts (GetContactsRequest) returns (GetContactsResponse);
|
||||||
|
|
||||||
|
rpc SystemGetProfileBatch(SystemGetProfileBatchRequest) returns (SystemGetProfileBatchResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserSettingsMessage {
|
message UserSettingsMessage {
|
||||||
@@ -129,4 +131,20 @@ message GetBlockedUsersRequest {
|
|||||||
}
|
}
|
||||||
message GetBlockedUsersResponse {
|
message GetBlockedUsersResponse {
|
||||||
repeated BlockedUserItem blocked_users = 1;
|
repeated BlockedUserItem blocked_users = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SystemGetProfileBatchRequest {
|
||||||
|
repeated string user_ids = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ProfileBasicItem {
|
||||||
|
string id = 1;
|
||||||
|
optional string email = 2;
|
||||||
|
optional string phone = 3;
|
||||||
|
optional string full_name = 4;
|
||||||
|
bool is_public = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SystemGetProfileBatchResponse {
|
||||||
|
repeated ProfileBasicItem profiles = 1;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user