auth.proto 573 B

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