ownerlistlogic.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package logic
  2. import (
  3. "context"
  4. "fmt"
  5. "bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
  6. "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc"
  7. "bp.jydev.jianyu360.cn/CRM/application/api/internal/types"
  8. "github.com/zeromicro/go-zero/core/logx"
  9. )
  10. type OwnerListLogic struct {
  11. logx.Logger
  12. ctx context.Context
  13. svcCtx *svc.ServiceContext
  14. }
  15. func NewOwnerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerListLogic {
  16. return &OwnerListLogic{
  17. Logger: logx.WithContext(ctx),
  18. ctx: ctx,
  19. svcCtx: svcCtx,
  20. }
  21. }
  22. func (l *OwnerListLogic) OwnerList(req *types.OwnerListReq) (resp *types.Reply, err error) {
  23. // todo: add your logic here and delete this line
  24. logx.Info(fmt.Sprintf("%+v", req))
  25. resp = &types.Reply{}
  26. ownerService := &service.OwnerService{
  27. PartyA: req.PartyA,
  28. Supplier: req.Supplier,
  29. Heterotophy: req.Heterotophy,
  30. Intermediary: req.Intermediary,
  31. Agency: req.Agency,
  32. SearchEntName: req.SearchEntName,
  33. SourceType: req.SourceType,
  34. ProcessingStatus: req.ProcessingStatus,
  35. Area: req.Area,
  36. PositionId: req.PositionId,
  37. PageIndex: req.PageIndex,
  38. PageSize: req.PageSize,
  39. ProjectType: req.ProjectType,
  40. EntAccountId: req.EntAccountId,
  41. }
  42. data := ownerService.OwnerlList()
  43. resp.Data = data
  44. return
  45. }