能耗实体类
parent
8546d1e67e
commit
ab4d198ee2
@ -0,0 +1,27 @@
|
|||||||
|
package cn.iocoder.yudao.module.mes.controller.admin.energydevice.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 能源总览 Request VO")
|
||||||
|
@Data
|
||||||
|
public class EnergyOverviewReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "所属区域")
|
||||||
|
private Long orgId;
|
||||||
|
|
||||||
|
@Schema(description = "能源类型 ID")
|
||||||
|
private Long energyTypeId;
|
||||||
|
|
||||||
|
@Schema(description = "开始时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@Schema(description = "结束时间")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
@Schema(description = "页码", example = "1")
|
||||||
|
private Integer pageNo = 1;
|
||||||
|
|
||||||
|
@Schema(description = "每页数量", example = "10")
|
||||||
|
private Integer pageSize = 10;
|
||||||
|
}
|
||||||
@ -0,0 +1,81 @@
|
|||||||
|
package cn.iocoder.yudao.module.mes.controller.admin.energydevice.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 能源总览 Response VO")
|
||||||
|
@Data
|
||||||
|
public class EnergyOverviewRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "指标卡片")
|
||||||
|
private List<MetricItem> metrics;
|
||||||
|
|
||||||
|
@Schema(description = "趋势图")
|
||||||
|
private TrendChart trendChart;
|
||||||
|
|
||||||
|
@Schema(description = "区域占比")
|
||||||
|
private RegionChart regionChart;
|
||||||
|
|
||||||
|
@Schema(description = "TOP5 排行")
|
||||||
|
private List<RankItem> rankList;
|
||||||
|
|
||||||
|
@Schema(description = "明细列表总数")
|
||||||
|
private Long total;
|
||||||
|
|
||||||
|
@Schema(description = "明细列表")
|
||||||
|
private List<DetailItem> detailList;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class MetricItem {
|
||||||
|
private String key;
|
||||||
|
private String label;
|
||||||
|
private String value;
|
||||||
|
private String unit;
|
||||||
|
private String subLabel;
|
||||||
|
private String subValue;
|
||||||
|
private String change;
|
||||||
|
private Boolean down;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class TrendChart {
|
||||||
|
private String unit;
|
||||||
|
private List<String> xAxis;
|
||||||
|
private List<String> data;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class RegionChart {
|
||||||
|
private String unit;
|
||||||
|
private String totalValue;
|
||||||
|
private List<RegionItem> items;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class RegionItem {
|
||||||
|
private String name;
|
||||||
|
private String value;
|
||||||
|
private String percent;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class RankItem {
|
||||||
|
private Long id;
|
||||||
|
private String name;
|
||||||
|
private String region;
|
||||||
|
private String value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class DetailItem {
|
||||||
|
private Long id;
|
||||||
|
private String name;
|
||||||
|
private String energyType;
|
||||||
|
private String region;
|
||||||
|
private String value;
|
||||||
|
private String startTime;
|
||||||
|
private String endTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue