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 CandidateChannelListLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewCandidateChannelListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CandidateChannelListLogic { return &CandidateChannelListLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *CandidateChannelListLogic) CandidateChannelList(req *types.ChannelListReq) (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{ PartyA: req.PartyA, Supplier: req.Supplier, Intermediary: req.Intermediary, Heterotophy: req.Heterotophy, Agency: req.Agency, PositionId: req.PositionId, EntAccountId: req.EntAccountId, } data := ownerService.CandidateChannel() resp.Data = data return }