public ArticleController(IAuditBaseRepository <Article> articleRepository, IMapper mapper, ICurrentUser currentUser, IArticleService articleService, IClassifyService classifyService)
 {
     _articleRepository = articleRepository;
     _mapper            = mapper;
     _currentUser       = currentUser;
     _articleService    = articleService;
     _classifyService   = classifyService;
 }
Пример #2
0
        public async Task <UnifyResponseDto> UpdateAsync([FromServices] IClassifyService _classifyService, Guid id, [FromBody] CreateUpdateArticleDto updateArticleDto)
        {
            await _articleService.UpdateAsync(id, updateArticleDto);

            await _articleService.UpdateTagAsync(id, updateArticleDto);

            return(UnifyResponseDto.Success("更新随笔成功"));
        }
 public ClassifyController(IClassifyService classifyService, IAppInsightsLoggerService logger)
 {
     _classifyService = classifyService;
     _logger          = logger;
     if (_classifyService == null)
     {
         throw new ArgumentException("Classify service cannot be null.");
     }
 }
 public UsersController(IUserService iuserService, ICityService icityService, ITownService itownService, IGuideService iguidService, IClassifyService iclassifyService, IFavoriteService ifavoriteService, ICategoryService iCategoryService)
 {
     _iuserService     = iuserService;
     _iclassifyService = iclassifyService;
     _ifavoriteService = ifavoriteService;
     _iCategoryService = iCategoryService;
     _iguidService     = iguidService;
     _icityService     = icityService;
     _itownService     = itownService;
 }
Пример #5
0
 /// <summary>
 /// 构造函数(操作函数注入)
 /// </summary>
 public ProductController(
     IProductService productService,
     IProductBrandService productBrandService,
     IProductDetailService productDetailService,
     IProductParameterService productParameterService,
     IClassifyService classifyService, IWorkContext workContent)
 {
     _productService          = productService;
     _productBrandService     = productBrandService;
     _productDetailService    = productDetailService;
     _productParameterService = productParameterService;
     _classifyService         = classifyService;
     _workContent             = workContent;
 }
Пример #6
0
 /// <summary>
 /// 构造函数(操作函数注入)
 /// </summary>
 public ProductController(
     IProductService productService,
     IProductBrandService productBrandService,
     IProductDetailService productDetailService,
     IProductParameterService productParameterService,
     IClassifyService classifyService, IWorkContext workContent)
 {
     _productService = productService;
     _productBrandService = productBrandService;
     _productDetailService = productDetailService;
     _productParameterService = productParameterService;
     _classifyService = classifyService;
     _workContent = workContent;
 }
Пример #7
0
        /// <summary>
        /// 构造函数(操作函数注入)
        /// </summary>

        public BrandController(
            IProductService productService,
            IProductBrandService productBrandService,
            IProductDetailService productDetailService,
            IProductParameterService productParameterService,
            IClassifyService classifyService,
            IBrandParameterService brandParameterService,
            IWorkContext workContext)
        {
            _productService          = productService;
            _productBrandService     = productBrandService;
            _productDetailService    = productDetailService;
            _productParameterService = productParameterService;
            _classifyService         = classifyService;
            _brandParameterService   = brandParameterService;
            _workContext             = workContext;
        }
Пример #8
0
        /// <summary>
        /// 构造函数(操作函数注入)
        /// </summary>

        public BrandController(
            IProductService productService,
            IProductBrandService productBrandService,
            IProductDetailService productDetailService,
            IProductParameterService productParameterService,
            IClassifyService classifyService,
            IBrandParameterService brandParameterService,
            IWorkContext workContext)
        {
            _productService = productService;
            _productBrandService = productBrandService;
            _productDetailService = productDetailService;
            _productParameterService = productParameterService;
            _classifyService = classifyService;
            _brandParameterService = brandParameterService;
            _workContext = workContext;
        }
