-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39ec10d
commit d4a49e2
Showing
9 changed files
with
658 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
|
||
package pb; | ||
|
||
option go_package = "/pb"; | ||
|
||
|
||
message CheckTokenRequest { | ||
string token = 1; | ||
} | ||
|
||
message CheckTokenResponse { | ||
bool authorize = 1; | ||
uint64 userId = 2; | ||
} | ||
|
||
message GetUserInformationRequest { | ||
uint64 userId = 1; | ||
} | ||
|
||
message GetUserResponse { | ||
string Avatar = 1; | ||
string FirstName = 2; | ||
string LastName = 3; | ||
string MiddleName = 4; | ||
string Email = 5; | ||
} | ||
|
||
service AuthService { | ||
rpc CheckToken(CheckTokenRequest) returns (CheckTokenResponse); | ||
rpc GetUserInformation(GetUserInformationRequest) returns (GetUserResponse); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.