package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice" "github.com/zeromicro/go-zero/core/logx" ) type ClueAddLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewClueAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClueAddLogic { return &ClueAddLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *ClueAddLogic) ClueAdd(req *types.ClueAddReq) (resp *types.Resp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BiServiceRpc.ClueAdd(l.ctx, &biservice.ClueAddReq{ Phone: req.Phone, Username: req.Username, Source: req.Source, Status999: req.Status999, Owner: req.Owner, EmpNo: req.EmpNo, Company: req.Company, IsPolicymaker: req.IsPolicymaker, BelongToIndustry: req.BelongToIndustry, Job: req.Job, CustomerNeeds: req.CustomerNeeds, BelongTo: req.BelongTo, WantGoods: req.WantGoods, CustomerBudget: req.CustomerBudget, }) return &types.Resp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err }