|
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import lombok.experimental.Accessors;
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
@@ -58,6 +59,23 @@ public class DeviceEventMsgDto {
|
|
|
private List<Long> deviceIds;
|
|
|
}
|
|
|
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class Count {
|
|
|
+
|
|
|
+ @NotEmpty(message = "codes不能为空")
|
|
|
+ @ApiModelProperty(value = "编码")
|
|
|
+ private List<String> codes;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "创建时间-起")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private LocalDateTime createTimeBegin;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "创建时间-始")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private LocalDateTime createTimeEnd;
|
|
|
+ }
|
|
|
+
|
|
|
@Data
|
|
|
@Accessors(chain = true)
|
|
|
public static class Vo {
|
|
@@ -89,4 +107,15 @@ public class DeviceEventMsgDto {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class CountVo {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息编码")
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "条数")
|
|
|
+ private Long count;
|
|
|
+ }
|
|
|
+
|
|
|
}
|