src/SSCMS.Web/Controllers/Admin/Cms/Contents/ContentsCheckController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NSwag.Annotations;
using SSCMS.Configuration;
using SSCMS.Dto;
using SSCMS.Models;
using SSCMS.Repositories;
using SSCMS.Services;
namespace SSCMS.Web.Controllers.Admin.Cms.Contents
{
[OpenApiIgnore]
[Authorize(Roles = Types.Roles.Administrator)]
[Route(Constants.ApiAdminPrefix)]
public partial class ContentsCheckController : ControllerBase
{
private const string RouteList = "cms/contents/contentsCheck/actions/list";
private const string RouteTree = "cms/contents/contentsCheck/actions/tree";
private const string RouteColumns = "cms/contents/contentsCheck/actions/columns";
private readonly IAuthManager _authManager;
private readonly IPathManager _pathManager;
private readonly IDatabaseManager _databaseManager;
private readonly ISiteRepository _siteRepository;
private readonly IChannelRepository _channelRepository;
private readonly IContentRepository _contentRepository;
private readonly IContentGroupRepository _contentGroupRepository;
private readonly IContentTagRepository _contentTagRepository;
public ContentsCheckController(IAuthManager authManager, IPathManager pathManager, IDatabaseManager databaseManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository)
{
_authManager = authManager;
_pathManager = pathManager;
_databaseManager = databaseManager;
_siteRepository = siteRepository;
_channelRepository = channelRepository;
_contentRepository = contentRepository;
_contentGroupRepository = contentGroupRepository;
_contentTagRepository = contentTagRepository;
}
public class ColumnsRequest : SiteRequest
{
public List<string> AttributeNames { get; set; }
}
public class ListRequest : SiteRequest
{
public int? ChannelId { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public IEnumerable<KeyValuePair<string, string>> Items { get; set; }
public int Page { get; set; }
public List<int> CheckedLevels { get; set; }
public bool IsTop { get; set; }
public bool IsRecommend { get; set; }
public bool IsHot { get; set; }
public bool IsColor { get; set; }
后面还有 22 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
