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
42 lines
1.1 KiB
|
|
using Entity.Base;
|
|
using Entity.DbModel.System;
|
|
using Entity.Dto.Req;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Service.System.SysLog;
|
|
|
|
namespace WebStarter.Controllers.System.SysLog
|
|
{
|
|
[Produces("application/json")]
|
|
[ApiController]
|
|
public class SysLogExController
|
|
{
|
|
private readonly SysLogExService _sysLogExService;
|
|
public SysLogExController(SysLogExService sysLogExService)
|
|
{
|
|
_sysLogExService = sysLogExService;
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("api/sysLogEx/page")]
|
|
public async Task<SqlSugarPagedList<SysLogEx>> LogExPage(PageLogReq input)
|
|
{
|
|
return await _sysLogExService.Page(input);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("/api/sysLogEx/export")]
|
|
public async Task<IActionResult> ExportLogEx(LogReq input)
|
|
{
|
|
return await _sysLogExService.ExportLogEx(input);
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("/api/sysLogEx/clear")]
|
|
public async Task<bool> LogExClear()
|
|
{
|
|
return await _sysLogExService.Clear();
|
|
}
|
|
}
|
|
}
|