12345678910111213141516171819202122232425262728293031323334353637 |
- syntax = "proto3";
- option go_package = "./pb";
- package pb;
- import "google/protobuf/struct.proto";
- message AuthReq{
- google.protobuf.Struct data = 1;
- }
- message PlayerAuthReq{
- string player_id = 1;
- string game_id = 2;
- }
- message CsAuthReq{
- string uname = 1;
- string password = 2;
- }
- message CheckAuthReq{
- string token = 1;
- }
- message AuthResp{
- int64 code = 1;
- string msg = 2;
- google.protobuf.Struct data = 3;
- }
- service Auth{
- rpc playerAuth (PlayerAuthReq) returns (AuthResp);
- rpc csAuth (CsAuthReq) returns (AuthResp);
- rpc checkAuth (CheckAuthReq) returns (AuthResp);
- }
|