api.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. syntax = "proto3";
  2. option go_package = "v1";
  3. option (gogoproto.goproto_getters_all) = false;
  4. package ugcpay.service.rank.v1;
  5. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  6. import "app/service/main/ugcpay-rank/internal/model/model.proto";
  7. import "google/protobuf/empty.proto";
  8. message RankElecAVReq{
  9. int64 UPMID = 1 ;
  10. int64 AVID = 2 ;
  11. int64 RankSize = 3 [(gogoproto.casttype) = "int"];
  12. }
  13. message RankElecUPReq{
  14. int64 UPMID = 1 ;
  15. int64 RankSize = 2 [(gogoproto.casttype) = "int"];
  16. }
  17. message RankElecMonthReq{
  18. int64 UPMID = 1 ;
  19. int64 AVID = 2 ;
  20. int64 RankSize = 3 [(gogoproto.casttype) = "int"];
  21. }
  22. message RankElecMonthResp{
  23. main.account.ugcpay.service.model.RankElecUPProto UP = 1 ;
  24. main.account.ugcpay.service.model.RankElecAVProto AV = 2 ;
  25. }
  26. message RankElecUPResp{
  27. main.account.ugcpay.service.model.RankElecUPProto UP = 1 ;
  28. }
  29. message RankElecAVResp{
  30. main.account.ugcpay.service.model.RankElecAVProto AV = 1 ;
  31. }
  32. message RankElecUpdateOrderReq{
  33. int64 AVID = 1 ;
  34. int64 UPMID = 2 ;
  35. int64 PayMID = 3 ;
  36. int64 Ver = 4 ;
  37. int64 Fee = 5 ;
  38. }
  39. message RankElecUpdateMessageReq{
  40. int64 AVID = 1 ;
  41. int64 UPMID = 2 ;
  42. int64 PayMID = 3 ;
  43. int64 Ver = 4 ;
  44. string Message = 5 ;
  45. bool Hidden = 6 ;
  46. }
  47. service UGCPayRank {
  48. rpc RankElecAllAV(RankElecAVReq) returns (RankElecAVResp);
  49. rpc RankElecMonthAV(RankElecAVReq) returns (RankElecAVResp);
  50. rpc RankElecMonthUP(RankElecUPReq) returns (RankElecUPResp);
  51. rpc RankElecMonth(RankElecMonthReq) returns (RankElecMonthResp);
  52. rpc RankElecUpdateOrder(RankElecUpdateOrderReq) returns (.google.protobuf.Empty);
  53. rpc RankElecUpdateMessage(RankElecUpdateMessageReq) returns (.google.protobuf.Empty);
  54. }