contracts/proto/users.proto
Sergey Krylov f54e1456b4
Some checks are pending
Publish / Publish npm package action (push) Has started running
feat: add user update
2026-03-04 06:45:46 +03:00

42 lines
711 B
Protocol Buffer

syntax = "proto3";
package users.v1;
service UsersService {
rpc GetMe (GetMeRequest) returns (GetMeResponse);
rpc CreateUser (CreateUserRequest) returns (CreateUserResponse);
rpc PatchUser (PatchUserRequest) returns (PatchUserResponse);
}
message GetMeRequest {
string id = 1;
}
message GetMeResponse {
User user = 1;
}
message CreateUserRequest {
string id = 1;
}
message CreateUserResponse {
bool ok = 1;
}
message User {
string id = 1;
optional string name = 2;
optional string phone = 3;
optional string email = 4;
optional string avatar = 5;
}
message PatchUserRequest {
string user_id = 1;
optional string name = 2;
}
message PatchUserResponse {
bool ok = 1;
}