/// <summary> /// 初始化 /// </summary> public ChatHelper(WxHelper wxHelper, ICrmEvaMstrRepository crmEvaMstrRepository, ISysUsrMstrRepository sysUsrMstrRepository, ISysUsrWctRepository sysUsrWctRepository, ICrmBehaviorRecordRepository crmBehaviorRecordRepository, IConfiguration configuration) { _wxHelper = wxHelper; _crmEvaMstrRepository = crmEvaMstrRepository; _sysUsrMstrRepository = sysUsrMstrRepository; _sysUsrWctRepository = sysUsrWctRepository; _crmBehaviorRecordRepository = crmBehaviorRecordRepository; _configuration = configuration; }
/// <summary> /// 初始化控制器 /// <param name="crmEvaMstrService">服务</param> /// <param name="iCrmEvaMstrRepository">仓储</param> /// </summary> public CrmEvaMstrController(ICrmEvaMstrService crmEvaMstrService, ICrmEvaMstrRepository iCrmEvaMstrRepository) { _crmEvaMstrService = crmEvaMstrService; _crmEvaMstrRepository = iCrmEvaMstrRepository; }
/// <summary> /// 初始化 /// </summary> /// <param name="chatHelper">聊天helper</param> /// <param name="crmEvaMstrRepository">消息仓储</param> public SignalRHub(ChatHelper chatHelper, ICrmEvaMstrRepository crmEvaMstrRepository) { _chatHelper = chatHelper; _crmEvaMstrRepository = crmEvaMstrRepository; }
/// <summary> /// 初始化服务 /// </summary> public CrmEvaMstrService(ICrmEvaMstrRepository crmEvaMstrRepository) { _crmEvaMstrRepository = crmEvaMstrRepository; }