package logic import ( "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/service" "context" "fmt" "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/svc" "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type OwnerRouteLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewOwnerRouteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerRouteLogic { return &OwnerRouteLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *OwnerRouteLogic) OwnerRoute(req *types.RouteOwnerListReq) (resp *types.Reply, err error) { // todo: add your logic here and delete this line logx.Info(fmt.Sprintf("%+v", req)) resp = &types.Reply{} ownerService := &service.OwnerService{ BuyerId: req.BuyerId, BuyerName: req.BuyerName, PositionId: req.PositionId, } data := ownerService.OwnerRoute() resp.Data = data return }