src/SSCMS.Web/Controllers/Admin/Cms/Contents/ContentsLayerWordController.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NSwag.Annotations;
using SSCMS.Configuration;
using SSCMS.Dto;
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 ContentsLayerWordController : ControllerBase
{
private const string Route = "cms/contents/contentsLayerWord";
private const string RouteUpload = "cms/contents/contentsLayerWord/actions/upload";
private readonly IAuthManager _authManager;
private readonly IPathManager _pathManager;
private readonly ICreateManager _createManager;
private readonly ISiteRepository _siteRepository;
private readonly IChannelRepository _channelRepository;
private readonly IContentRepository _contentRepository;
private readonly IErrorLogRepository _errorLogRepository;
public ContentsLayerWordController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IErrorLogRepository errorLogRepository)
{
_authManager = authManager;
_pathManager = pathManager;
_createManager = createManager;
_siteRepository = siteRepository;
_channelRepository = channelRepository;
_contentRepository = contentRepository;
_errorLogRepository = errorLogRepository;
}
public class GetResult
{
public List<KeyValuePair<int, string>> CheckedLevels { get; set; }
public int CheckedLevel { get; set; }
}
public class NameTitle
{
public string FileName { get; set; }
public string Title { get; set; }
}
public class SubmitRequest : ChannelRequest
{
public bool IsFirstLineTitle { get; set; }
public bool IsClearFormat { get; set; }
public bool IsFirstLineIndent { get; set; }
public bool IsClearFontSize { get; set; }
public bool IsClearFontFamily { get; set; }
public bool IsClearImages { get; set; }
public int CheckedLevel { get; set; }
public List<NameTitle> Files { get; set; }
后面还有 3 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
