36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|