Пример #9
0
 public ArticleAppService(
     AuditBaseRepository <Article> articleRepository,
     GuidRepository <TagArticle> tagArticleRepository,
     IMapper mapper,
     ICurrentUser currentUser,
     AuditBaseRepository <UserLike> userLikeRepository,
     AuditBaseRepository <Comment> commentBaseRepository,
     IClassifyService classifyService,
     ITagService tagService)
 {
     _articleRepository    = articleRepository;
     _tagArticleRepository = tagArticleRepository;
     _mapper                = mapper;
     _currentUser           = currentUser;
     _userLikeRepository    = userLikeRepository;
     _commentBaseRepository = commentBaseRepository;
     _classifyService       = classifyService;
     this.tagService        = tagService;
 }
Пример #10
0
 /// <summary>
 /// 构造函数(操作函数注入)
 /// </summary>
 public ClassifyController(
     IProductService productService,
     IProductBrandService productBrandService,
     IProductDetailService productDetailService,
     IProductParameterService productParameterService,
     IClassifyService classifyService,
     IParameterValueService parameterValueService,
     IParameterService parameterService,
     IWorkContext workContext)
 {
     _productService = productService;
     _productBrandService = productBrandService;
     _productDetailService = productDetailService;
     _productParameterService = productParameterService;
     _classifyService = classifyService;
     _parameterService = parameterService;
     _parameterValueService = parameterValueService;
     _workContext = workContext;
 }
Пример #11
0
 /// <summary>
 /// 构造函数(操作函数注入)
 /// </summary>
 public ClassifyController(
     IProductService productService,
     IProductBrandService productBrandService,
     IProductDetailService productDetailService,
     IProductParameterService productParameterService,
     IClassifyService classifyService,
     IParameterValueService parameterValueService,
     IParameterService parameterService,
     IWorkContext workContext)
 {
     _productService          = productService;
     _productBrandService     = productBrandService;
     _productDetailService    = productDetailService;
     _productParameterService = productParameterService;
     _classifyService         = classifyService;
     _parameterService        = parameterService;
     _parameterValueService   = parameterValueService;
     _workContext             = workContext;
 }
Пример #12
0
        public ArticleService(
            IAuditBaseRepository <Article> articleRepository,
            IAuditBaseRepository <TagArticle> tagArticleRepository,
            IAuditBaseRepository <UserLike> userLikeRepository,
            IAuditBaseRepository <Comment> commentRepository,
            IClassifyService classifyService,
            ITagService tagService,
            IUserSubscribeService userSubscribeService,
            IAuditBaseRepository <ArticleDraft> articleDraftRepository,
            IFileRepository fileRepository
            )
        {
            _articleRepository    = articleRepository;
            _tagArticleRepository = tagArticleRepository;
            _userLikeRepository   = userLikeRepository;
            _commentRepository    = commentRepository;

            _classifyService        = classifyService;
            _tagService             = tagService;
            _userSubscribeService   = userSubscribeService;
            _articleDraftRepository = articleDraftRepository;
            _fileRepository         = fileRepository;
        }
Пример #13
0
        public ArticleService(
            IAuditBaseRepository <Article> articleRepository,
            IBaseRepository <TagArticle> tagArticleRepository,
            IMapper mapper,
            ICurrentUser currentUser,
            IAuditBaseRepository <UserLike> userLikeRepository,
            IAuditBaseRepository <Comment> commentBaseRepository,
            IClassifyService classifyService,
            ITagService tagService, IUserLikeService userSubscribeService,
            IAuditBaseRepository <ArticleDraft> articleDraftRepository)
        {
            _articleRepository    = articleRepository;
            _tagArticleRepository = tagArticleRepository;
            _mapper                = mapper;
            _currentUser           = currentUser;
            _userLikeRepository    = userLikeRepository;
            _commentBaseRepository = commentBaseRepository;

            _classifyService        = classifyService;
            _tagService             = tagService;
            _userSubscribeService   = userSubscribeService;
            _articleDraftRepository = articleDraftRepository;
        }
 public ClassifyController(IClassifyService classifyService)
 {
     _classifyService = classifyService;
 }
 public AdminClassifyController(IClassifyService IClassifyService, ApplicationUserManager userManager) : base(userManager)
 {
     _ClassifyService = IClassifyService;
 }