fix 根据品牌获取设备
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Basic.Device.Dtos;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Dlhis.Basic.Device.Dtos;
|
||||
using Dlhis.Basic.Device.Request;
|
||||
using Dlhis.Basic.Device.Services;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
@@ -66,4 +67,15 @@ public class DevicesConnectController : ControllerBase
|
||||
{
|
||||
return await _deviceConnectService.GetOnlineDeviceUniqueInfoAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取品牌设备
|
||||
/// </summary>
|
||||
/// <param name="brand"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("brand-devices")]
|
||||
public async Task<List<DeviceUniqueWithConnectionInfoDto>> GetDeviceUniqueInfoByBrandAsync([Required(ErrorMessage = "请明确设备品牌")] string brand)
|
||||
{
|
||||
return await _deviceConnectService.GetDeviceUniqueInfoByBrandAsync(brand);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user