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