OprationLogController.cs 934 B

123456789101112131415161718192021222324252627282930313233
  1. using Admin.Core.Common.Input;
  2. using Admin.Core.Common.Output;
  3. using Admin.Core.Model.Admin;
  4. using Admin.Core.Service.Admin.OprationLog;
  5. using Microsoft.AspNetCore.Mvc;
  6. using System.Threading.Tasks;
  7. namespace Admin.Core.Controllers.Admin
  8. {
  9. /// <summary>
  10. /// 操作日志管理
  11. /// </summary>
  12. public class OprationLogController : AreaController
  13. {
  14. private readonly IOprationLogService _oprationLogService;
  15. public OprationLogController(IOprationLogService loginLogService)
  16. {
  17. _oprationLogService = loginLogService;
  18. }
  19. /// <summary>
  20. /// 查询分页操作日志
  21. /// </summary>
  22. /// <param name="model"></param>
  23. /// <returns></returns>
  24. [HttpPost]
  25. public async Task<IResponseOutput> GetPage(PageInput<OprationLogEntity> model)
  26. {
  27. return await _oprationLogService.PageAsync(model);
  28. }
  29. }
  30. }