1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: bxcollection.proto
- package bxcol
- import (
- "context"
- "github.com/zeromicro/go-zero/zrpc"
- "google.golang.org/grpc"
- )
- type (
- Bxcol 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)
- }
- defaultBxcol struct {
- cli zrpc.Client
- }
- )
- func NewBxcol(cli zrpc.Client) Bxcol {
- return &defaultBxcol{
- cli: cli,
- }
- }
- // 新增标签
- func (m *defaultBxcol) Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.Addlabel(ctx, in, opts...)
- }
- // 获取标签
- func (m *defaultBxcol) GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.GetLabelAction(ctx, in, opts...)
- }
- // 标签新增或删除
- func (m *defaultBxcol) LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.LabelAction(ctx, in, opts...)
- }
- // 招标信息收藏
- func (m *defaultBxcol) BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.BCAction(ctx, in, opts...)
- }
- // 招标信息是否被收藏
- func (m *defaultBxcol) IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.IsCollAction(ctx, in, opts...)
- }
- // 获取收藏列表
- func (m *defaultBxcol) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error) {
- client := NewBxcolClient(m.cli.Conn())
- return client.List(ctx, in, opts...)
- }
|