package logic import ( "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice" "context" "github.com/gogf/gf/v2/util/gconv" "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 FindClueInfoLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewFindClueInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindClueInfoLogic { return &FindClueInfoLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *FindClueInfoLogic) FindClueInfo(req *types.FindClueInfoReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BiServiceRpc.FindClueInfo(l.ctx, &biservice.FindClueInfoReq{ UserId: req.UserId, Phone: req.Phone, PositionId: req.PositionId, }) data := gconv.Map(gconv.UnsafeBytesToStr(res.Data)) return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: data}, err }