AdminTrackLogController.cs 987 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Threading.Tasks;
  2. using GxPress.Common.Page;
  3. using GxPress.Repository.Interface.TrackLog;
  4. using GxPress.Request.TrackLog;
  5. using Microsoft.AspNetCore.Authorization;
  6. using Microsoft.AspNetCore.Mvc;
  7. namespace GxPress.Api.AdminControllers
  8. {
  9. /// <summary>
  10. /// 系统日志
  11. /// </summary>
  12. [Route("api/admin/log")]
  13. [ApiController]
  14. [Authorize]
  15. public class AdminTrackLogController : Controller
  16. {
  17. private readonly ITrackLogRepository repository;
  18. public AdminTrackLogController(ITrackLogRepository repository)
  19. {
  20. this.repository = repository;
  21. }
  22. /// <summary>
  23. /// 列表
  24. /// </summary>
  25. /// <param name="request"></param>
  26. /// <returns></returns>
  27. [HttpPost("list")]
  28. public async Task<PagedList<Entity.tede2.TrackLog.TrackLog>> GetAllAsync(TrackLogSearchRequest request)
  29. {
  30. return await repository.GetAllAsync(request);
  31. }
  32. }
  33. }