auth.proto 525 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. option go_package = "./pb";
  3. package pb;
  4. import "google/protobuf/struct.proto";
  5. message PlayerAuthReq{
  6. string player_id = 1;
  7. string game_id = 2;
  8. }
  9. message CsAuthReq{
  10. string cs_id = 1;
  11. }
  12. message CheckAuthReq{
  13. string access_token = 1;
  14. }
  15. message AuthResp{
  16. int64 code = 1;
  17. string msg = 2;
  18. google.protobuf.Struct data = 3;
  19. }
  20. service Auth{
  21. rpc playerAuth (PlayerAuthReq) returns (AuthResp);
  22. rpc csAuth (CsAuthReq) returns (AuthResp);
  23. rpc checkAuth (CheckAuthReq) returns (AuthResp);
  24. }