refactor all proto files

This commit is contained in:
Дмитрий
2026-04-02 20:10:53 +03:00
parent dbf71f91ef
commit 31d02ab7d8
13 changed files with 285 additions and 4820 deletions

39
proto/account.proto Normal file
View File

@@ -0,0 +1,39 @@
syntax = "proto3";
package account;
service AccountService {
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
}
message GetAccountRequest {
string id = 1;
}
message GetAccountResponse {
string id = 1;
string username = 2;
string email = 3;
string phone = 4;
string full_name = 5;
bool is_ldap = 6;
string status = 7;
repeated string roles = 8;
string avatar_url = 9;
optional string employee_id = 10;
Presence presence = 11;
string last_active = 12;
string custom_status_text = 13;
string custom_status_emoji = 14;
string timezone = 15;
string language = 16;
bool two_fa_enabled = 17;
bool has_pin = 18;
}
enum Presence {
PRESENCE_UNSPECIFIED = 0;
OFFLINE = 1;
ONLINE = 2;
}