auth.proto 471 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto3";
  2. option go_package = "./pb";
  3. package pb;
  4. message PlayerAuthReq{
  5. string player_id = 1;
  6. string game_id = 2;
  7. }
  8. message CsAuthReq{
  9. string cs_id = 1;
  10. }
  11. message AuthResp{
  12. string access_token = 1;
  13. }
  14. message CheckAuthReq{
  15. string access_token = 1;
  16. }
  17. message CheckAuthResp{}
  18. service Auth{
  19. rpc playerAuth (PlayerAuthReq) returns (AuthResp);
  20. rpc csAuth (CsAuthReq) returns (AuthResp);
  21. rpc checkAuth (CheckAuthReq) returns (CheckAuthResp);
  22. }