frontend
This commit is contained in:
@ -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 ?? [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user