|
@@ -2,6 +2,7 @@ package com.pig4cloud.pig.statistics.api.dto.user;
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.io.Serial;
|
|
@@ -20,21 +21,23 @@ public class PageVersionDistributionDetailDTO implements Serializable {
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
/**
|
|
|
- * 查询条件名称
|
|
|
+ * 应用ID
|
|
|
*/
|
|
|
- @Schema(description = "查询条件名称")
|
|
|
- private String conditionName;
|
|
|
+ @NotBlank(message = "应用ID不能为空")
|
|
|
+ @Schema(description = "应用ID", example = "Fqs2CL9CUn7U1AqilSFXgb")
|
|
|
+ private String appId;
|
|
|
|
|
|
/**
|
|
|
- * 查询条件值
|
|
|
+ * 版本
|
|
|
*/
|
|
|
- @Schema(description = "查询条件值")
|
|
|
- private String conditionValue;
|
|
|
+ @NotBlank(message = "版本不能为空")
|
|
|
+ @Schema(description = "版本", example = "1.0.0")
|
|
|
+ private String version;
|
|
|
|
|
|
/**
|
|
|
* 时间单位
|
|
|
*/
|
|
|
- @Schema(description = "时间单位")
|
|
|
+ @Schema(description = "时间单位,昨天-day,过去7天-week,过去30天-month", example = "day")
|
|
|
private String timeUnit;
|
|
|
|
|
|
/**
|
|
@@ -46,12 +49,12 @@ public class PageVersionDistributionDetailDTO implements Serializable {
|
|
|
/**
|
|
|
* 每页显示条数,默认 10
|
|
|
*/
|
|
|
- @Schema(description = "每页显示条数")
|
|
|
+ @Schema(description = "每页显示条数", example = "10")
|
|
|
private long size = 10;
|
|
|
|
|
|
/**
|
|
|
* 当前页
|
|
|
*/
|
|
|
- @Schema(description = "当前页")
|
|
|
+ @Schema(description = "当前页", example = "1")
|
|
|
private long current = 1;
|
|
|
}
|