|
|
|
@ -1,5 +1,8 @@ |
|
|
|
package com.thing.carbontrack.report.dto; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import com.thing.common.core.utils.DateTimeUtils; |
|
|
|
import io.swagger.v3.oas.annotations.media.Schema; |
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
@ -36,8 +39,12 @@ public class IotCarbonProductionReportDTO implements Serializable { |
|
|
|
@Schema(description = "数据边界类型:1-自然月;2-自然年;3-自定义") |
|
|
|
private Integer boundaryType; |
|
|
|
@Schema(description = "数据边界开始时间") |
|
|
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY) |
|
|
|
@JsonFormat(pattern = DateTimeUtils.DATE_TIME_PATTERN_STR) |
|
|
|
private Date boundaryStart; |
|
|
|
@Schema(description = "数据边界结束时间") |
|
|
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY) |
|
|
|
@JsonFormat(pattern = DateTimeUtils.DATE_TIME_PATTERN_STR) |
|
|
|
private Date boundaryEnd; |
|
|
|
@Schema(description = "报告有效期") |
|
|
|
private Long validEndTime; |
|
|
|
|