package logic import ( "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice" "context" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type GetClueInfoListLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } // 线索验重 列表 func NewGetClueInfoListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetClueInfoListLogic { return &GetClueInfoListLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *GetClueInfoListLogic) GetClueInfoList(req *types.ClueInfoReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line if req.SearchName == "" { return &types.BiResp{ Error_code: 1, Error_msg: "参数无效"}, nil } res, err := l.svcCtx.BiServiceRpc.GetClueInfoList(l.ctx, &biservice.ClueInfoReq{ SearchName: req.SearchName, }) return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err }