This commit is contained in:
2024-07-18 03:13:32 +07:00
parent d2eee41ed6
commit d9c3bfa35e
49 changed files with 3037 additions and 232 deletions

View File

@ -86,6 +86,7 @@ namespace Yuna.Website.Server.Services.DeviceService
if(propValue.TryGetDouble(out var value))
{
value = Math.Round(value, 2);
result.Add(prop.Id, value.ToString());
continue;
}
@ -123,5 +124,11 @@ namespace Yuna.Website.Server.Services.DeviceService
var result = await _deviceRepository.GetList();
return result ?? [];
}
public async Task<IReadOnlyList<Device>> GetList(long userId)
{
var result = await _deviceRepository.GetList(userId);
return result ?? [];
}
}
}