feat: refactors all proto files
Some checks failed
Publish / Publish Job (push) Failing after 2m21s

This commit is contained in:
Дмитрий
2026-04-11 14:16:12 +03:00
parent 9551822665
commit 2bc4708f31
7 changed files with 186 additions and 115 deletions

60
proto/users/users.proto Normal file
View File

@@ -0,0 +1,60 @@
syntax = "proto3";
package users.v1;
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service UsersService {
rpc GetMe(GetMeRequest) returns (GetMeResponse);
rpc ChangeMe(ChangeMeRequest) returns (ChangeMeResponse);
rpc CreateUserRequest (CreateUserRequest) returns (CreateUserResponse);
}
message GetMeRequest {
string id = 1;
}
message GetMeResponse {
User user = 1;
}
message CreateUserRequest {
string id = 1;
}
message CreateUserResponse {
string success = 1;
}
message ChangeMeRequest {
string user_id = 1;
string session_id = 2;
optional string email = 3;
optional string phone = 4;
optional string full_name = 5;
optional string avatar_url = 6;
optional string custom_status_text = 7;
optional string custom_status_emoji = 8;
optional string timezone = 9;
optional string language = 10;
optional bool is_public = 11;
}
message ChangeMeResponse {
bool success = 1;
string message = 2;
}
message User {
string id = 1;
optional string username = 2;
optional string email = 3;
optional string phone = 4;
optional string full_name = 5;
bool is_ldap = 6;
optional string status = 7;
repeated string roles = 8;
optional string avatar_url = 9;
optional string employee_id = 10;
optional string presence = 11;
optional string last_active = 12;
optional string custom_status_text = 13;
optional string custom_status_emoji = 14;
optional string timezone = 15;
optional string language = 16;
bool two_fa_enabled = 17;
bool has_pin = 18;
}