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

using Entity.Base;
using Entity.DbModel.System;
using Entity.Dto.Req;
using HybirdFrameworkCore.Entity;
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<Result<PageResult<SysLogOp>>> LogOpPage(PageLogReq input)
{
return Result<PageResult<SysLogOp>>.Success(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();
}
}
}