You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

7 months ago
using Entity.Base;
using Entity.DbModel.System.SysBaseObject;
using Entity.Dto.Req;
using Microsoft.AspNetCore.Mvc;
using Service.System.SysLog;
namespace WebStarter.Controllers.System.SysLog
{
[Produces("application/json")]
[ApiController]
public class SysLogOpController
{
private readonly SysLogOpService _sysLogOpService;
public SysLogOpController(SysLogOpService sysLogOpService)
{
_sysLogOpService = sysLogOpService;
}
[HttpPost]
[Route("api/sysLogOp/page")]
public async Task<SqlSugarPagedList<SysLogOp>> LogOpPage(PageLogReq input)
{
return await _sysLogOpService.Page(input);
}
[HttpPost]
[Route("/api/sysLogOp/export")]
public async Task<IActionResult> ExportLogOp(LogReq input)
{
return await _sysLogOpService.ExportLogOp(input);
}
[HttpGet]
[Route("/api/sysLogOp/clear")]
public async Task<bool> LogOpClear()
{
return await _sysLogOpService.Clear();
}
}
}