public DictionaryEntryController( IDictionaryRepository dictionaryRepository, IDictionaryEntryRepository dictionaryEntryRepository) { DictionaryRepository = dictionaryRepository; DictionaryEntryRepository = dictionaryEntryRepository; }
public RootAnalysisController( IVerseAnalysisRepository verseAnalysisRepository, IDictionaryEntryRepository dictionaryEntryRepository, IDictionaryRepository dictionaryRepository) { VerseAnalysisRepository = verseAnalysisRepository; DictionaryEntryRepository = dictionaryEntryRepository; DictionaryRepository = dictionaryRepository; }
/// <summary> /// 构造函数 参数对象系统自动注入 /// </summary> /// <param name="mapper">autoMapper 映射工具对象</param> /// <param name="cache">缓存对象</param> /// <param name="authUser">授权用户对象</param> /// <param name="dictionaryEntryRepository">仓储对象</param> public DictionaryEntryService( IMapper mapper, ICache cache, IAuthUser authUser, IDictionaryEntryRepository dictionaryEntryRepository ) { _mapper = mapper; _cache = cache; _authUser = authUser; _dictionaryEntryRepository = dictionaryEntryRepository; }