// Code generated by goctl. DO NOT EDIT!
// Source: bxbase.proto

package bxbase

import (
	"context"

	"jyBXBase/rpc/type/bxbase"

	"github.com/zeromicro/go-zero/zrpc"
	"google.golang.org/grpc"
)

type (
	AddSearchReq      = bxbase.AddSearchReq
	AddlabelReq       = bxbase.AddlabelReq
	AddlabelRes       = bxbase.AddlabelRes
	AppIdReq          = bxbase.AppIdReq
	BCActionReq       = bxbase.BCActionReq
	CheckRes          = bxbase.CheckRes
	ColData           = bxbase.ColData
	ColList           = bxbase.ColList
	CommonRes         = bxbase.CommonRes
	DelSearchReq      = bxbase.DelSearchReq
	GetLabelActionReq = bxbase.GetLabelActionReq
	GetLabelActionRes = bxbase.GetLabelActionRes
	IData             = bxbase.IData
	IncludedResp      = bxbase.IncludedResp
	IsCollActionReq   = bxbase.IsCollActionReq
	IsCollActionRes   = bxbase.IsCollActionRes
	LabelActionReq    = bxbase.LabelActionReq
	LabelActionRes    = bxbase.LabelActionRes
	LabelByUser       = bxbase.LabelByUser
	Labels            = bxbase.Labels
	ListReq           = bxbase.ListReq
	ListRes           = bxbase.ListRes
	ListSearchRes     = bxbase.ListSearchRes
	NewestBiddingReq  = bxbase.NewestBiddingReq
	NewestList        = bxbase.NewestList
	NewsetBidding     = bxbase.NewsetBidding
	NewsetBiddingResp = bxbase.NewsetBiddingResp
	SaveListModeReq   = bxbase.SaveListModeReq
	ShowListModeReq   = bxbase.ShowListModeReq
	ShowListModeRes   = bxbase.ShowListModeRes
	ShowSearchReq     = bxbase.ShowSearchReq
	ShowSearchRes     = bxbase.ShowSearchRes

	Bxbase 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)
		// 获取筛选列表
		ShowSearch(ctx context.Context, in *ShowSearchReq, opts ...grpc.CallOption) (*ShowSearchRes, error)
		// 添加删选列表
		AddSearch(ctx context.Context, in *AddSearchReq, opts ...grpc.CallOption) (*CommonRes, error)
		// 修改筛选列表
		CheckSearch(ctx context.Context, in *AddSearchReq, opts ...grpc.CallOption) (*CheckRes, error)
		// 删除筛选列表
		DelSearch(ctx context.Context, in *DelSearchReq, opts ...grpc.CallOption) (*CommonRes, error)
		// 首页最新招标信息
		NewestBidding(ctx context.Context, in *NewestBiddingReq, opts ...grpc.CallOption) (*NewsetBiddingResp, error)
		// 剑鱼网站收录情况
		Included(ctx context.Context, in *AppIdReq, opts ...grpc.CallOption) (*IncludedResp, error)
	}

	defaultBxbase struct {
		cli zrpc.Client
	}
)

func NewBxbase(cli zrpc.Client) Bxbase {
	return &defaultBxbase{
		cli: cli,
	}
}

// 新增标签
func (m *defaultBxbase) Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.Addlabel(ctx, in, opts...)
}

// 获取标签
func (m *defaultBxbase) GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.GetLabelAction(ctx, in, opts...)
}

// 标签新增或删除
func (m *defaultBxbase) LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.LabelAction(ctx, in, opts...)
}

// 招标信息收藏
func (m *defaultBxbase) BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.BCAction(ctx, in, opts...)
}

// 招标信息是否被收藏
func (m *defaultBxbase) IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.IsCollAction(ctx, in, opts...)
}

// 获取收藏列表
func (m *defaultBxbase) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.List(ctx, in, opts...)
}

// 获取筛选列表
func (m *defaultBxbase) ShowSearch(ctx context.Context, in *ShowSearchReq, opts ...grpc.CallOption) (*ShowSearchRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.ShowSearch(ctx, in, opts...)
}

// 添加删选列表
func (m *defaultBxbase) AddSearch(ctx context.Context, in *AddSearchReq, opts ...grpc.CallOption) (*CommonRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.AddSearch(ctx, in, opts...)
}

// 修改筛选列表
func (m *defaultBxbase) CheckSearch(ctx context.Context, in *AddSearchReq, opts ...grpc.CallOption) (*CheckRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.CheckSearch(ctx, in, opts...)
}

// 删除筛选列表
func (m *defaultBxbase) DelSearch(ctx context.Context, in *DelSearchReq, opts ...grpc.CallOption) (*CommonRes, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.DelSearch(ctx, in, opts...)
}

// 首页最新招标信息
func (m *defaultBxbase) NewestBidding(ctx context.Context, in *NewestBiddingReq, opts ...grpc.CallOption) (*NewsetBiddingResp, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.NewestBidding(ctx, in, opts...)
}

// 剑鱼网站收录情况
func (m *defaultBxbase) Included(ctx context.Context, in *AppIdReq, opts ...grpc.CallOption) (*IncludedResp, error) {
	client := bxbase.NewBxbaseClient(m.cli.Conn())
	return client.Included(ctx, in, opts...)
}
