feat 设备人员上传
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using Dlhis.ScheduledTask.DeviceUploadLog.Request;
|
||||
using Dlhis.ScheduledTask.DeviceUploadLog.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Dlhis.ScheduledTask.DeviceUploadLog.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 设备人员
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class DeviceUserController
|
||||
{
|
||||
private readonly IDeviceUserService _deviceUserService;
|
||||
|
||||
public DeviceUserController(IDeviceUserService deviceUserService)
|
||||
{
|
||||
_deviceUserService = deviceUserService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传人员信息
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
[HttpPost("upload")]
|
||||
public async Task UploadAsync([FromBody] DeviceUploadUserCodeRequest request)
|
||||
{
|
||||
await _deviceUserService.UploadAsync(request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user