|
|
@@ -0,0 +1,97 @@
|
|
|
+package com.zsElectric.boot.charging.vo;
|
|
|
+
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
+@Schema(description = "充电状态查询响应VO")
|
|
|
+public class ChargingStatusQueryResponseVO {
|
|
|
+
|
|
|
+ @Schema(description = "订单状态(1-启动中,2-启动成功,3-启动失败,4-结束)",
|
|
|
+ example = "2",
|
|
|
+ allowableValues = {"1", "2", "3", "4"},
|
|
|
+ required = true)
|
|
|
+ private Integer StartChargeSeqStat;
|
|
|
+
|
|
|
+ @Schema(description = "充电订单号(格式:运营商ID+唯一编号)",
|
|
|
+ example = "123456789201805071630123456",
|
|
|
+ required = true)
|
|
|
+ private String StartChargeSeq;
|
|
|
+
|
|
|
+ @Schema(description = "充电设备接口编码",
|
|
|
+ example = "3702120244102_1",
|
|
|
+ required = true)
|
|
|
+ private String ConnectorID;
|
|
|
+
|
|
|
+ @Schema(description = "设备接口状态(0-离网,1-空闲,2-占用(未充电),3-占用(充电中),4-占用(预约锁定),255-故障)",
|
|
|
+ example = "3",
|
|
|
+ allowableValues = {"0", "1", "2", "3", "4", "255"},
|
|
|
+ required = true)
|
|
|
+ private Integer ConnectorStatus;
|
|
|
+
|
|
|
+ @Schema(description = "累计充电电量,单位:kWh",
|
|
|
+ example = "25.68",
|
|
|
+ required = true)
|
|
|
+ private BigDecimal TotalPower;
|
|
|
+
|
|
|
+ @Schema(description = "电费,单位:元",
|
|
|
+ example = "15.80",
|
|
|
+ required = true)
|
|
|
+ private BigDecimal ElecMoney;
|
|
|
+
|
|
|
+ @Schema(description = "服务费,单位:元",
|
|
|
+ example = "3.20",
|
|
|
+ required = true)
|
|
|
+ private BigDecimal SeviceMoney;
|
|
|
+
|
|
|
+ @Schema(description = "总金额,单位:元",
|
|
|
+ example = "19.00",
|
|
|
+ required = true)
|
|
|
+ private BigDecimal TotalMoney;
|
|
|
+
|
|
|
+ @Schema(description = "充电明细信息体列表",
|
|
|
+ required = true)
|
|
|
+ private List<ChargeDetail> ChargeDetails;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @Schema(description = "充电明细信息体")
|
|
|
+ public static class ChargeDetail {
|
|
|
+
|
|
|
+ @Schema(description = "开始时间,格式\"yyyy-MM-dd HH:mm:ss\"",
|
|
|
+ example = "2024-01-15 10:30:00",
|
|
|
+ required = true)
|
|
|
+ private String DetailStartTime;
|
|
|
+
|
|
|
+ @Schema(description = "结束时间,格式\"yyyy-MM-dd HH:mm:ss\"",
|
|
|
+ example = "2024-01-15 11:30:00",
|
|
|
+ required = true)
|
|
|
+ private String DetailEndTime;
|
|
|
+
|
|
|
+ @Schema(description = "时段电价,小数点后2位",
|
|
|
+ example = "0.65")
|
|
|
+ private BigDecimal ElecPrice;
|
|
|
+
|
|
|
+ @Schema(description = "时段服务费价格,小数点后2位",
|
|
|
+ example = "0.15")
|
|
|
+ private BigDecimal SevicePrice;
|
|
|
+
|
|
|
+ @Schema(description = "时段充电量,单位:度,小数点后2位",
|
|
|
+ example = "12.34",
|
|
|
+ required = true)
|
|
|
+ private BigDecimal DetailPower;
|
|
|
+
|
|
|
+ @Schema(description = "时段电费,小数点后2位",
|
|
|
+ example = "8.02")
|
|
|
+ private BigDecimal DetailElecMoney;
|
|
|
+
|
|
|
+ @Schema(description = "时段服务费,小数点后2位",
|
|
|
+ example = "1.85")
|
|
|
+ private BigDecimal DetailSeviceMoney;
|
|
|
+ }
|
|
|
+}
|