using System.Threading.Tasks; using GxPress.Common.Page; using GxPress.Repository.Interface.TrackLog; using GxPress.Request.TrackLog; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GxPress.Api.AdminControllers { /// /// 系统日志 /// [Route("api/admin/log")] [ApiController] [Authorize] public class AdminTrackLogController : Controller { private readonly ITrackLogRepository repository; public AdminTrackLogController(ITrackLogRepository repository) { this.repository = repository; } /// /// 列表 /// /// /// [HttpPost("list")] public async Task> GetAllAsync(TrackLogSearchRequest request) { return await repository.GetAllAsync(request); } } }