23 lines
371 B
Protocol Buffer
23 lines
371 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package user;
|
|
|
|
option go_package = "./gen";
|
|
|
|
service UserService {
|
|
rpc Check(CheckRequest) returns (CheckResponse);
|
|
}
|
|
|
|
enum AuthorizationResponse {
|
|
MESSAGE_TYPE_AUTHORIZED= 0;
|
|
MESSAGE_TYPE_UNAUTHORIZED = 1;
|
|
}
|
|
|
|
message CheckRequest {
|
|
string auth_token = 1;
|
|
}
|
|
|
|
message CheckResponse {
|
|
AuthorizationResponse response = 1;
|
|
string user = 2;
|
|
} |