gateway.proto 450 B

123456789101112131415161718192021222324252627
  1. syntax = "proto3";
  2. option go_package = "./pb";
  3. package pb;
  4. message PlayerLoginReq {
  5. string player_id = 1;
  6. string game_id = 2;
  7. }
  8. message CsLoginReq{
  9. string user_name = 1;
  10. string password = 2;
  11. }
  12. message LoginResp {
  13. string access_token = 1;
  14. int64 access_expire = 2;
  15. int64 refresh_after = 3;
  16. string url = 4;
  17. }
  18. service gateway {
  19. rpc playerLogin (PlayerLoginReq)returns(LoginResp);
  20. rpc csLogin (CsLoginReq)returns(LoginResp);
  21. }