fix 就餐增加权限控制
This commit is contained in:
@@ -4,6 +4,7 @@ using Dlhis.Basic.Device.Services;
|
||||
using Kurisu.Core.DataAccess.Dto;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Org.BouncyCastle.Asn1.Ocsp;
|
||||
|
||||
namespace Dlhis.Basic.Device.Controllers;
|
||||
|
||||
@@ -51,4 +52,16 @@ public class DevicePermissionsController : ControllerBase
|
||||
{
|
||||
return await _devicePermissionService.GetAssigmentByCodeAsync(request);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 就餐设备唯一号权限
|
||||
/// </summary>
|
||||
/// <param name="userNo"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("canteen/uniqueNos")]
|
||||
public async Task<List<string>> GetCanteenDeviceUniqueNosByUserNoAsync(string userNo)
|
||||
{
|
||||
return await _devicePermissionService.GetCanteenDeviceUniqueNosByUserNoAsync(userNo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user