auth.proto 508 B

123456789101112131415161718192021222324252627282930313233
  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. int64 type = 1;
  16. string access_token = 2;
  17. }
  18. message CheckAuthResp{
  19. string uid = 1;
  20. }
  21. service Auth{
  22. rpc playerAuth (PlayerAuthReq) returns (AuthResp);
  23. rpc csAuth (CsAuthReq) returns (AuthResp);
  24. rpc checkAuth (CheckAuthReq) returns (CheckAuthResp);
  25. }