using YBEE.EQM.Core;
namespace YBEE.EQM.Application
{
///
/// 日志
///
[ApiDescriptionSettings(Name = "sys-log")]
[Route("sys/log")]
public class SysLogAppService : IDynamicApiController
{
private readonly ISysLogService _logService;
public SysLogAppService(ISysLogService logService)
{
_logService = logService;
}
///
/// 清除访问日志
///
///
public async Task ClearLogVis()
{
await _logService.ClearLogVis();
}
///
/// 分页查询访问日志
///
///
///
[DisableOpLog]
public async Task> QueryLogVisPageList(SysLogVisPageInput input)
{
return await _logService.QueryLogVisPageList(input);
}
///
/// 清除异常日志
///
///
public async Task ClearLogEx()
{
await _logService.ClearLogEx();
}
///
/// 分页查询异常日志
///
///
///
[DisableOpLog]
public async Task> QueryLogExPageList(SysLogExPageInput input)
{
return await _logService.QueryLogExPageList(input);
}
///
/// 清除操作日志
///
///
public async Task ClearLogOp()
{
await _logService.ClearLogOp();
}
///
/// 分页查询操作日志
///
///
///
[DisableOpLog]
public async Task> QueryLogOpPageList(SysLogOpPageInput input)
{
return await _logService.QueryLogOpPageList(input);
}
}
}