add 获取访客门禁设备权限

This commit is contained in:
2025-05-26 14:08:52 +08:00
parent ac88ae7a3b
commit 6528d29404
3 changed files with 35 additions and 2 deletions

View File

@@ -140,8 +140,8 @@ public class AppointmentsController : ControllerBase
end = start.Date.AddDays(1).AddMilliseconds(-1);
return await _appointmentService.GetSummaryAsync(factory, start, end);
}
/// <summary>
/// 自动离职处理
/// </summary>
@@ -152,4 +152,13 @@ public class AppointmentsController : ControllerBase
{
await _appointmentService.AutoResignAsync();
}
[AllowAnonymous]
[IgnoreTenant]
[HttpGet("visitor-devices")]
public async Task<List<string>> GetVisitorDevicesAsync(long detailId)
{
return await _appointmentService.GetVisitorDevicesAsync(detailId);
;
}
}