Skip to content

Commit

Permalink
#70 registration with phone contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
drypa committed Aug 19, 2023
1 parent d36aeda commit dfb6fd2
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 51 deletions.
94 changes: 76 additions & 18 deletions api/inside/accounts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion api/inside/accounts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ message GetUsersResponse {

message UserRegistrationRequest {
int32 telegramId = 1;
string phoneNumber = 2;
}

message UserRegistrationResponse {
string userId = 1;
}
}

message PhoneVerificationRequest {
int32 telegramId = 1;
string code = 2;
}

101 changes: 69 additions & 32 deletions api/inside/contracts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/inside/contracts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ service InternalApi {

}

rpc VerifyPhone(PhoneVerificationRequest) returns (ErrorResponse) {

}

rpc GetFirstUnckeckedRequest (NoParams) returns (ReceiptRequest) {

}
Expand Down

0 comments on commit dfb6fd2

Please sign in to comment.