12345678910111213141516171819202122232425262728293031323334353637383940 |
- package logic
- import (
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
- "context"
- "fmt"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc"
- "bp.jydev.jianyu360.cn/CRM/application/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
- }
|