所有一级页面和不分二级页面
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/// 设备实体类
|
||||
class DeviceEntity {
|
||||
final String deviceId;
|
||||
final String name;
|
||||
final String type;
|
||||
final String status;
|
||||
final double power;
|
||||
final double todayEnergy;
|
||||
final double? temperature;
|
||||
final double? current;
|
||||
final double? voltage;
|
||||
final double? radiation;
|
||||
|
||||
const DeviceEntity({
|
||||
required this.deviceId,
|
||||
required this.name,
|
||||
required this.type,
|
||||
required this.status,
|
||||
required this.power,
|
||||
required this.todayEnergy,
|
||||
this.temperature,
|
||||
this.current,
|
||||
this.voltage,
|
||||
this.radiation,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/// 设备状态统计实体类
|
||||
class DeviceStatusEntity {
|
||||
final int total;
|
||||
final int online;
|
||||
final int offline;
|
||||
final int exception;
|
||||
|
||||
const DeviceStatusEntity({
|
||||
required this.total,
|
||||
required this.online,
|
||||
required this.offline,
|
||||
required this.exception,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// 实体层
|
||||
export 'device_entity.dart';
|
||||
export 'device_status_entity.dart';
|
||||
Reference in New Issue
Block a user