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")] [Route("api/auditing/entity-changes")] public class EntityChangesController : AbpControllerBase, IEntityChangesAppService { protected IEntityChangesAppService EntityChangeAppService { get; } public EntityChangesController(IEntityChangesAppService entityChangeAppService) { EntityChangeAppService = entityChangeAppService; } /// /// 根据Id获取 /// /// /// [HttpGet] [Route("{id}")] public Task GetAsync(Guid id) { return EntityChangeAppService.GetAsync(id); } /// /// 分页获取 /// /// /// [HttpGet] public Task> GetListAsync(EntityChangeGetByPagedDto input) { return EntityChangeAppService.GetListAsync(input); } /// /// 根据Id获取并带用户名 /// /// /// [HttpGet] [Route("with-username/{id}")] public Task GetWithUsernameAsync(Guid id) { return EntityChangeAppService.GetWithUsernameAsync(id); } /// /// 根据实体Id与完全类名称获取并带用户名 /// /// /// [HttpGet] [Route("with-username")] public Task> GetWithUsernameAsync(EntityChangeGetWithUsernameDto input) { return EntityChangeAppService.GetWithUsernameAsync(input); } }