go_game_client.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // Code generated by goctl. DO NOT EDIT.
  2. // goctl 1.10.1
  3. // Source: gorpc.proto
  4. package gogameclient
  5. import (
  6. "context"
  7. "code.flashlink.me/nomo-server/go-service-pb/pb/pb"
  8. "github.com/zeromicro/go-zero/zrpc"
  9. "google.golang.org/grpc"
  10. )
  11. type (
  12. Empty = pb.Empty
  13. GameCategoryListReq = pb.GameCategoryListReq
  14. GameCategoryListRes = pb.GameCategoryListRes
  15. GameCategoryReq = pb.GameCategoryReq
  16. GameCategoryVo = pb.GameCategoryVo
  17. GameCustomerAddResp = pb.GameCustomerAddResp
  18. GameCustomerListReq = pb.GameCustomerListReq
  19. GameCustomerListRes = pb.GameCustomerListRes
  20. GameCustomerVo = pb.GameCustomerVo
  21. GameListReq = pb.GameListReq
  22. GameListRes = pb.GameListRes
  23. GameRedisHScanByNameReq = pb.GameRedisHScanByNameReq
  24. GameRedisHScanByNameResp = pb.GameRedisHScanByNameResp
  25. GameReq = pb.GameReq
  26. GameVo = pb.GameVo
  27. Ids = pb.Ids
  28. RelGameRankListReq = pb.RelGameRankListReq
  29. RelGameRankListRes = pb.RelGameRankListRes
  30. RelGameRankReq = pb.RelGameRankReq
  31. RelGameRankVo = pb.RelGameRankVo
  32. RelGameVpnGroupListReq = pb.RelGameVpnGroupListReq
  33. RelGameVpnGroupListRes = pb.RelGameVpnGroupListRes
  34. RelGameVpnGroupReq = pb.RelGameVpnGroupReq
  35. RelGameVpnGroupVo = pb.RelGameVpnGroupVo
  36. Request = pb.Request
  37. GoGameClient interface {
  38. // 加速器游戏管理
  39. GameAdd(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*GameVo, error)
  40. GameUpdate(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*Empty, error)
  41. GameDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
  42. GameGet(ctx context.Context, in *GameReq, opts ...grpc.CallOption) (*GameVo, error)
  43. GameList(ctx context.Context, in *GameListReq, opts ...grpc.CallOption) (*GameListRes, error)
  44. GameAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameListRes, error)
  45. GameRedisHScanByName(ctx context.Context, in *GameRedisHScanByNameReq, opts ...grpc.CallOption) (*GameRedisHScanByNameResp, error)
  46. // 游戏榜单关联关系
  47. RelGameRankAdd(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*RelGameRankVo, error)
  48. RelGameRankUpdate(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*Empty, error)
  49. RelGameRankDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
  50. RelGameRankGet(ctx context.Context, in *RelGameRankReq, opts ...grpc.CallOption) (*RelGameRankVo, error)
  51. RelGameRankList(ctx context.Context, in *RelGameRankListReq, opts ...grpc.CallOption) (*RelGameRankListRes, error)
  52. // 游戏地域关联关系
  53. RelGameVpnGroupAdd(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error)
  54. RelGameVpnGroupUpdate(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*Empty, error)
  55. RelGameVpnGroupDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
  56. RelGameVpnGroupGet(ctx context.Context, in *RelGameVpnGroupReq, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error)
  57. RelGameVpnGroupList(ctx context.Context, in *RelGameVpnGroupListReq, opts ...grpc.CallOption) (*RelGameVpnGroupListRes, error)
  58. // 用户提交游戏
  59. GameCustomerList(ctx context.Context, in *GameCustomerListReq, opts ...grpc.CallOption) (*GameCustomerListRes, error)
  60. GameCustomerAdd(ctx context.Context, in *GameCustomerVo, opts ...grpc.CallOption) (*GameCustomerAddResp, error)
  61. GameCustomerDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
  62. GameCategoryAdd(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*GameCategoryVo, error)
  63. GameCategoryUpdate(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*Empty, error)
  64. GameCategoryDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error)
  65. GameCategoryGet(ctx context.Context, in *GameCategoryReq, opts ...grpc.CallOption) (*GameCategoryVo, error)
  66. GameCategoryList(ctx context.Context, in *GameCategoryListReq, opts ...grpc.CallOption) (*GameCategoryListRes, error)
  67. GameCategoryAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameCategoryListRes, error)
  68. }
  69. defaultGoGameClient struct {
  70. cli zrpc.Client
  71. }
  72. )
  73. func NewGoGameClient(cli zrpc.Client) GoGameClient {
  74. return &defaultGoGameClient{
  75. cli: cli,
  76. }
  77. }
  78. // 加速器游戏管理
  79. func (m *defaultGoGameClient) GameAdd(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*GameVo, error) {
  80. client := pb.NewGoGameClientClient(m.cli.Conn())
  81. return client.GameAdd(ctx, in, opts...)
  82. }
  83. func (m *defaultGoGameClient) GameUpdate(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*Empty, error) {
  84. client := pb.NewGoGameClientClient(m.cli.Conn())
  85. return client.GameUpdate(ctx, in, opts...)
  86. }
  87. func (m *defaultGoGameClient) GameDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) {
  88. client := pb.NewGoGameClientClient(m.cli.Conn())
  89. return client.GameDel(ctx, in, opts...)
  90. }
  91. func (m *defaultGoGameClient) GameGet(ctx context.Context, in *GameReq, opts ...grpc.CallOption) (*GameVo, error) {
  92. client := pb.NewGoGameClientClient(m.cli.Conn())
  93. return client.GameGet(ctx, in, opts...)
  94. }
  95. func (m *defaultGoGameClient) GameList(ctx context.Context, in *GameListReq, opts ...grpc.CallOption) (*GameListRes, error) {
  96. client := pb.NewGoGameClientClient(m.cli.Conn())
  97. return client.GameList(ctx, in, opts...)
  98. }
  99. func (m *defaultGoGameClient) GameAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameListRes, error) {
  100. client := pb.NewGoGameClientClient(m.cli.Conn())
  101. return client.GameAll(ctx, in, opts...)
  102. }
  103. func (m *defaultGoGameClient) GameRedisHScanByName(ctx context.Context, in *GameRedisHScanByNameReq, opts ...grpc.CallOption) (*GameRedisHScanByNameResp, error) {
  104. client := pb.NewGoGameClientClient(m.cli.Conn())
  105. return client.GameRedisHScanByName(ctx, in, opts...)
  106. }
  107. // 游戏榜单关联关系
  108. func (m *defaultGoGameClient) RelGameRankAdd(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*RelGameRankVo, error) {
  109. client := pb.NewGoGameClientClient(m.cli.Conn())
  110. return client.RelGameRankAdd(ctx, in, opts...)
  111. }
  112. func (m *defaultGoGameClient) RelGameRankUpdate(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*Empty, error) {
  113. client := pb.NewGoGameClientClient(m.cli.Conn())
  114. return client.RelGameRankUpdate(ctx, in, opts...)
  115. }
  116. func (m *defaultGoGameClient) RelGameRankDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) {
  117. client := pb.NewGoGameClientClient(m.cli.Conn())
  118. return client.RelGameRankDel(ctx, in, opts...)
  119. }
  120. func (m *defaultGoGameClient) RelGameRankGet(ctx context.Context, in *RelGameRankReq, opts ...grpc.CallOption) (*RelGameRankVo, error) {
  121. client := pb.NewGoGameClientClient(m.cli.Conn())
  122. return client.RelGameRankGet(ctx, in, opts...)
  123. }
  124. func (m *defaultGoGameClient) RelGameRankList(ctx context.Context, in *RelGameRankListReq, opts ...grpc.CallOption) (*RelGameRankListRes, error) {
  125. client := pb.NewGoGameClientClient(m.cli.Conn())
  126. return client.RelGameRankList(ctx, in, opts...)
  127. }
  128. // 游戏地域关联关系
  129. func (m *defaultGoGameClient) RelGameVpnGroupAdd(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) {
  130. client := pb.NewGoGameClientClient(m.cli.Conn())
  131. return client.RelGameVpnGroupAdd(ctx, in, opts...)
  132. }
  133. func (m *defaultGoGameClient) RelGameVpnGroupUpdate(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*Empty, error) {
  134. client := pb.NewGoGameClientClient(m.cli.Conn())
  135. return client.RelGameVpnGroupUpdate(ctx, in, opts...)
  136. }
  137. func (m *defaultGoGameClient) RelGameVpnGroupDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) {
  138. client := pb.NewGoGameClientClient(m.cli.Conn())
  139. return client.RelGameVpnGroupDel(ctx, in, opts...)
  140. }
  141. func (m *defaultGoGameClient) RelGameVpnGroupGet(ctx context.Context, in *RelGameVpnGroupReq, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) {
  142. client := pb.NewGoGameClientClient(m.cli.Conn())
  143. return client.RelGameVpnGroupGet(ctx, in, opts...)
  144. }
  145. func (m *defaultGoGameClient) RelGameVpnGroupList(ctx context.Context, in *RelGameVpnGroupListReq, opts ...grpc.CallOption) (*RelGameVpnGroupListRes, error) {
  146. client := pb.NewGoGameClientClient(m.cli.Conn())
  147. return client.RelGameVpnGroupList(ctx, in, opts...)
  148. }
  149. // 用户提交游戏
  150. func (m *defaultGoGameClient) GameCustomerList(ctx context.Context, in *GameCustomerListReq, opts ...grpc.CallOption) (*GameCustomerListRes, error) {
  151. client := pb.NewGoGameClientClient(m.cli.Conn())
  152. return client.GameCustomerList(ctx, in, opts...)
  153. }
  154. func (m *defaultGoGameClient) GameCustomerAdd(ctx context.Context, in *GameCustomerVo, opts ...grpc.CallOption) (*GameCustomerAddResp, error) {
  155. client := pb.NewGoGameClientClient(m.cli.Conn())
  156. return client.GameCustomerAdd(ctx, in, opts...)
  157. }
  158. func (m *defaultGoGameClient) GameCustomerDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) {
  159. client := pb.NewGoGameClientClient(m.cli.Conn())
  160. return client.GameCustomerDel(ctx, in, opts...)
  161. }
  162. func (m *defaultGoGameClient) GameCategoryAdd(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*GameCategoryVo, error) {
  163. client := pb.NewGoGameClientClient(m.cli.Conn())
  164. return client.GameCategoryAdd(ctx, in, opts...)
  165. }
  166. func (m *defaultGoGameClient) GameCategoryUpdate(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*Empty, error) {
  167. client := pb.NewGoGameClientClient(m.cli.Conn())
  168. return client.GameCategoryUpdate(ctx, in, opts...)
  169. }
  170. func (m *defaultGoGameClient) GameCategoryDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) {
  171. client := pb.NewGoGameClientClient(m.cli.Conn())
  172. return client.GameCategoryDel(ctx, in, opts...)
  173. }
  174. func (m *defaultGoGameClient) GameCategoryGet(ctx context.Context, in *GameCategoryReq, opts ...grpc.CallOption) (*GameCategoryVo, error) {
  175. client := pb.NewGoGameClientClient(m.cli.Conn())
  176. return client.GameCategoryGet(ctx, in, opts...)
  177. }
  178. func (m *defaultGoGameClient) GameCategoryList(ctx context.Context, in *GameCategoryListReq, opts ...grpc.CallOption) (*GameCategoryListRes, error) {
  179. client := pb.NewGoGameClientClient(m.cli.Conn())
  180. return client.GameCategoryList(ctx, in, opts...)
  181. }
  182. func (m *defaultGoGameClient) GameCategoryAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameCategoryListRes, error) {
  183. client := pb.NewGoGameClientClient(m.cli.Conn())
  184. return client.GameCategoryAll(ctx, in, opts...)
  185. }