associatelogic.go 688 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "context"
  4. "bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
  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 AssociateLogic struct {
  10. logx.Logger
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. }
  14. func NewAssociateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AssociateLogic {
  15. return &AssociateLogic{
  16. Logger: logx.WithContext(ctx),
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. }
  20. }
  21. func (l *AssociateLogic) Associate(req *types.AssociateReq) (resp *types.Reply, err error) {
  22. resp = service.Network.Associate(req)
  23. return
  24. }