bxcollection_grpc.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.9.0
  5. // source: bxcollection.proto
  6. package bxcol
  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. // BxcolClient is the client API for Bxcol 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 BxcolClient interface {
  21. //新增标签
  22. Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error)
  23. //获取标签
  24. GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error)
  25. //标签新增或删除
  26. LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
  27. //招标信息收藏
  28. BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
  29. //招标信息是否被收藏
  30. IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error)
  31. //获取收藏列表
  32. List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error)
  33. }
  34. type bxcolClient struct {
  35. cc grpc.ClientConnInterface
  36. }
  37. func NewBxcolClient(cc grpc.ClientConnInterface) BxcolClient {
  38. return &bxcolClient{cc}
  39. }
  40. func (c *bxcolClient) Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error) {
  41. out := new(AddlabelRes)
  42. err := c.cc.Invoke(ctx, "/bxcol.bxcol/Addlabel", in, out, opts...)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return out, nil
  47. }
  48. func (c *bxcolClient) GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error) {
  49. out := new(GetLabelActionRes)
  50. err := c.cc.Invoke(ctx, "/bxcol.bxcol/GetLabelAction", in, out, opts...)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return out, nil
  55. }
  56. func (c *bxcolClient) LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
  57. out := new(LabelActionRes)
  58. err := c.cc.Invoke(ctx, "/bxcol.bxcol/LabelAction", in, out, opts...)
  59. if err != nil {
  60. return nil, err
  61. }
  62. return out, nil
  63. }
  64. func (c *bxcolClient) BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
  65. out := new(LabelActionRes)
  66. err := c.cc.Invoke(ctx, "/bxcol.bxcol/BCAction", in, out, opts...)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *bxcolClient) IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error) {
  73. out := new(IsCollActionRes)
  74. err := c.cc.Invoke(ctx, "/bxcol.bxcol/IsCollAction", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *bxcolClient) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error) {
  81. out := new(ListRes)
  82. err := c.cc.Invoke(ctx, "/bxcol.bxcol/List", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. // BxcolServer is the server API for Bxcol service.
  89. // All implementations must embed UnimplementedBxcolServer
  90. // for forward compatibility
  91. type BxcolServer interface {
  92. //新增标签
  93. Addlabel(context.Context, *AddlabelReq) (*AddlabelRes, error)
  94. //获取标签
  95. GetLabelAction(context.Context, *GetLabelActionReq) (*GetLabelActionRes, error)
  96. //标签新增或删除
  97. LabelAction(context.Context, *LabelActionReq) (*LabelActionRes, error)
  98. //招标信息收藏
  99. BCAction(context.Context, *BCActionReq) (*LabelActionRes, error)
  100. //招标信息是否被收藏
  101. IsCollAction(context.Context, *IsCollActionReq) (*IsCollActionRes, error)
  102. //获取收藏列表
  103. List(context.Context, *ListReq) (*ListRes, error)
  104. mustEmbedUnimplementedBxcolServer()
  105. }
  106. // UnimplementedBxcolServer must be embedded to have forward compatible implementations.
  107. type UnimplementedBxcolServer struct {
  108. }
  109. func (UnimplementedBxcolServer) Addlabel(context.Context, *AddlabelReq) (*AddlabelRes, error) {
  110. return nil, status.Errorf(codes.Unimplemented, "method Addlabel not implemented")
  111. }
  112. func (UnimplementedBxcolServer) GetLabelAction(context.Context, *GetLabelActionReq) (*GetLabelActionRes, error) {
  113. return nil, status.Errorf(codes.Unimplemented, "method GetLabelAction not implemented")
  114. }
  115. func (UnimplementedBxcolServer) LabelAction(context.Context, *LabelActionReq) (*LabelActionRes, error) {
  116. return nil, status.Errorf(codes.Unimplemented, "method LabelAction not implemented")
  117. }
  118. func (UnimplementedBxcolServer) BCAction(context.Context, *BCActionReq) (*LabelActionRes, error) {
  119. return nil, status.Errorf(codes.Unimplemented, "method BCAction not implemented")
  120. }
  121. func (UnimplementedBxcolServer) IsCollAction(context.Context, *IsCollActionReq) (*IsCollActionRes, error) {
  122. return nil, status.Errorf(codes.Unimplemented, "method IsCollAction not implemented")
  123. }
  124. func (UnimplementedBxcolServer) List(context.Context, *ListReq) (*ListRes, error) {
  125. return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  126. }
  127. func (UnimplementedBxcolServer) mustEmbedUnimplementedBxcolServer() {}
  128. // UnsafeBxcolServer may be embedded to opt out of forward compatibility for this service.
  129. // Use of this interface is not recommended, as added methods to BxcolServer will
  130. // result in compilation errors.
  131. type UnsafeBxcolServer interface {
  132. mustEmbedUnimplementedBxcolServer()
  133. }
  134. func RegisterBxcolServer(s grpc.ServiceRegistrar, srv BxcolServer) {
  135. s.RegisterService(&Bxcol_ServiceDesc, srv)
  136. }
  137. func _Bxcol_Addlabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  138. in := new(AddlabelReq)
  139. if err := dec(in); err != nil {
  140. return nil, err
  141. }
  142. if interceptor == nil {
  143. return srv.(BxcolServer).Addlabel(ctx, in)
  144. }
  145. info := &grpc.UnaryServerInfo{
  146. Server: srv,
  147. FullMethod: "/bxcol.bxcol/Addlabel",
  148. }
  149. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  150. return srv.(BxcolServer).Addlabel(ctx, req.(*AddlabelReq))
  151. }
  152. return interceptor(ctx, in, info, handler)
  153. }
  154. func _Bxcol_GetLabelAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  155. in := new(GetLabelActionReq)
  156. if err := dec(in); err != nil {
  157. return nil, err
  158. }
  159. if interceptor == nil {
  160. return srv.(BxcolServer).GetLabelAction(ctx, in)
  161. }
  162. info := &grpc.UnaryServerInfo{
  163. Server: srv,
  164. FullMethod: "/bxcol.bxcol/GetLabelAction",
  165. }
  166. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  167. return srv.(BxcolServer).GetLabelAction(ctx, req.(*GetLabelActionReq))
  168. }
  169. return interceptor(ctx, in, info, handler)
  170. }
  171. func _Bxcol_LabelAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  172. in := new(LabelActionReq)
  173. if err := dec(in); err != nil {
  174. return nil, err
  175. }
  176. if interceptor == nil {
  177. return srv.(BxcolServer).LabelAction(ctx, in)
  178. }
  179. info := &grpc.UnaryServerInfo{
  180. Server: srv,
  181. FullMethod: "/bxcol.bxcol/LabelAction",
  182. }
  183. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  184. return srv.(BxcolServer).LabelAction(ctx, req.(*LabelActionReq))
  185. }
  186. return interceptor(ctx, in, info, handler)
  187. }
  188. func _Bxcol_BCAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  189. in := new(BCActionReq)
  190. if err := dec(in); err != nil {
  191. return nil, err
  192. }
  193. if interceptor == nil {
  194. return srv.(BxcolServer).BCAction(ctx, in)
  195. }
  196. info := &grpc.UnaryServerInfo{
  197. Server: srv,
  198. FullMethod: "/bxcol.bxcol/BCAction",
  199. }
  200. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  201. return srv.(BxcolServer).BCAction(ctx, req.(*BCActionReq))
  202. }
  203. return interceptor(ctx, in, info, handler)
  204. }
  205. func _Bxcol_IsCollAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  206. in := new(IsCollActionReq)
  207. if err := dec(in); err != nil {
  208. return nil, err
  209. }
  210. if interceptor == nil {
  211. return srv.(BxcolServer).IsCollAction(ctx, in)
  212. }
  213. info := &grpc.UnaryServerInfo{
  214. Server: srv,
  215. FullMethod: "/bxcol.bxcol/IsCollAction",
  216. }
  217. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  218. return srv.(BxcolServer).IsCollAction(ctx, req.(*IsCollActionReq))
  219. }
  220. return interceptor(ctx, in, info, handler)
  221. }
  222. func _Bxcol_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  223. in := new(ListReq)
  224. if err := dec(in); err != nil {
  225. return nil, err
  226. }
  227. if interceptor == nil {
  228. return srv.(BxcolServer).List(ctx, in)
  229. }
  230. info := &grpc.UnaryServerInfo{
  231. Server: srv,
  232. FullMethod: "/bxcol.bxcol/List",
  233. }
  234. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  235. return srv.(BxcolServer).List(ctx, req.(*ListReq))
  236. }
  237. return interceptor(ctx, in, info, handler)
  238. }
  239. // Bxcol_ServiceDesc is the grpc.ServiceDesc for Bxcol service.
  240. // It's only intended for direct use with grpc.RegisterService,
  241. // and not to be introspected or modified (even as a copy)
  242. var Bxcol_ServiceDesc = grpc.ServiceDesc{
  243. ServiceName: "bxcol.bxcol",
  244. HandlerType: (*BxcolServer)(nil),
  245. Methods: []grpc.MethodDesc{
  246. {
  247. MethodName: "Addlabel",
  248. Handler: _Bxcol_Addlabel_Handler,
  249. },
  250. {
  251. MethodName: "GetLabelAction",
  252. Handler: _Bxcol_GetLabelAction_Handler,
  253. },
  254. {
  255. MethodName: "LabelAction",
  256. Handler: _Bxcol_LabelAction_Handler,
  257. },
  258. {
  259. MethodName: "BCAction",
  260. Handler: _Bxcol_BCAction_Handler,
  261. },
  262. {
  263. MethodName: "IsCollAction",
  264. Handler: _Bxcol_IsCollAction_Handler,
  265. },
  266. {
  267. MethodName: "List",
  268. Handler: _Bxcol_List_Handler,
  269. },
  270. },
  271. Streams: []grpc.StreamDesc{},
  272. Metadata: "bxcollection.proto",
  273. }