1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: bxcollection.proto
- package server
- import (
- "context"
- "jyMicroservices/jyBXAdditional/rpc/bxcollection/bxcol"
- "jyMicroservices/jyBXAdditional/rpc/bxcollection/internal/logic"
- "jyMicroservices/jyBXAdditional/rpc/bxcollection/internal/svc"
- )
- type BxcolServer struct {
- svcCtx *svc.ServiceContext
- bxcol.UnimplementedBxcolServer
- }
- func NewBxcolServer(svcCtx *svc.ServiceContext) *BxcolServer {
- return &BxcolServer{
- svcCtx: svcCtx,
- }
- }
- // 新增标签
- func (s *BxcolServer) Addlabel(ctx context.Context, in *bxcol.AddlabelReq) (*bxcol.AddlabelRes, error) {
- l := logic.NewAddlabelLogic(ctx, s.svcCtx)
- return l.Addlabel(in)
- }
- // 获取标签
- func (s *BxcolServer) GetLabelAction(ctx context.Context, in *bxcol.GetLabelActionReq) (*bxcol.GetLabelActionRes, error) {
- l := logic.NewGetLabelActionLogic(ctx, s.svcCtx)
- return l.GetLabelAction(in)
- }
- // 标签新增或删除
- func (s *BxcolServer) LabelAction(ctx context.Context, in *bxcol.LabelActionReq) (*bxcol.LabelActionRes, error) {
- l := logic.NewLabelActionLogic(ctx, s.svcCtx)
- return l.LabelAction(in)
- }
- // 招标信息收藏
- func (s *BxcolServer) BCAction(ctx context.Context, in *bxcol.BCActionReq) (*bxcol.LabelActionRes, error) {
- l := logic.NewBCActionLogic(ctx, s.svcCtx)
- return l.BCAction(in)
- }
- // 招标信息是否被收藏
- func (s *BxcolServer) IsCollAction(ctx context.Context, in *bxcol.IsCollActionReq) (*bxcol.IsCollActionRes, error) {
- l := logic.NewIsCollActionLogic(ctx, s.svcCtx)
- return l.IsCollAction(in)
- }
- // 获取收藏列表
- func (s *BxcolServer) List(ctx context.Context, in *bxcol.ListReq) (*bxcol.ListRes, error) {
- l := logic.NewListLogic(ctx, s.svcCtx)
- return l.List(in)
- }
|