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.

43 lines
1.1 KiB

7 months ago

using Entity.Base;
using Entity.DbModel.System;
7 months ago
using Entity.Dto.Req;
using HybirdFrameworkCore.Entity;
7 months ago
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")]
6 months ago
public async Task<Result<PageResult<SysLogEx>>> LogExPage(PageLogReq input)
7 months ago
{
6 months ago
return Result<PageResult<SysLogEx>>.Success(await _sysLogExService.Page(input));
7 months ago
}
[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();
}
}
}