src/SSCMS.Web/Controllers/Admin/Cms/Material/ImageController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.Material
{
[OpenApiIgnore]
[Authorize(Roles = Types.Roles.Administrator)]
[Route(Constants.ApiAdminPrefix)]
public partial class ImageController : ControllerBase
{
private const string Route = "cms/material/image";
private const string RouteUpdate = "cms/material/image/actions/update";
private const string RouteDelete = "cms/material/image/actions/delete";
private const string RouteDeleteGroup = "cms/material/image/actions/deleteGroup";
private const string RoutePull = "cms/material/image/actions/pull";
private const string RouteDownload = "cms/material/image/actions/download";
private readonly ISettingsManager _settingsManager;
private readonly IAuthManager _authManager;
private readonly IPathManager _pathManager;
private readonly IWxManager _openManager;
private readonly ISiteRepository _siteRepository;
private readonly IMaterialGroupRepository _materialGroupRepository;
private readonly IMaterialImageRepository _materialImageRepository;
private readonly IWxAccountRepository _openAccountRepository;
public ImageController(ISettingsManager settingsManager, IAuthManager authManager, IPathManager pathManager, IWxManager openManager, ISiteRepository siteRepository, IMaterialGroupRepository materialGroupRepository, IMaterialImageRepository materialImageRepository, IWxAccountRepository openAccountRepository)
{
_settingsManager = settingsManager;
_authManager = authManager;
_pathManager = pathManager;
_openManager = openManager;
_siteRepository = siteRepository;
_materialGroupRepository = materialGroupRepository;
_materialImageRepository = materialImageRepository;
_openAccountRepository = openAccountRepository;
}
public class QueryRequest
{
public int SiteId { get; set; }
public string Keyword { get; set; }
public int GroupId { get; set; }
public int Page { get; set; }
public int PerPage { get; set; }
}
public class QueryResult
{
public IEnumerable<MaterialGroup> Groups { get; set; }
public int Count { get; set; }
public IEnumerable<MaterialImage> Items { get; set; }
public string SiteType { get; set; }
后面还有 41 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
