feat 设备上传记录

This commit is contained in:
2024-01-11 10:28:11 +08:00
parent 026fd7b18a
commit 34073e0db0
5 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using Dlhis.ScheduledTask.DeviceUploadLog.Request;
using Dlhis.ScheduledTask.DeviceUploadLog.Response;
using Dlhis.ScheduledTask.DeviceUploadLog.Services;
using Kurisu.Core.DataAccess.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.ScheduledTask.DeviceUploadLog.Controllers;
/// <summary>
/// 设备上传记录
/// </summary>
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class DeviceUploadLogsController : ControllerBase
{
private readonly IDeviceUploadLogService _deviceUploadLogService;
public DeviceUploadLogsController(IDeviceUploadLogService deviceUploadLogService)
{
_deviceUploadLogService = deviceUploadLogService;
}
/// <summary>
/// 获取上传记录分页
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpGet("page")]
public async Task<Pagination<DeviceUploadLogResponse>> GetPageAsync([FromQuery] DeviceUploadLogPageRequest request)
{
return await _deviceUploadLogService.GetPageAsync(request);
}
}