/// <summary> /// 首页 /// </summary> /// <param name="postService"></param> /// <param name="categoryService"></param> /// <param name="searchDetailsService"></param> /// <param name="noticeService"></param> /// <param name="postAccessRecordService"></param> /// <param name="fastShareService"></param> public HomeController(IPostService postService, ICategoryService categoryService, ISearchDetailsService searchDetailsService, INoticeService noticeService, IPostAccessRecordService postAccessRecordService, IFastShareService fastShareService) { CategoryService = categoryService; PostService = postService; SearchDetailsService = searchDetailsService; NoticeService = noticeService; PostAccessRecordService = postAccessRecordService; FastShareService = fastShareService; }
/// <summary> /// hangfire后台任务 /// </summary> /// <param name="userInfoService"></param> /// <param name="postService"></param> /// <param name="settingService"></param> /// <param name="searchDetailsService"></param> /// <param name="linksService"></param> /// <param name="httpClientFactory"></param> /// <param name="hostingEnvironment"></param> /// <param name="searchEngine"></param> public HangfireBackJob(IUserInfoService userInfoService, IPostService postService, ISystemSettingService settingService, ISearchDetailsService searchDetailsService, ILinksService linksService, IHttpClientFactory httpClientFactory, IHostingEnvironment hostingEnvironment, ISearchEngine <DataContext> searchEngine) { _userInfoService = userInfoService; _postService = postService; _settingService = settingService; _searchDetailsService = searchDetailsService; _linksService = linksService; _httpClientFactory = httpClientFactory; _hostingEnvironment = hostingEnvironment; _searchEngine = searchEngine; }
/// <summary> /// hangfire后台任务 /// </summary> /// <param name="userInfoService"></param> /// <param name="postService"></param> /// <param name="settingService"></param> /// <param name="searchDetailsService"></param> /// <param name="linksService"></param> /// <param name="httpClientFactory"></param> /// <param name="HostEnvironment"></param> /// <param name="searchEngine"></param> public HangfireBackJob(IUserInfoService userInfoService, IPostService postService, ISystemSettingService settingService, ISearchDetailsService searchDetailsService, ILinksService linksService, IHttpClientFactory httpClientFactory, IWebHostEnvironment HostEnvironment, ISearchEngine <DataContext> searchEngine, IAdvertisementService advertisementService, INoticeService noticeService) { _userInfoService = userInfoService; _postService = postService; _settingService = settingService; _searchDetailsService = searchDetailsService; _linksService = linksService; _httpClientFactory = httpClientFactory; _hostEnvironment = HostEnvironment; _searchEngine = searchEngine; _advertisementService = advertisementService; _noticeService = noticeService; }
/// <summary> /// 站内搜索 /// </summary> /// <param name="searchDetailsService"></param> /// <param name="postService"></param> /// <param name="searchEngine"></param> public SearchController(ISearchDetailsService searchDetailsService, IPostService postService, ISearchEngine <DataContext> searchEngine) { SearchDetailsService = searchDetailsService; _postService = postService; }