ownerroutelogic.go 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package logic
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
  4. "context"
  5. "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc"
  6. "bp.jydev.jianyu360.cn/CRM/application/api/internal/types"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type OwnerRouteLogic struct {
  10. logx.Logger
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. }
  14. func NewOwnerRouteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerRouteLogic {
  15. return &OwnerRouteLogic{
  16. Logger: logx.WithContext(ctx),
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. }
  20. }
  21. func (l *OwnerRouteLogic) OwnerRoute(req *types.RouteOwnerListReq) (resp *types.Reply, err error) {
  22. // todo: add your logic here and delete this line
  23. resp = &types.Reply{}
  24. ownerService := &service.OwnerService{
  25. BuyerId: req.BuyerId,
  26. BuyerName: req.BuyerName,
  27. }
  28. data := ownerService.OwnerRoute()
  29. resp.Data = data
  30. return
  31. }