associatelogic.go 724 B

12345678910111213141516171819202122232425262728293031
  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. logx.Info(fmt.Sprintf("%+v", req))
  23. resp = service.Network.Associate(req)
  24. return
  25. }