feat 门禁首页数据

This commit is contained in:
cheche
2024-03-08 19:03:57 +08:00
parent 6ebaf58bdc
commit 07d77f1070
4 changed files with 94 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ public class SummariesController : ControllerBase
}
/// <summary>
/// 门禁首页数据
/// 门禁首页设备数据
/// </summary>
/// <returns></returns>
[HttpGet("door-summary")]
@@ -37,4 +37,14 @@ public class SummariesController : ControllerBase
{
return await _summaryService.GetDoorHomeDataAsync();
}
/// <summary>
/// 门禁首页数据
/// </summary>
/// <returns></returns>
[HttpGet("door-data")]
public async Task<DoorDataResponse> GetDoorDataAsync()
{
return await _summaryService.GetDoorDataAsync();
}
}