package logic import ( "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb" "context" "log" "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 ClueTransferLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewClueTransferLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClueTransferLogic { return &ClueTransferLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *ClueTransferLogic) ClueTransfer(req *types.ClueTransferReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BiServiceRpc.ClueTransfer(l.ctx, &pb.ClueTransferReq{ ClueId: req.ClueId, ClueName: req.ClueName, }) log.Println("rpc返回:", res) return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg}, err }