candidatechannellistlogic.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 CandidateChannelListLogic struct {
  10. logx.Logger
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. }
  14. func NewCandidateChannelListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CandidateChannelListLogic {
  15. return &CandidateChannelListLogic{
  16. Logger: logx.WithContext(ctx),
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. }
  20. }
  21. func (l *CandidateChannelListLogic) CandidateChannelList(req *types.ChannelListReq) (resp *types.Reply, err error) {
  22. // todo: add your logic here and delete this line
  23. ownerService := &service.OwnerService{
  24. PartyA: req.PartyA,
  25. Supplier: req.Supplier,
  26. Intermediary: req.Intermediary,
  27. Heterotophy: req.Heterotophy,
  28. Agency: req.Agency,
  29. PositionId: req.PositionId,
  30. }
  31. data := ownerService.CandidateChannel()
  32. resp.Data = data
  33. return
  34. }