contracts/proto/account.proto

25 lines
387 B
Protocol Buffer

syntax = "proto3";
package account.v1;
service AccountService {
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
}
message GetAccountRequest {
string id = 1;
}
message GetAccountResponse {
string id = 1;
string phone = 2;
string email = 3;
bool is_phone_verified = 4;
bool is_email_verified = 5;
Role role = 6;
}
enum Role {
USER = 0;
ADMIN = 1;
}