1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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, a1, a2, a3, a4 := ownerService.CandidateChannel()
- resp.Data = map[string]interface{}{
- "list": data,
- "size1": a1,
- "size3": a2,
- "size4": a3,
- "size2": a4,
- }
- return
- }
|