package logic import ( "app.yhyue.com/moapp/jybase/common" "bp.jydev.jianyu360.cn/BaseService/biService/service" "context" "encoding/json" "github.com/gogf/gf/v2/util/gconv" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb" "github.com/zeromicro/go-zero/core/logx" ) type FindClueInfoLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewFindClueInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindClueInfoLogic { return &FindClueInfoLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *FindClueInfoLogic) FindClueInfo(in *pb.FindClueInfoReq) (*pb.BiReply, error) { // todo: add your logic here and delete this line data, code := service.FindClueInfo(in) infoByte, _ := json.Marshal(data) return &pb.BiReply{ ErrorCode: code, ErrorMsg: gconv.String(common.If(code == 1, "暂无此用户详情", "")), Data: infoByte, }, nil }