|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
using WTA.Application.Identity.Entities.SystemManagement;
|
|
|
|
using WTA.Shared.Attributes;
|
|
|
|
using WTA.Shared.Controllers;
|
|
|
|
using WTA.Shared.Data;
|
|
|
|
|
|
|
|
namespace WTA.Application.Identity.Controllers;
|
|
|
|
|
|
|
|
public class CentralizedControlController : GenericController<CentralizedControl, CentralizedControl, CentralizedControl, CentralizedControl, CentralizedControl, CentralizedControl>
|
|
|
|
{
|
|
|
|
public CentralizedControlController(ILogger<CentralizedControl> logger, IRepository<CentralizedControl> repository) : base(logger, repository)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false)
|
|
|
|
{
|
|
|
|
return base.Import(file, partial, replace);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Create([FromBody] CentralizedControl model)
|
|
|
|
{
|
|
|
|
return base.Create(model);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Delete([FromBody] Guid[] guids)
|
|
|
|
{
|
|
|
|
return base.Delete(guids);
|
|
|
|
}
|
|
|
|
[HttpPost, Multiple, Display(Name = "关闭期间")]
|
|
|
|
public IActionResult? ClosedVersion()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost,Multiple,Display(Name ="开启期间")]
|
|
|
|
public IActionResult? OpenVersion()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|