123456789101112131415161718192021222324252627282930313233 |
- syntax = "proto3";
- option go_package = "./pb";
- package pb;
- message PlayerAuthReq{
- string player_id = 1;
- string game_id = 2;
- }
- message CsAuthReq{
- string cs_id = 1;
- }
- message AuthResp{
- string access_token = 1;
- }
- message CheckAuthReq{
- int64 type = 1;
- string access_token = 2;
- }
- message CheckAuthResp{
- string uid = 1;
- }
- service Auth{
- rpc playerAuth (PlayerAuthReq) returns (AuthResp);
- rpc csAuth (CsAuthReq) returns (AuthResp);
- rpc checkAuth (CheckAuthReq) returns (CheckAuthResp);
- }
|