123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.2.0
- // - protoc v3.9.0
- // source: bxcollection.proto
- package bxcol
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // BxcolClient is the client API for Bxcol service.
- //
- // 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.
- type BxcolClient interface {
- //新增标签
- Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error)
- //获取标签
- GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error)
- //标签新增或删除
- LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
- //招标信息收藏
- BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
- //招标信息是否被收藏
- IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error)
- //获取收藏列表
- List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error)
- }
- type bxcolClient struct {
- cc grpc.ClientConnInterface
- }
- func NewBxcolClient(cc grpc.ClientConnInterface) BxcolClient {
- return &bxcolClient{cc}
- }
- func (c *bxcolClient) Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error) {
- out := new(AddlabelRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/Addlabel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *bxcolClient) GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error) {
- out := new(GetLabelActionRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/GetLabelAction", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *bxcolClient) LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
- out := new(LabelActionRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/LabelAction", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *bxcolClient) BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
- out := new(LabelActionRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/BCAction", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *bxcolClient) IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error) {
- out := new(IsCollActionRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/IsCollAction", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *bxcolClient) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error) {
- out := new(ListRes)
- err := c.cc.Invoke(ctx, "/bxcol.bxcol/List", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // BxcolServer is the server API for Bxcol service.
- // All implementations must embed UnimplementedBxcolServer
- // for forward compatibility
- type BxcolServer interface {
- //新增标签
- Addlabel(context.Context, *AddlabelReq) (*AddlabelRes, error)
- //获取标签
- GetLabelAction(context.Context, *GetLabelActionReq) (*GetLabelActionRes, error)
- //标签新增或删除
- LabelAction(context.Context, *LabelActionReq) (*LabelActionRes, error)
- //招标信息收藏
- BCAction(context.Context, *BCActionReq) (*LabelActionRes, error)
- //招标信息是否被收藏
- IsCollAction(context.Context, *IsCollActionReq) (*IsCollActionRes, error)
- //获取收藏列表
- List(context.Context, *ListReq) (*ListRes, error)
- mustEmbedUnimplementedBxcolServer()
- }
- // UnimplementedBxcolServer must be embedded to have forward compatible implementations.
- type UnimplementedBxcolServer struct {
- }
- func (UnimplementedBxcolServer) Addlabel(context.Context, *AddlabelReq) (*AddlabelRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Addlabel not implemented")
- }
- func (UnimplementedBxcolServer) GetLabelAction(context.Context, *GetLabelActionReq) (*GetLabelActionRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetLabelAction not implemented")
- }
- func (UnimplementedBxcolServer) LabelAction(context.Context, *LabelActionReq) (*LabelActionRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LabelAction not implemented")
- }
- func (UnimplementedBxcolServer) BCAction(context.Context, *BCActionReq) (*LabelActionRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method BCAction not implemented")
- }
- func (UnimplementedBxcolServer) IsCollAction(context.Context, *IsCollActionReq) (*IsCollActionRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method IsCollAction not implemented")
- }
- func (UnimplementedBxcolServer) List(context.Context, *ListReq) (*ListRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
- }
- func (UnimplementedBxcolServer) mustEmbedUnimplementedBxcolServer() {}
- // UnsafeBxcolServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to BxcolServer will
- // result in compilation errors.
- type UnsafeBxcolServer interface {
- mustEmbedUnimplementedBxcolServer()
- }
- func RegisterBxcolServer(s grpc.ServiceRegistrar, srv BxcolServer) {
- s.RegisterService(&Bxcol_ServiceDesc, srv)
- }
- func _Bxcol_Addlabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AddlabelReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).Addlabel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/Addlabel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).Addlabel(ctx, req.(*AddlabelReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Bxcol_GetLabelAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetLabelActionReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).GetLabelAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/GetLabelAction",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).GetLabelAction(ctx, req.(*GetLabelActionReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Bxcol_LabelAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LabelActionReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).LabelAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/LabelAction",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).LabelAction(ctx, req.(*LabelActionReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Bxcol_BCAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(BCActionReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).BCAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/BCAction",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).BCAction(ctx, req.(*BCActionReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Bxcol_IsCollAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IsCollActionReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).IsCollAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/IsCollAction",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).IsCollAction(ctx, req.(*IsCollActionReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Bxcol_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BxcolServer).List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bxcol.bxcol/List",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BxcolServer).List(ctx, req.(*ListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- // Bxcol_ServiceDesc is the grpc.ServiceDesc for Bxcol service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var Bxcol_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "bxcol.bxcol",
- HandlerType: (*BxcolServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Addlabel",
- Handler: _Bxcol_Addlabel_Handler,
- },
- {
- MethodName: "GetLabelAction",
- Handler: _Bxcol_GetLabelAction_Handler,
- },
- {
- MethodName: "LabelAction",
- Handler: _Bxcol_LabelAction_Handler,
- },
- {
- MethodName: "BCAction",
- Handler: _Bxcol_BCAction_Handler,
- },
- {
- MethodName: "IsCollAction",
- Handler: _Bxcol_IsCollAction_Handler,
- },
- {
- MethodName: "List",
- Handler: _Bxcol_List_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "bxcollection.proto",
- }
|