feat 梯控相关
This commit is contained in:
@@ -130,7 +130,7 @@ public class DevicePermissionsController : ControllerBase
|
||||
[IgnoreTenant]
|
||||
public async Task<List<Guid>> GetAssignDeviceCodesAsync(string userCode)
|
||||
{
|
||||
return await _devicePermissionService.GetUserDeviceCodesByNoAsync(userCode);
|
||||
return await _devicePermissionService.GetUserDeviceCodesByNoOrCodeAsync(userCode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public class DevicesConnectController : ControllerBase
|
||||
/// <param name="brand"></param>
|
||||
/// <param name="factory"></param>
|
||||
/// <returns></returns>
|
||||
[DisableApiLog]
|
||||
[DisableApiLog]
|
||||
[HttpGet("brand-devices")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<DeviceUniqueWithConnectionInfoDto>> GetDeviceUniqueInfoByBrandAsync(
|
||||
|
||||
48
Src/Dlhis.Basic/Device/Controllers/ElevatorAcsController.cs
Normal file
48
Src/Dlhis.Basic/Device/Controllers/ElevatorAcsController.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Dlhis.Basic.Device.Request;
|
||||
using Dlhis.Basic.Device.Response;
|
||||
using Dlhis.Basic.Device.Services;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Dlhis.Basic.Device.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 梯控设备
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class ElevatorAcsController : ControllerBase
|
||||
{
|
||||
private readonly IElevatorAcsService _elevatorAcsService;
|
||||
|
||||
public ElevatorAcsController(IElevatorAcsService elevatorAcsService)
|
||||
{
|
||||
_elevatorAcsService = elevatorAcsService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备保存
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("save")]
|
||||
[Transactional]
|
||||
public async Task SaveAsync(ElevatorAcsSaveRequest request)
|
||||
{
|
||||
await _elevatorAcsService.SaveAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取设备详情
|
||||
/// </summary>
|
||||
/// <param name="deviceUniqueNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("detail")]
|
||||
public async Task<ElevatorAcsDetailResponse> GetDetailsAsync(string deviceUniqueNo)
|
||||
{
|
||||
return await _elevatorAcsService.GetDetailsAsync(deviceUniqueNo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user