fix 注释,下发任务状态分页

This commit is contained in:
2024-01-10 16:13:24 +08:00
parent 8dba9e9a3a
commit 7c242370fc
16 changed files with 333 additions and 985 deletions

View File

@@ -0,0 +1,35 @@
using Dlhis.ScheduledTask.TaskAssignment.Request;
using Dlhis.ScheduledTask.TaskAssignment.Response;
using Dlhis.ScheduledTask.TaskAssignment.Services;
using Kurisu.Core.DataAccess.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.ScheduledTask.TaskAssignment.Controllers;
/// <summary>
/// 设备任务下发
/// </summary>
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class DeviceTaskAssignmentsController : ControllerBase
{
private readonly IDeviceTaskAssignmentService _deviceTaskAssignmentService;
public DeviceTaskAssignmentsController(IDeviceTaskAssignmentService deviceTaskAssignmentService)
{
_deviceTaskAssignmentService = deviceTaskAssignmentService;
}
/// <summary>
/// 设备任务下发分页
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpGet("page")]
public async Task<Pagination<DeviceTaskAssignmentResponse>> GetPageAsync([FromQuery] DeviceTaskAssignmentRequest request)
{
return await _deviceTaskAssignmentService.GetPageAsync(request);
}
}