feat 设备上传记录
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user