system_service.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: system_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-garden/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("system_service.proto", fileDescriptor_5d35c01297e407e4)
  26. }
  27. var fileDescriptor_5d35c01297e407e4 = []byte{
  28. // 406 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x4d, 0x4f, 0xfa, 0x30,
  30. 0x1c, 0xc7, 0xff, 0x97, 0x3f, 0x92, 0x7a, 0x50, 0xcb, 0x93, 0x12, 0xa3, 0x11, 0xf4, 0xe8, 0x08,
  31. 0x7a, 0x30, 0xf1, 0xa4, 0x42, 0x82, 0x26, 0x18, 0x0d, 0x84, 0x8b, 0x1e, 0xc8, 0xc6, 0x7e, 0xce,
  32. 0xc5, 0xb1, 0xd6, 0xb6, 0x23, 0xe1, 0x4d, 0xf9, 0x1a, 0xcd, 0xda, 0x75, 0x6c, 0x75, 0xc0, 0x71,
  33. 0x9f, 0xef, 0x53, 0xfd, 0xc5, 0x80, 0xaa, 0x7c, 0xc9, 0x05, 0xcc, 0xa7, 0x1c, 0xd8, 0xc2, 0x9f,
  34. 0x81, 0x45, 0x19, 0x11, 0x04, 0x23, 0xea, 0x58, 0x09, 0x69, 0xee, 0x2d, 0xba, 0x1d, 0x65, 0x52,
  35. 0xe2, 0xd5, 0x4f, 0x19, 0x95, 0xc6, 0x12, 0xe0, 0x2e, 0xfa, 0x3f, 0x24, 0x9e, 0x1f, 0xe2, 0x8a,
  36. 0x45, 0x9d, 0xe9, 0xa2, 0x6b, 0xc9, 0xaf, 0x11, 0x7c, 0x47, 0xc0, 0x45, 0xf3, 0x20, 0x0f, 0x69,
  37. 0xb0, 0x6c, 0xfd, 0xc3, 0x37, 0x68, 0x67, 0xc2, 0x81, 0xdd, 0xbb, 0x2e, 0xae, 0x25, 0x7a, 0xf2,
  38. 0xad, 0x63, 0x15, 0x13, 0xab, 0xe0, 0x1d, 0x42, 0x31, 0x99, 0x50, 0xd7, 0x16, 0x80, 0x0f, 0x33,
  39. 0x26, 0x85, 0x74, 0xbc, 0x5e, 0xa0, 0xe4, 0xa6, 0xfb, 0x10, 0xe4, 0xa6, 0xfb, 0x10, 0x14, 0x4d,
  40. 0x4b, 0xac, 0x82, 0xb7, 0xa8, 0x1c, 0x93, 0xa1, 0xcf, 0x05, 0xce, 0xd6, 0xc7, 0x40, 0x47, 0xab,
  41. 0x7f, 0xb8, 0xca, 0x8e, 0xd0, 0x7e, 0x8c, 0x06, 0x36, 0x73, 0x21, 0xec, 0x7d, 0xda, 0xa1, 0x07,
  42. 0xf8, 0x24, 0xe3, 0xcd, 0x0a, 0xba, 0xeb, 0x78, 0xad, 0x9e, 0xbe, 0x67, 0xc0, 0x48, 0x44, 0xe3,
  43. 0x23, 0xea, 0xf7, 0x68, 0x60, 0xbe, 0x67, 0xc5, 0xd3, 0x33, 0x8e, 0x23, 0x0a, 0x4c, 0xf2, 0xf4,
  44. 0x8c, 0x2b, 0x64, 0x9e, 0x31, 0xab, 0xa8, 0x86, 0x1e, 0xda, 0x55, 0x8f, 0x7a, 0x0a, 0x3f, 0x08,
  45. 0xc7, 0x47, 0x7a, 0x68, 0xc5, 0x74, 0x47, 0xa3, 0x48, 0x52, 0x25, 0x2e, 0xaa, 0x2b, 0xfa, 0x48,
  46. 0x22, 0x0e, 0x3d, 0x12, 0x85, 0x22, 0x39, 0xce, 0x79, 0x2e, 0x64, 0xca, 0xba, 0xba, 0xb5, 0xc5,
  47. 0xa5, 0x56, 0x6c, 0x54, 0x33, 0x0d, 0x43, 0x7f, 0xee, 0x0b, 0xdc, 0x5e, 0x13, 0x97, 0xaa, 0xde,
  48. 0x38, 0xdb, 0x6c, 0x52, 0x13, 0xef, 0xa8, 0xa2, 0xf4, 0x11, 0x84, 0x62, 0x0c, 0x41, 0x20, 0x2d,
  49. 0x38, 0x9f, 0xcd, 0x69, 0xba, 0xfe, 0x74, 0x93, 0x25, 0x2d, 0x7f, 0xe6, 0xde, 0xab, 0x3d, 0xfb,
  50. 0xb2, 0x3d, 0x78, 0x61, 0x6e, 0xf2, 0x3f, 0xa8, 0xcb, 0x0b, 0x34, 0xb3, 0xbc, 0xd0, 0xa2, 0xca,
  51. 0x3d, 0xd4, 0x30, 0xd4, 0x3e, 0xcc, 0x18, 0xd8, 0x1c, 0xf0, 0x45, 0x71, 0x5a, 0xeb, 0x7a, 0xa4,
  52. 0xbd, 0xcd, 0x26, 0x87, 0x1e, 0xaa, 0x6f, 0x98, 0x32, 0x42, 0x81, 0x89, 0xe5, 0xa5, 0x27, 0xff,
  53. 0xd8, 0x0e, 0x75, 0x9c, 0x92, 0xfc, 0x35, 0xb9, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x88,
  54. 0x1a, 0x99, 0x82, 0x04, 0x00, 0x00,
  55. }
  56. // Reference imports to suppress errors if they are not otherwise used.
  57. var _ context.Context
  58. var _ grpc.ClientConnInterface
  59. // This is a compile-time assertion to ensure that this generated file
  60. // is compatible with the grpc package it is being compiled against.
  61. const _ = grpc.SupportPackageIsVersion6
  62. // SystemClient is the client API for System service.
  63. //
  64. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  65. type SystemClient interface {
  66. //
  67. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  68. UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error)
  69. UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error)
  70. UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error)
  71. UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error)
  72. UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error)
  73. GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error)
  74. SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error)
  75. GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error)
  76. GardenHouseCountChange(ctx context.Context, in *v1.GardenHouseCountChangeRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountChangeReply, error)
  77. GardenHouseCountLimit(ctx context.Context, in *v1.GardenHouseCountLimitRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountLimitReply, error)
  78. GardenRentSellCount(ctx context.Context, in *v1.GardenRentSellCountRequest, opts ...grpc.CallOption) (*v1.GardenRentSellCountReply, error)
  79. MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error)
  80. MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error)
  81. }
  82. type systemClient struct {
  83. cc grpc.ClientConnInterface
  84. }
  85. func NewSystemClient(cc grpc.ClientConnInterface) SystemClient {
  86. return &systemClient{cc}
  87. }
  88. func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  89. out := new(v1.LoginReply)
  90. err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...)
  91. if err != nil {
  92. return nil, err
  93. }
  94. return out, nil
  95. }
  96. func (c *systemClient) UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error) {
  97. out := new(v1.UserAddReply)
  98. err := c.cc.Invoke(ctx, "/pb.service.System/UserAdd", in, out, opts...)
  99. if err != nil {
  100. return nil, err
  101. }
  102. return out, nil
  103. }
  104. func (c *systemClient) UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error) {
  105. out := new(v1.UserUpdateReply)
  106. err := c.cc.Invoke(ctx, "/pb.service.System/UserUpdate", in, out, opts...)
  107. if err != nil {
  108. return nil, err
  109. }
  110. return out, nil
  111. }
  112. func (c *systemClient) UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error) {
  113. out := new(v1.UserDelReply)
  114. err := c.cc.Invoke(ctx, "/pb.service.System/UserDel", in, out, opts...)
  115. if err != nil {
  116. return nil, err
  117. }
  118. return out, nil
  119. }
  120. func (c *systemClient) UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error) {
  121. out := new(v1.UserListReply)
  122. err := c.cc.Invoke(ctx, "/pb.service.System/UserList", in, out, opts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. func (c *systemClient) UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error) {
  129. out := new(v1.UserGardenChangeReply)
  130. err := c.cc.Invoke(ctx, "/pb.service.System/UserGardenChange", in, out, opts...)
  131. if err != nil {
  132. return nil, err
  133. }
  134. return out, nil
  135. }
  136. func (c *systemClient) GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error) {
  137. out := new(v1.GroupAddReply)
  138. err := c.cc.Invoke(ctx, "/pb.service.System/GroupAdd", in, out, opts...)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return out, nil
  143. }
  144. func (c *systemClient) SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error) {
  145. out := new(v1.SuperGroupReply)
  146. err := c.cc.Invoke(ctx, "/pb.service.System/SuperGroup", in, out, opts...)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return out, nil
  151. }
  152. func (c *systemClient) GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error) {
  153. out := new(v1.GardenInfosReply)
  154. err := c.cc.Invoke(ctx, "/pb.service.System/GardenInfos", in, out, opts...)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return out, nil
  159. }
  160. func (c *systemClient) GardenHouseCountChange(ctx context.Context, in *v1.GardenHouseCountChangeRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountChangeReply, error) {
  161. out := new(v1.GardenHouseCountChangeReply)
  162. err := c.cc.Invoke(ctx, "/pb.service.System/GardenHouseCountChange", in, out, opts...)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return out, nil
  167. }
  168. func (c *systemClient) GardenHouseCountLimit(ctx context.Context, in *v1.GardenHouseCountLimitRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountLimitReply, error) {
  169. out := new(v1.GardenHouseCountLimitReply)
  170. err := c.cc.Invoke(ctx, "/pb.service.System/GardenHouseCountLimit", in, out, opts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *systemClient) GardenRentSellCount(ctx context.Context, in *v1.GardenRentSellCountRequest, opts ...grpc.CallOption) (*v1.GardenRentSellCountReply, error) {
  177. out := new(v1.GardenRentSellCountReply)
  178. err := c.cc.Invoke(ctx, "/pb.service.System/GardenRentSellCount", in, out, opts...)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return out, nil
  183. }
  184. func (c *systemClient) MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error) {
  185. out := new(v1.MsgPackageOrderListReply)
  186. err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderList", in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *systemClient) MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error) {
  193. out := new(v1.MsgPackageOrderDecreaseReply)
  194. err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderDecrease", in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. // SystemServer is the server API for System service.
  201. type SystemServer interface {
  202. //
  203. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  204. UserAdd(context.Context, *v1.UserAddRequest) (*v1.UserAddReply, error)
  205. UserUpdate(context.Context, *v1.UserUpdateRequest) (*v1.UserUpdateReply, error)
  206. UserDel(context.Context, *v1.UserDelRequest) (*v1.UserDelReply, error)
  207. UserList(context.Context, *v1.UserListRequest) (*v1.UserListReply, error)
  208. UserGardenChange(context.Context, *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error)
  209. GroupAdd(context.Context, *v1.GroupAddRequest) (*v1.GroupAddReply, error)
  210. SuperGroup(context.Context, *v1.SuperGroupRequest) (*v1.SuperGroupReply, error)
  211. GardenInfos(context.Context, *v1.GardenInfosRequest) (*v1.GardenInfosReply, error)
  212. GardenHouseCountChange(context.Context, *v1.GardenHouseCountChangeRequest) (*v1.GardenHouseCountChangeReply, error)
  213. GardenHouseCountLimit(context.Context, *v1.GardenHouseCountLimitRequest) (*v1.GardenHouseCountLimitReply, error)
  214. GardenRentSellCount(context.Context, *v1.GardenRentSellCountRequest) (*v1.GardenRentSellCountReply, error)
  215. MsgPackageOrderList(context.Context, *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error)
  216. MsgPackageOrderDecrease(context.Context, *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error)
  217. }
  218. // UnimplementedSystemServer can be embedded to have forward compatible implementations.
  219. type UnimplementedSystemServer struct {
  220. }
  221. func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  223. }
  224. func (*UnimplementedSystemServer) UserAdd(ctx context.Context, req *v1.UserAddRequest) (*v1.UserAddReply, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
  226. }
  227. func (*UnimplementedSystemServer) UserUpdate(ctx context.Context, req *v1.UserUpdateRequest) (*v1.UserUpdateReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method UserUpdate not implemented")
  229. }
  230. func (*UnimplementedSystemServer) UserDel(ctx context.Context, req *v1.UserDelRequest) (*v1.UserDelReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method UserDel not implemented")
  232. }
  233. func (*UnimplementedSystemServer) UserList(ctx context.Context, req *v1.UserListRequest) (*v1.UserListReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
  235. }
  236. func (*UnimplementedSystemServer) UserGardenChange(ctx context.Context, req *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method UserGardenChange not implemented")
  238. }
  239. func (*UnimplementedSystemServer) GroupAdd(ctx context.Context, req *v1.GroupAddRequest) (*v1.GroupAddReply, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method GroupAdd not implemented")
  241. }
  242. func (*UnimplementedSystemServer) SuperGroup(ctx context.Context, req *v1.SuperGroupRequest) (*v1.SuperGroupReply, error) {
  243. return nil, status.Errorf(codes.Unimplemented, "method SuperGroup not implemented")
  244. }
  245. func (*UnimplementedSystemServer) GardenInfos(ctx context.Context, req *v1.GardenInfosRequest) (*v1.GardenInfosReply, error) {
  246. return nil, status.Errorf(codes.Unimplemented, "method GardenInfos not implemented")
  247. }
  248. func (*UnimplementedSystemServer) GardenHouseCountChange(ctx context.Context, req *v1.GardenHouseCountChangeRequest) (*v1.GardenHouseCountChangeReply, error) {
  249. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseCountChange not implemented")
  250. }
  251. func (*UnimplementedSystemServer) GardenHouseCountLimit(ctx context.Context, req *v1.GardenHouseCountLimitRequest) (*v1.GardenHouseCountLimitReply, error) {
  252. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseCountLimit not implemented")
  253. }
  254. func (*UnimplementedSystemServer) GardenRentSellCount(ctx context.Context, req *v1.GardenRentSellCountRequest) (*v1.GardenRentSellCountReply, error) {
  255. return nil, status.Errorf(codes.Unimplemented, "method GardenRentSellCount not implemented")
  256. }
  257. func (*UnimplementedSystemServer) MsgPackageOrderList(ctx context.Context, req *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error) {
  258. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderList not implemented")
  259. }
  260. func (*UnimplementedSystemServer) MsgPackageOrderDecrease(ctx context.Context, req *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error) {
  261. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderDecrease not implemented")
  262. }
  263. func RegisterSystemServer(s *grpc.Server, srv SystemServer) {
  264. s.RegisterService(&_System_serviceDesc, srv)
  265. }
  266. func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  267. in := new(v1.LoginRequest)
  268. if err := dec(in); err != nil {
  269. return nil, err
  270. }
  271. if interceptor == nil {
  272. return srv.(SystemServer).Login(ctx, in)
  273. }
  274. info := &grpc.UnaryServerInfo{
  275. Server: srv,
  276. FullMethod: "/pb.service.System/Login",
  277. }
  278. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  279. return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest))
  280. }
  281. return interceptor(ctx, in, info, handler)
  282. }
  283. func _System_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  284. in := new(v1.UserAddRequest)
  285. if err := dec(in); err != nil {
  286. return nil, err
  287. }
  288. if interceptor == nil {
  289. return srv.(SystemServer).UserAdd(ctx, in)
  290. }
  291. info := &grpc.UnaryServerInfo{
  292. Server: srv,
  293. FullMethod: "/pb.service.System/UserAdd",
  294. }
  295. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  296. return srv.(SystemServer).UserAdd(ctx, req.(*v1.UserAddRequest))
  297. }
  298. return interceptor(ctx, in, info, handler)
  299. }
  300. func _System_UserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  301. in := new(v1.UserUpdateRequest)
  302. if err := dec(in); err != nil {
  303. return nil, err
  304. }
  305. if interceptor == nil {
  306. return srv.(SystemServer).UserUpdate(ctx, in)
  307. }
  308. info := &grpc.UnaryServerInfo{
  309. Server: srv,
  310. FullMethod: "/pb.service.System/UserUpdate",
  311. }
  312. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  313. return srv.(SystemServer).UserUpdate(ctx, req.(*v1.UserUpdateRequest))
  314. }
  315. return interceptor(ctx, in, info, handler)
  316. }
  317. func _System_UserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  318. in := new(v1.UserDelRequest)
  319. if err := dec(in); err != nil {
  320. return nil, err
  321. }
  322. if interceptor == nil {
  323. return srv.(SystemServer).UserDel(ctx, in)
  324. }
  325. info := &grpc.UnaryServerInfo{
  326. Server: srv,
  327. FullMethod: "/pb.service.System/UserDel",
  328. }
  329. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  330. return srv.(SystemServer).UserDel(ctx, req.(*v1.UserDelRequest))
  331. }
  332. return interceptor(ctx, in, info, handler)
  333. }
  334. func _System_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  335. in := new(v1.UserListRequest)
  336. if err := dec(in); err != nil {
  337. return nil, err
  338. }
  339. if interceptor == nil {
  340. return srv.(SystemServer).UserList(ctx, in)
  341. }
  342. info := &grpc.UnaryServerInfo{
  343. Server: srv,
  344. FullMethod: "/pb.service.System/UserList",
  345. }
  346. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  347. return srv.(SystemServer).UserList(ctx, req.(*v1.UserListRequest))
  348. }
  349. return interceptor(ctx, in, info, handler)
  350. }
  351. func _System_UserGardenChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  352. in := new(v1.UserGardenChangeRequest)
  353. if err := dec(in); err != nil {
  354. return nil, err
  355. }
  356. if interceptor == nil {
  357. return srv.(SystemServer).UserGardenChange(ctx, in)
  358. }
  359. info := &grpc.UnaryServerInfo{
  360. Server: srv,
  361. FullMethod: "/pb.service.System/UserGardenChange",
  362. }
  363. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  364. return srv.(SystemServer).UserGardenChange(ctx, req.(*v1.UserGardenChangeRequest))
  365. }
  366. return interceptor(ctx, in, info, handler)
  367. }
  368. func _System_GroupAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  369. in := new(v1.GroupAddRequest)
  370. if err := dec(in); err != nil {
  371. return nil, err
  372. }
  373. if interceptor == nil {
  374. return srv.(SystemServer).GroupAdd(ctx, in)
  375. }
  376. info := &grpc.UnaryServerInfo{
  377. Server: srv,
  378. FullMethod: "/pb.service.System/GroupAdd",
  379. }
  380. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  381. return srv.(SystemServer).GroupAdd(ctx, req.(*v1.GroupAddRequest))
  382. }
  383. return interceptor(ctx, in, info, handler)
  384. }
  385. func _System_SuperGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  386. in := new(v1.SuperGroupRequest)
  387. if err := dec(in); err != nil {
  388. return nil, err
  389. }
  390. if interceptor == nil {
  391. return srv.(SystemServer).SuperGroup(ctx, in)
  392. }
  393. info := &grpc.UnaryServerInfo{
  394. Server: srv,
  395. FullMethod: "/pb.service.System/SuperGroup",
  396. }
  397. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  398. return srv.(SystemServer).SuperGroup(ctx, req.(*v1.SuperGroupRequest))
  399. }
  400. return interceptor(ctx, in, info, handler)
  401. }
  402. func _System_GardenInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  403. in := new(v1.GardenInfosRequest)
  404. if err := dec(in); err != nil {
  405. return nil, err
  406. }
  407. if interceptor == nil {
  408. return srv.(SystemServer).GardenInfos(ctx, in)
  409. }
  410. info := &grpc.UnaryServerInfo{
  411. Server: srv,
  412. FullMethod: "/pb.service.System/GardenInfos",
  413. }
  414. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  415. return srv.(SystemServer).GardenInfos(ctx, req.(*v1.GardenInfosRequest))
  416. }
  417. return interceptor(ctx, in, info, handler)
  418. }
  419. func _System_GardenHouseCountChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  420. in := new(v1.GardenHouseCountChangeRequest)
  421. if err := dec(in); err != nil {
  422. return nil, err
  423. }
  424. if interceptor == nil {
  425. return srv.(SystemServer).GardenHouseCountChange(ctx, in)
  426. }
  427. info := &grpc.UnaryServerInfo{
  428. Server: srv,
  429. FullMethod: "/pb.service.System/GardenHouseCountChange",
  430. }
  431. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  432. return srv.(SystemServer).GardenHouseCountChange(ctx, req.(*v1.GardenHouseCountChangeRequest))
  433. }
  434. return interceptor(ctx, in, info, handler)
  435. }
  436. func _System_GardenHouseCountLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  437. in := new(v1.GardenHouseCountLimitRequest)
  438. if err := dec(in); err != nil {
  439. return nil, err
  440. }
  441. if interceptor == nil {
  442. return srv.(SystemServer).GardenHouseCountLimit(ctx, in)
  443. }
  444. info := &grpc.UnaryServerInfo{
  445. Server: srv,
  446. FullMethod: "/pb.service.System/GardenHouseCountLimit",
  447. }
  448. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  449. return srv.(SystemServer).GardenHouseCountLimit(ctx, req.(*v1.GardenHouseCountLimitRequest))
  450. }
  451. return interceptor(ctx, in, info, handler)
  452. }
  453. func _System_GardenRentSellCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  454. in := new(v1.GardenRentSellCountRequest)
  455. if err := dec(in); err != nil {
  456. return nil, err
  457. }
  458. if interceptor == nil {
  459. return srv.(SystemServer).GardenRentSellCount(ctx, in)
  460. }
  461. info := &grpc.UnaryServerInfo{
  462. Server: srv,
  463. FullMethod: "/pb.service.System/GardenRentSellCount",
  464. }
  465. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  466. return srv.(SystemServer).GardenRentSellCount(ctx, req.(*v1.GardenRentSellCountRequest))
  467. }
  468. return interceptor(ctx, in, info, handler)
  469. }
  470. func _System_MsgPackageOrderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  471. in := new(v1.MsgPackageOrderListRequest)
  472. if err := dec(in); err != nil {
  473. return nil, err
  474. }
  475. if interceptor == nil {
  476. return srv.(SystemServer).MsgPackageOrderList(ctx, in)
  477. }
  478. info := &grpc.UnaryServerInfo{
  479. Server: srv,
  480. FullMethod: "/pb.service.System/MsgPackageOrderList",
  481. }
  482. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  483. return srv.(SystemServer).MsgPackageOrderList(ctx, req.(*v1.MsgPackageOrderListRequest))
  484. }
  485. return interceptor(ctx, in, info, handler)
  486. }
  487. func _System_MsgPackageOrderDecrease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  488. in := new(v1.MsgPackageOrderDecreaseRequest)
  489. if err := dec(in); err != nil {
  490. return nil, err
  491. }
  492. if interceptor == nil {
  493. return srv.(SystemServer).MsgPackageOrderDecrease(ctx, in)
  494. }
  495. info := &grpc.UnaryServerInfo{
  496. Server: srv,
  497. FullMethod: "/pb.service.System/MsgPackageOrderDecrease",
  498. }
  499. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  500. return srv.(SystemServer).MsgPackageOrderDecrease(ctx, req.(*v1.MsgPackageOrderDecreaseRequest))
  501. }
  502. return interceptor(ctx, in, info, handler)
  503. }
  504. var _System_serviceDesc = grpc.ServiceDesc{
  505. ServiceName: "pb.service.System",
  506. HandlerType: (*SystemServer)(nil),
  507. Methods: []grpc.MethodDesc{
  508. {
  509. MethodName: "Login",
  510. Handler: _System_Login_Handler,
  511. },
  512. {
  513. MethodName: "UserAdd",
  514. Handler: _System_UserAdd_Handler,
  515. },
  516. {
  517. MethodName: "UserUpdate",
  518. Handler: _System_UserUpdate_Handler,
  519. },
  520. {
  521. MethodName: "UserDel",
  522. Handler: _System_UserDel_Handler,
  523. },
  524. {
  525. MethodName: "UserList",
  526. Handler: _System_UserList_Handler,
  527. },
  528. {
  529. MethodName: "UserGardenChange",
  530. Handler: _System_UserGardenChange_Handler,
  531. },
  532. {
  533. MethodName: "GroupAdd",
  534. Handler: _System_GroupAdd_Handler,
  535. },
  536. {
  537. MethodName: "SuperGroup",
  538. Handler: _System_SuperGroup_Handler,
  539. },
  540. {
  541. MethodName: "GardenInfos",
  542. Handler: _System_GardenInfos_Handler,
  543. },
  544. {
  545. MethodName: "GardenHouseCountChange",
  546. Handler: _System_GardenHouseCountChange_Handler,
  547. },
  548. {
  549. MethodName: "GardenHouseCountLimit",
  550. Handler: _System_GardenHouseCountLimit_Handler,
  551. },
  552. {
  553. MethodName: "GardenRentSellCount",
  554. Handler: _System_GardenRentSellCount_Handler,
  555. },
  556. {
  557. MethodName: "MsgPackageOrderList",
  558. Handler: _System_MsgPackageOrderList_Handler,
  559. },
  560. {
  561. MethodName: "MsgPackageOrderDecrease",
  562. Handler: _System_MsgPackageOrderDecrease_Handler,
  563. },
  564. },
  565. Streams: []grpc.StreamDesc{},
  566. Metadata: "system_service.proto",
  567. }