entManageApplication_grpc.pb.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.20.0--rc2
  5. // source: entManageApplication.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // EntManageApplicationClient is the client API for EntManageApplication service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type EntManageApplicationClient interface {
  21. BuyProductList(ctx context.Context, in *BuyProductListReq, opts ...grpc.CallOption) (*BuyProductListResp, error)
  22. UsePersonList(ctx context.Context, in *UsePersonListReq, opts ...grpc.CallOption) (*UsePersonListResp, error)
  23. AddUsePerson(ctx context.Context, in *AddUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error)
  24. DelUsePerson(ctx context.Context, in *DelUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error)
  25. EmpowerUserIds(ctx context.Context, in *EmpowerUserIds, opts ...grpc.CallOption) (*EmpowerUserIds, error)
  26. }
  27. type entManageApplicationClient struct {
  28. cc grpc.ClientConnInterface
  29. }
  30. func NewEntManageApplicationClient(cc grpc.ClientConnInterface) EntManageApplicationClient {
  31. return &entManageApplicationClient{cc}
  32. }
  33. func (c *entManageApplicationClient) BuyProductList(ctx context.Context, in *BuyProductListReq, opts ...grpc.CallOption) (*BuyProductListResp, error) {
  34. out := new(BuyProductListResp)
  35. err := c.cc.Invoke(ctx, "/EntManageApplication/buyProductList", in, out, opts...)
  36. if err != nil {
  37. return nil, err
  38. }
  39. return out, nil
  40. }
  41. func (c *entManageApplicationClient) UsePersonList(ctx context.Context, in *UsePersonListReq, opts ...grpc.CallOption) (*UsePersonListResp, error) {
  42. out := new(UsePersonListResp)
  43. err := c.cc.Invoke(ctx, "/EntManageApplication/usePersonList", in, out, opts...)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return out, nil
  48. }
  49. func (c *entManageApplicationClient) AddUsePerson(ctx context.Context, in *AddUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) {
  50. out := new(AddUsePersonResp)
  51. err := c.cc.Invoke(ctx, "/EntManageApplication/addUsePerson", in, out, opts...)
  52. if err != nil {
  53. return nil, err
  54. }
  55. return out, nil
  56. }
  57. func (c *entManageApplicationClient) DelUsePerson(ctx context.Context, in *DelUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) {
  58. out := new(AddUsePersonResp)
  59. err := c.cc.Invoke(ctx, "/EntManageApplication/delUsePerson", in, out, opts...)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return out, nil
  64. }
  65. func (c *entManageApplicationClient) EmpowerUserIds(ctx context.Context, in *EmpowerUserIds, opts ...grpc.CallOption) (*EmpowerUserIds, error) {
  66. out := new(EmpowerUserIds)
  67. err := c.cc.Invoke(ctx, "/EntManageApplication/empowerUserIds", in, out, opts...)
  68. if err != nil {
  69. return nil, err
  70. }
  71. return out, nil
  72. }
  73. // EntManageApplicationServer is the server API for EntManageApplication service.
  74. // All implementations must embed UnimplementedEntManageApplicationServer
  75. // for forward compatibility
  76. type EntManageApplicationServer interface {
  77. BuyProductList(context.Context, *BuyProductListReq) (*BuyProductListResp, error)
  78. UsePersonList(context.Context, *UsePersonListReq) (*UsePersonListResp, error)
  79. AddUsePerson(context.Context, *AddUsePersonReq) (*AddUsePersonResp, error)
  80. DelUsePerson(context.Context, *DelUsePersonReq) (*AddUsePersonResp, error)
  81. EmpowerUserIds(context.Context, *EmpowerUserIds) (*EmpowerUserIds, error)
  82. mustEmbedUnimplementedEntManageApplicationServer()
  83. }
  84. // UnimplementedEntManageApplicationServer must be embedded to have forward compatible implementations.
  85. type UnimplementedEntManageApplicationServer struct {
  86. }
  87. func (UnimplementedEntManageApplicationServer) BuyProductList(context.Context, *BuyProductListReq) (*BuyProductListResp, error) {
  88. return nil, status.Errorf(codes.Unimplemented, "method BuyProductList not implemented")
  89. }
  90. func (UnimplementedEntManageApplicationServer) UsePersonList(context.Context, *UsePersonListReq) (*UsePersonListResp, error) {
  91. return nil, status.Errorf(codes.Unimplemented, "method UsePersonList not implemented")
  92. }
  93. func (UnimplementedEntManageApplicationServer) AddUsePerson(context.Context, *AddUsePersonReq) (*AddUsePersonResp, error) {
  94. return nil, status.Errorf(codes.Unimplemented, "method AddUsePerson not implemented")
  95. }
  96. func (UnimplementedEntManageApplicationServer) DelUsePerson(context.Context, *DelUsePersonReq) (*AddUsePersonResp, error) {
  97. return nil, status.Errorf(codes.Unimplemented, "method DelUsePerson not implemented")
  98. }
  99. func (UnimplementedEntManageApplicationServer) EmpowerUserIds(context.Context, *EmpowerUserIds) (*EmpowerUserIds, error) {
  100. return nil, status.Errorf(codes.Unimplemented, "method EmpowerUserIds not implemented")
  101. }
  102. func (UnimplementedEntManageApplicationServer) mustEmbedUnimplementedEntManageApplicationServer() {}
  103. // UnsafeEntManageApplicationServer may be embedded to opt out of forward compatibility for this service.
  104. // Use of this interface is not recommended, as added methods to EntManageApplicationServer will
  105. // result in compilation errors.
  106. type UnsafeEntManageApplicationServer interface {
  107. mustEmbedUnimplementedEntManageApplicationServer()
  108. }
  109. func RegisterEntManageApplicationServer(s grpc.ServiceRegistrar, srv EntManageApplicationServer) {
  110. s.RegisterService(&EntManageApplication_ServiceDesc, srv)
  111. }
  112. func _EntManageApplication_BuyProductList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  113. in := new(BuyProductListReq)
  114. if err := dec(in); err != nil {
  115. return nil, err
  116. }
  117. if interceptor == nil {
  118. return srv.(EntManageApplicationServer).BuyProductList(ctx, in)
  119. }
  120. info := &grpc.UnaryServerInfo{
  121. Server: srv,
  122. FullMethod: "/EntManageApplication/buyProductList",
  123. }
  124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  125. return srv.(EntManageApplicationServer).BuyProductList(ctx, req.(*BuyProductListReq))
  126. }
  127. return interceptor(ctx, in, info, handler)
  128. }
  129. func _EntManageApplication_UsePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  130. in := new(UsePersonListReq)
  131. if err := dec(in); err != nil {
  132. return nil, err
  133. }
  134. if interceptor == nil {
  135. return srv.(EntManageApplicationServer).UsePersonList(ctx, in)
  136. }
  137. info := &grpc.UnaryServerInfo{
  138. Server: srv,
  139. FullMethod: "/EntManageApplication/usePersonList",
  140. }
  141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  142. return srv.(EntManageApplicationServer).UsePersonList(ctx, req.(*UsePersonListReq))
  143. }
  144. return interceptor(ctx, in, info, handler)
  145. }
  146. func _EntManageApplication_AddUsePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  147. in := new(AddUsePersonReq)
  148. if err := dec(in); err != nil {
  149. return nil, err
  150. }
  151. if interceptor == nil {
  152. return srv.(EntManageApplicationServer).AddUsePerson(ctx, in)
  153. }
  154. info := &grpc.UnaryServerInfo{
  155. Server: srv,
  156. FullMethod: "/EntManageApplication/addUsePerson",
  157. }
  158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  159. return srv.(EntManageApplicationServer).AddUsePerson(ctx, req.(*AddUsePersonReq))
  160. }
  161. return interceptor(ctx, in, info, handler)
  162. }
  163. func _EntManageApplication_DelUsePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  164. in := new(DelUsePersonReq)
  165. if err := dec(in); err != nil {
  166. return nil, err
  167. }
  168. if interceptor == nil {
  169. return srv.(EntManageApplicationServer).DelUsePerson(ctx, in)
  170. }
  171. info := &grpc.UnaryServerInfo{
  172. Server: srv,
  173. FullMethod: "/EntManageApplication/delUsePerson",
  174. }
  175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  176. return srv.(EntManageApplicationServer).DelUsePerson(ctx, req.(*DelUsePersonReq))
  177. }
  178. return interceptor(ctx, in, info, handler)
  179. }
  180. func _EntManageApplication_EmpowerUserIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  181. in := new(EmpowerUserIds)
  182. if err := dec(in); err != nil {
  183. return nil, err
  184. }
  185. if interceptor == nil {
  186. return srv.(EntManageApplicationServer).EmpowerUserIds(ctx, in)
  187. }
  188. info := &grpc.UnaryServerInfo{
  189. Server: srv,
  190. FullMethod: "/EntManageApplication/empowerUserIds",
  191. }
  192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  193. return srv.(EntManageApplicationServer).EmpowerUserIds(ctx, req.(*EmpowerUserIds))
  194. }
  195. return interceptor(ctx, in, info, handler)
  196. }
  197. // EntManageApplication_ServiceDesc is the grpc.ServiceDesc for EntManageApplication service.
  198. // It's only intended for direct use with grpc.RegisterService,
  199. // and not to be introspected or modified (even as a copy)
  200. var EntManageApplication_ServiceDesc = grpc.ServiceDesc{
  201. ServiceName: "EntManageApplication",
  202. HandlerType: (*EntManageApplicationServer)(nil),
  203. Methods: []grpc.MethodDesc{
  204. {
  205. MethodName: "buyProductList",
  206. Handler: _EntManageApplication_BuyProductList_Handler,
  207. },
  208. {
  209. MethodName: "usePersonList",
  210. Handler: _EntManageApplication_UsePersonList_Handler,
  211. },
  212. {
  213. MethodName: "addUsePerson",
  214. Handler: _EntManageApplication_AddUsePerson_Handler,
  215. },
  216. {
  217. MethodName: "delUsePerson",
  218. Handler: _EntManageApplication_DelUsePerson_Handler,
  219. },
  220. {
  221. MethodName: "empowerUserIds",
  222. Handler: _EntManageApplication_EmpowerUserIds_Handler,
  223. },
  224. },
  225. Streams: []grpc.StreamDesc{},
  226. Metadata: "entManageApplication.proto",
  227. }