package logic import ( "bp.jydev.jianyu360.cn/BaseService/biService/service" "context" "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 ClueTransferLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewClueTransferLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClueTransferLogic { return &ClueTransferLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *ClueTransferLogic) ClueTransfer(in *pb.ClueTransferReq) (*pb.BiResp, error) { // todo: add your logic here and delete this line status, err := service.ClueTransfer(in.ClueId, in.ClueName) return &pb.BiResp{ ErrorCode: int64(status), ErrorMsg: err.Error(), }, err }