fix 根据档案号,设备组查询设备
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Dlhis.Basic.Organization.Response;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Dlhis.Basic.Organization.Response;
|
||||
using Dlhis.Basic.Organization.Services;
|
||||
using Dlhis.Basic.Organization.Services.Implements;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
@@ -24,7 +26,7 @@ public class GainfoPermissionsController : ControllerBase
|
||||
/// <param name="userNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("placesByGainfo")]
|
||||
public async Task<List<GetPlaceByGainfoResponse>> GetPlaceByGainfoAsync(string userNo)
|
||||
public async Task<List<GetPlaceByGainfoResponse>> GetPlaceByGainfoAsync([Required] string userNo)
|
||||
{
|
||||
return await _gainfoPermissions.GetPlaceByGainfoAsync(userNo);
|
||||
}
|
||||
@@ -35,8 +37,9 @@ public class GainfoPermissionsController : ControllerBase
|
||||
/// <param name="userNo"></param>
|
||||
/// <param name="deviceGroupCode"></param>
|
||||
/// <returns></returns>
|
||||
public async Task GetDevicesUnderGroupByUserNoAsync(string userNo, string deviceGroupCode)
|
||||
[HttpGet("devicesUnderGroupByUserNo")]
|
||||
public async Task<List<KeyValue<string>>> GetDevicesUnderGroupByUserNoAsync([Required] string userNo, [Required] string deviceGroupCode)
|
||||
{
|
||||
return await _gainfoPermissions.GetDevicesUnderGroupByUserNoAsync(userNo,deviceGroupCode);
|
||||
return await _gainfoPermissions.GetDevicesUnderGroupByUserNoAsync(userNo, deviceGroupCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user