42 lines
810 B
Protocol Buffer
42 lines
810 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package account.v1;
|
|
|
|
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
|
|
|
|
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;
|
|
}
|
|
|