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.4 KiB
50 lines
1.4 KiB
3 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using System;
|
||
|
using System.Threading.Tasks;
|
||
|
using Volo.Abp;
|
||
|
using Volo.Abp.Application.Dtos;
|
||
|
using Volo.Abp.AspNetCore.Mvc;
|
||
|
|
||
|
namespace Sanhe.Abp.Auditing.AuditLogs;
|
||
|
|
||
|
[RemoteService(Name = AuditingRemoteServiceConsts.RemoteServiceName)]
|
||
|
[Area("auditing")]
|
||
|
[ControllerName("entity-changes")]
|
||
|
[Route("api/auditing/entity-changes")]
|
||
|
public class EntityChangesController : AbpControllerBase, IEntityChangesAppService
|
||
|
{
|
||
|
protected IEntityChangesAppService EntityChangeAppService { get; }
|
||
|
|
||
|
public EntityChangesController(IEntityChangesAppService entityChangeAppService)
|
||
|
{
|
||
|
EntityChangeAppService = entityChangeAppService;
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
[Route("{id}")]
|
||
|
public Task<EntityChangeDto> GetAsync(Guid id)
|
||
|
{
|
||
|
return EntityChangeAppService.GetAsync(id);
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
public Task<PagedResultDto<EntityChangeDto>> GetListAsync(EntityChangeGetByPagedDto input)
|
||
|
{
|
||
|
return EntityChangeAppService.GetListAsync(input);
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
[Route("with-username/{id}")]
|
||
|
public Task<EntityChangeWithUsernameDto> GetWithUsernameAsync(Guid id)
|
||
|
{
|
||
|
return EntityChangeAppService.GetWithUsernameAsync(id);
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
[Route("with-username")]
|
||
|
public Task<ListResultDto<EntityChangeWithUsernameDto>> GetWithUsernameAsync(EntityChangeGetWithUsernameDto input)
|
||
|
{
|
||
|
return EntityChangeAppService.GetWithUsernameAsync(input);
|
||
|
}
|
||
|
}
|