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.
50 lines
1.3 KiB
50 lines
1.3 KiB
3 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Sanhe.Abp.Auditing.Logging.Dto;
|
||
|
using System.Threading.Tasks;
|
||
|
using Volo.Abp;
|
||
|
using Volo.Abp.Application.Dtos;
|
||
|
using Volo.Abp.AspNetCore.Mvc;
|
||
|
|
||
|
namespace Sanhe.Abp.Auditing.Logging
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 日志
|
||
|
/// </summary>
|
||
|
[RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)]
|
||
|
[Area("auditing")]
|
||
|
[ControllerName("logging")]
|
||
|
[Route("api/auditing/logging")]
|
||
|
public class LogController : AbpController, ILogAppService
|
||
|
{
|
||
|
private readonly ILogAppService _service;
|
||
|
|
||
|
public LogController(ILogAppService service)
|
||
|
{
|
||
|
_service = service;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 根据Id获取
|
||
|
/// </summary>
|
||
|
/// <param name="id"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("{id}")]
|
||
|
public virtual Task<LogDto> GetAsync(string id)
|
||
|
{
|
||
|
return _service.GetAsync(id);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页获取
|
||
|
/// </summary>
|
||
|
/// <param name="input"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
public virtual Task<PagedResultDto<LogDto>> GetListAsync(LogGetByPagedDto input)
|
||
|
{
|
||
|
return _service.GetListAsync(input);
|
||
|
}
|
||
|
}
|
||
|
}
|