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

package server

import (
	"context"

	"jyBXBase/rpc/internal/logic"
	"jyBXBase/rpc/internal/svc"
	"jyBXBase/rpc/type/bxbase"
)

type BxbaseServer struct {
	svcCtx *svc.ServiceContext
	bxbase.UnimplementedBxbaseServer
}

func NewBxbaseServer(svcCtx *svc.ServiceContext) *BxbaseServer {
	return &BxbaseServer{
		svcCtx: svcCtx,
	}
}

// 新增标签
func (s *BxbaseServer) Addlabel(ctx context.Context, in *bxbase.AddlabelReq) (*bxbase.AddlabelRes, error) {
	l := logic.NewAddlabelLogic(ctx, s.svcCtx)
	return l.Addlabel(in)
}

// 获取标签
func (s *BxbaseServer) GetLabelAction(ctx context.Context, in *bxbase.GetLabelActionReq) (*bxbase.GetLabelActionRes, error) {
	l := logic.NewGetLabelActionLogic(ctx, s.svcCtx)
	return l.GetLabelAction(in)
}

// 标签新增或删除
func (s *BxbaseServer) LabelAction(ctx context.Context, in *bxbase.LabelActionReq) (*bxbase.LabelActionRes, error) {
	l := logic.NewLabelActionLogic(ctx, s.svcCtx)
	return l.LabelAction(in)
}

// 招标信息收藏
func (s *BxbaseServer) BCAction(ctx context.Context, in *bxbase.BCActionReq) (*bxbase.LabelActionRes, error) {
	l := logic.NewBCActionLogic(ctx, s.svcCtx)
	return l.BCAction(in)
}

// 招标信息是否被收藏
func (s *BxbaseServer) IsCollAction(ctx context.Context, in *bxbase.IsCollActionReq) (*bxbase.IsCollActionRes, error) {
	l := logic.NewIsCollActionLogic(ctx, s.svcCtx)
	return l.IsCollAction(in)
}

// 获取收藏列表
func (s *BxbaseServer) List(ctx context.Context, in *bxbase.ListReq) (*bxbase.ListRes, error) {
	l := logic.NewListLogic(ctx, s.svcCtx)
	return l.List(in)
}

// 获取筛选列表
func (s *BxbaseServer) ShowSearch(ctx context.Context, in *bxbase.ShowSearchReq) (*bxbase.ShowSearchRes, error) {
	l := logic.NewShowSearchLogic(ctx, s.svcCtx)
	return l.ShowSearch(in)
}

// 添加删选列表
func (s *BxbaseServer) AddSearch(ctx context.Context, in *bxbase.AddSearchReq) (*bxbase.CommonRes, error) {
	l := logic.NewAddSearchLogic(ctx, s.svcCtx)
	return l.AddSearch(in)
}

// 修改筛选列表
func (s *BxbaseServer) CheckSearch(ctx context.Context, in *bxbase.AddSearchReq) (*bxbase.CheckRes, error) {
	l := logic.NewCheckSearchLogic(ctx, s.svcCtx)
	return l.CheckSearch(in)
}

// 删除筛选列表
func (s *BxbaseServer) DelSearch(ctx context.Context, in *bxbase.DelSearchReq) (*bxbase.CommonRes, error) {
	l := logic.NewDelSearchLogic(ctx, s.svcCtx)
	return l.DelSearch(in)
}

// 首页最新招标信息
func (s *BxbaseServer) NewestBidding(ctx context.Context, in *bxbase.NewestBiddingReq) (*bxbase.NewsetBiddingResp, error) {
	l := logic.NewNewestBiddingLogic(ctx, s.svcCtx)
	return l.NewestBidding(in)
}

// 剑鱼网站收录情况
func (s *BxbaseServer) Included(ctx context.Context, in *bxbase.AppIdReq) (*bxbase.IncludedResp, error) {
	l := logic.NewIncludedLogic(ctx, s.svcCtx)
	return l.Included(in)
}
