candidatechannellogic.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package logic
  2. import (
  3. "context"
  4. "fmt"
  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 CandidateChannelLogic struct {
  10. logx.Logger
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. }
  14. func NewCandidateChannelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CandidateChannelLogic {
  15. return &CandidateChannelLogic{
  16. Logger: logx.WithContext(ctx),
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. }
  20. }
  21. func (l *CandidateChannelLogic) CandidateChannel(req *types.ChannelListReq) (resp *types.Reply, err error) {
  22. // todo: add your logic here and delete this line
  23. logx.Info(fmt.Sprintf("%+v", req))
  24. resp = &types.Reply{}
  25. /*ownerService := &service.OwnerService{
  26. PartyA: req.PartyA,
  27. Supplier: req.Supplier,
  28. Intermediary: req.Intermediary,
  29. Heterotophy: req.Heterotophy,
  30. Agency: req.Agency,
  31. PositionId: req.PositionId,
  32. }*/
  33. /*data := ownerService.CandidateChannel()
  34. resp.Data = data*/
  35. return
  36. }