diff --git a/backend/framework/domain/pom.xml b/backend/framework/domain/pom.xml
index ecd49fa1dc..6bbd725a79 100644
--- a/backend/framework/domain/pom.xml
+++ b/backend/framework/domain/pom.xml
@@ -24,22 +24,48 @@
provided
- io.swagger.parser.v3
- swagger-parser
- ${swagger-parser.version}
-
-
- swagger-core
- io.swagger.core.v3
-
-
- swagger-models
- io.swagger.core.v3
-
-
+ io.swagger.core.v3
+ swagger-annotations-jakarta
+ ${swagger.version}
+ provided
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${mybatis-starter.version}
provided
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.7
+
+ true
+ true
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+
+
+ com.itfsw
+ mybatis-generator-plugin
+ 1.3.10
+
+
+ com.fit2cloud
+ mybatis-tools
+ 3.0.0
+
+
+
+
+
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java
index 4e00955890..b578e42ea4 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java
@@ -1,18 +1,17 @@
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口定义")
+@Schema(title = "接口定义")
@Table("api_definition")
@Data
public class ApiDefinition implements Serializable {
@@ -20,117 +19,117 @@ public class ApiDefinition implements Serializable {
@Id
@NotBlank(message = "{api_definition.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String deleteUser;
- @ApiModelProperty(name = "删除时间", required = false, dataType = "Long")
+ @Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long deleteTime;
@Size(min = 1, max = 1, message = "{api_definition.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "删除状态", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 255, message = "{api_definition.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口名称", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String name;
@Size(min = 1, max = 50, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.method.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口类型", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String method;
@Size(min = 1, max = 20, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口协议", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String protocol;
- @ApiModelProperty(name = "接口路径-只有HTTP协议有值", required = false, allowableValues = "range[1, 255]")
+ @Schema(title = "接口路径-只有HTTP协议有值", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 255]")
private String path;
- @ApiModelProperty(name = "模块全路径-用于导入处理", required = false, allowableValues = "range[1, 1000]")
+ @Schema(title = "模块全路径-用于导入处理", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
private String modulePath;
@Size(min = 1, max = 50, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口状态/进行中/已完成", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String status;
- @ApiModelProperty(name = "模块fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String moduleId;
- @ApiModelProperty(name = "自定义id", required = false, dataType = "Integer")
+ @Schema(title = "自定义id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Integer num;
- @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String tags;
- @ApiModelProperty(name = "自定义排序", required = true, dataType = "Long")
+ @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
@Size(min = 1, max = 1, message = "{api_definition.sync_enable.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.sync_enable.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否启用同步", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否启用同步", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean syncEnable;
- @ApiModelProperty(name = "同步开始时间", required = false, dataType = "Long")
+ @Schema(title = "同步开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long syncTime;
@Size(min = 1, max = 50, message = "{api_definition.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "环境fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentId;
@Size(min = 1, max = 1, message = "{api_definition.latest.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition.latest.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否为最新版本 0:否,1:是", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean latest;
- @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
- @ApiModelProperty(name = "版本引用fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本引用fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String refId;
- @ApiModelProperty(name = "描述", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String description;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java
index 3880c76a39..4056244c81 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java
@@ -1,38 +1,36 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口定义详情内容")
+@Schema(title = "接口定义详情内容")
@Table("api_definition_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
+@EqualsAndHashCode(callSuper = false)
public class ApiDefinitionBlob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{api_definition_blob.api_definition_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口fk/ 一对一关系", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]")
+ @Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] request;
- @ApiModelProperty(name = "响应内容", required = false, dataType = "byte[]")
+ @Schema(title = "响应内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] response;
- @ApiModelProperty(name = "备注", required = false, dataType = "byte[]")
+ @Schema(title = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] remark;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollow.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollow.java
index 9c266f8b97..f488d07b1a 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollow.java
@@ -1,10 +1,8 @@
-
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,7 +10,7 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口定义关注人")
+@Schema(title = "接口定义关注人")
@Table("api_definition_follow")
@Data
public class ApiDefinitionFollow implements Serializable {
@@ -20,12 +18,12 @@ public class ApiDefinitionFollow implements Serializable {
@Size(min = 1, max = 50, message = "{api_definition_follow.api_definition_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_follow.api_definition_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiDefinitionId;
@Size(min = 1, max = 50, message = "{api_definition_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_follow.follow_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "关注人/用户fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String followId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java
index 53fbf14e72..c5798507ae 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "mock 配置")
+@Schema(title = "mock 配置")
@Table("api_definition_mock")
@Data
public class ApiDefinitionMock implements Serializable {
@@ -21,50 +19,50 @@ public class ApiDefinitionMock implements Serializable {
@Id
@NotBlank(message = "{api_definition_mock.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "mock pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "接口路径", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "接口路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String apiPath;
- @ApiModelProperty(name = "接口类型", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "接口类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String apiMethod;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 200, message = "{api_definition_mock.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_mock.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "mock 名称", required = true, allowableValues = "range[1, 200]")
+ @Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
private String name;
- @ApiModelProperty(name = "自定义标签", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "自定义标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String tags;
- @ApiModelProperty(name = "启用/禁用", required = false, dataType = "boolean")
- private boolean enable;
+ @Schema(title = "启用/禁用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ private Boolean enable;
@Size(min = 1, max = 50, message = "{api_definition_mock.expect_num.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "mock编号", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String expectNum;
@Size(min = 1, max = 50, message = "{api_definition_mock.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_mock.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{api_definition_mock.api_definition_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiDefinitionId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java
index 375427bc10..f25381af8c 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java
@@ -1,18 +1,16 @@
-
package io.metersphere.api.domain;
+import io.metersphere.validation.groups.Updated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotBlank;
+import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
-import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import jakarta.validation.constraints.NotBlank;
-import lombok.Data;
import java.io.Serializable;
-@ApiModel(value = "mock期望值配置")
+@Schema(title = "mock期望值配置")
@Table("api_definition_mock_config")
@Data
@EqualsAndHashCode(callSuper = false)
@@ -21,13 +19,13 @@ public class ApiDefinitionMockConfig implements Serializable {
@Id
@NotBlank(message = "{api_definition_mock_config.api_definition_mock_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口mock pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "请求内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private byte[] request;
- @ApiModelProperty(name = "响应内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "响应内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private byte[] response;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java
index ea2bca6341..6a224ee29d 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口模块")
+@Schema(title = "接口模块")
@Table("api_definition_module")
@Data
public class ApiDefinitionModule implements Serializable {
@@ -21,49 +19,49 @@ public class ApiDefinitionModule implements Serializable {
@Id
@NotBlank(message = "{api_definition_module.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口模块pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_definition_module.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
@Size(min = 1, max = 50, message = "{api_definition_module.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 64, message = "{api_definition_module.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "模块名称", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String name;
@Size(min = 1, max = 64, message = "{api_definition_module.protocol.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.protocol.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "协议", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "协议", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String protocol;
@Size(min = 1, max = 50, message = "{api_definition_module.parent_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.parent_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "父级fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String parentId;
@Size(min = 1, max = 50, message = "{api_definition_module.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_module.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "树节点级别", required = true, dataType = "Integer")
+ @Schema(title = "树节点级别", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer level;
- @ApiModelProperty(name = "排序", required = true, dataType = "Integer")
+ @Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer pos;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java
index 9679d2841f..10998782f0 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "定时同步配置")
+@Schema(title = "定时同步配置")
@Table("api_definition_swagger")
@Data
public class ApiDefinitionSwagger implements Serializable {
@@ -21,30 +19,30 @@ public class ApiDefinitionSwagger implements Serializable {
@Id
@NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "主键", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 500, message = "{api_definition_swagger.swagger_url.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_swagger.swagger_url.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "url地址", required = true, allowableValues = "range[1, 500]")
+ @Schema(title = "url地址", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 500]")
private String swaggerUrl;
- @ApiModelProperty(name = "模块fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String moduleId;
- @ApiModelProperty(name = "模块路径", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "模块路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String modulePath;
- @ApiModelProperty(name = "鉴权配置信息", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "鉴权配置信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private byte[] config;
- @ApiModelProperty(name = "导入模式/覆盖/不覆盖", required = false, allowableValues = "range[1, 1]")
+ @Schema(title = "导入模式/覆盖/不覆盖", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
private Boolean mode;
- @ApiModelProperty(name = "项目fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "导入版本", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "导入版本", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java
index a1cfa459be..75611ccf37 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口定义公共部分环境")
+@Schema(title = "接口定义公共部分环境")
@Table("api_environment_config")
@Data
public class ApiEnvironmentConfig implements Serializable {
@@ -21,23 +19,23 @@ public class ApiEnvironmentConfig implements Serializable {
@Id
@NotBlank(message = "{api_definition_env.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_definition_env.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_env.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "用户fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 50, message = "{api_definition_env.environment_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_definition_env.environment_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "环境fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String environmentId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiFakeErrorConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiFakeErrorConfig.java
index 77d20bdc88..f149809fa8 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiFakeErrorConfig.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiFakeErrorConfig.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "误报库")
+@Schema(title = "误报库")
@Table("api_fake_error_config")
@Data
public class ApiFakeErrorConfig implements Serializable {
@@ -21,47 +19,47 @@ public class ApiFakeErrorConfig implements Serializable {
@Id
@NotBlank(message = "{api_fake_error_config.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "误报pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "误报pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_fake_error_config.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_fake_error_config.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 50, message = "{api_fake_error_config.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_fake_error_config.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
@Size(min = 1, max = 255, message = "{api_fake_error_config.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_fake_error_config.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "误报名称", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "误报名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String name;
@Size(min = 1, max = 255, message = "{api_fake_error_config.match_type.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_fake_error_config.match_type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "匹配类型", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "匹配类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String matchType;
- @ApiModelProperty(name = "状态", required = false, allowableValues = "range[1, 1]")
+ @Schema(title = "状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
private Boolean status;
@Size(min = 1, max = 50, message = "{api_fake_error_config.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_fake_error_config.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "描述信息", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String description;
- @ApiModelProperty(name = "误报内容", required = false, dataType = "byte[]")
+ @Schema(title = "误报内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] content;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java
index 8443acbbab..6273714a1c 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "API/CASE执行结果")
+@Schema(title = "API/CASE执行结果")
@Table("api_report")
@Data
public class ApiReport implements Serializable {
@@ -21,85 +19,85 @@ public class ApiReport implements Serializable {
@Id
@NotBlank(message = "{api_report.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口结果报告pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 200, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口报告名称", required = true, allowableValues = "range[1, 200]")
+ @Schema(title = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
private String name;
@Size(min = 1, max = 50, message = "{api_report.resource_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源fk/api_definition_id/api_test_case_id", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String resourceId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改时间", required = true, dataType = "Long")
+ @Schema(title = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_report.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 50, message = "{api_report.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
@Size(min = 1, max = 1, message = "{api_report.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "删除状态", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 50, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "结果状态", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String status;
- @ApiModelProperty(name = "接口开始执行时间", required = false, dataType = "Long")
+ @Schema(title = "接口开始执行时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long startTime;
- @ApiModelProperty(name = "接口执行结束时间", required = false, dataType = "Long")
+ @Schema(title = "接口执行结束时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long endTime;
@Size(min = 1, max = 20, message = "{api_report.run_mode.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "执行模块/API/CASE/API_PLAN", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String runMode;
@Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源池", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String poolId;
@Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "触发模式/手动/批量/定时任务/JENKINS", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String triggerMode;
- @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
@Size(min = 1, max = 50, message = "{api_report.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{api_report.integrated_report_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.integrated_report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "集成报告id/api_scenario_report_id", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String integratedReportId;
@Size(min = 1, max = 1, message = "{api_report.integrated.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_report.integrated.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否为集成报告,默认否", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean integrated;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java
index 127258e0c0..a255023fe4 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java
@@ -1,36 +1,34 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "API/CASE执行结果详情")
+@Schema(title = "API/CASE执行结果详情")
@Table("api_report_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
+@EqualsAndHashCode(callSuper = false)
public class ApiReportBlob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{api_report_blob.api_report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口报告fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "结果内容详情", required = false, dataType = "byte[]")
+ @Schema(title = "结果内容详情", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] content;
- @ApiModelProperty(name = "执行环境配置", required = false, dataType = "byte[]")
+ @Schema(title = "执行环境配置", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] config;
- @ApiModelProperty(name = "执行过程日志", required = false, dataType = "byte[]")
+ @Schema(title = "执行过程日志", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] console;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java
index 6aa08ee3a6..5e180cd71f 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景")
+@Schema(title = "场景")
@Table("api_scenario")
@Data
public class ApiScenario implements Serializable {
@@ -21,108 +19,108 @@ public class ApiScenario implements Serializable {
@Id
@NotBlank(message = "{api_scenario.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 200, message = "{api_scenario.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景名称", required = true, allowableValues = "range[1, 200]")
+ @Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
private String name;
@Size(min = 1, max = 50, message = "{api_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "删除时间", required = false, dataType = "Long")
+ @Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long deleteTime;
- @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String deleteUser;
@Size(min = 1, max = 50, message = "{api_scenario.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "更新人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 10, message = "{api_scenario.level.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.level.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景级别/P0/P1等", required = true, allowableValues = "range[1, 10]")
+ @Schema(title = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
private String level;
@Size(min = 1, max = 20, message = "{api_scenario.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景状态/未规划/已完成 等", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String status;
@Size(min = 1, max = 50, message = "{api_scenario.principal.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.principal.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "责任人/用户fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String principal;
- @ApiModelProperty(name = "场景步骤总数", required = true, dataType = "Integer")
+ @Schema(title = "场景步骤总数", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer stepTotal;
- @ApiModelProperty(name = "通过率", required = true, dataType = "Long")
+ @Schema(title = "通过率", requiredMode = Schema.RequiredMode.REQUIRED)
private Long passRate;
- @ApiModelProperty(name = "最后一次执行的结果状态", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "最后一次执行的结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String reportStatus;
- @ApiModelProperty(name = "编号", required = false, dataType = "Integer")
+ @Schema(title = "编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Integer num;
- @ApiModelProperty(name = "自定义id", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "自定义id", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String customNum;
@Size(min = 1, max = 1, message = "{api_scenario.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "删除状态", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 1, message = "{api_scenario.environment_group.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.environment_group.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否为环境组", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean environmentGroup;
- @ApiModelProperty(name = "自定义排序", required = true, dataType = "Long")
+ @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
- @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
- @ApiModelProperty(name = "引用资源fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "引用资源fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String refId;
- @ApiModelProperty(name = "是否为最新版本 0:否,1:是", required = false, allowableValues = "range[1, 1]")
+ @Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
private Boolean latest;
@Size(min = 1, max = 50, message = "{api_scenario.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "场景模块fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "场景模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String apiScenarioModuleId;
- @ApiModelProperty(name = "最后一次执行的报告fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "最后一次执行的报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String reportId;
- @ApiModelProperty(name = "描述信息", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String description;
- @ApiModelProperty(name = "模块全路径/用于导入模块创建", required = false, allowableValues = "range[1, 1000]")
+ @Schema(title = "模块全路径/用于导入模块创建", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
private String modulePath;
- @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String tags;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java
index 8841c1dd59..4004acaaf0 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java
@@ -1,30 +1,28 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景步骤详情")
+@Schema(title = "场景步骤详情")
@Table("api_scenario_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
+@EqualsAndHashCode(callSuper = false)
public class ApiScenarioBlob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{api_scenario_blob.api_scenario_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "场景pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "场景步骤内容", required = false, dataType = "byte[]")
+ @Schema(title = "场景步骤内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] content;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java
index e0a695e625..386e1a0898 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景环境")
+@Schema(title = "场景环境")
@Table("api_scenario_environment")
@Data
public class ApiScenarioEnvironment implements Serializable {
@@ -21,23 +19,23 @@ public class ApiScenarioEnvironment implements Serializable {
@Id
@NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "场景环境pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{api_scenario_environment.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiScenarioId;
@Size(min = 1, max = 50, message = "{api_scenario_environment.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "环境fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentId;
- @ApiModelProperty(name = "环境组fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境组fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentGroupId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollow.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollow.java
index d8a00909c2..3637ceb494 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollow.java
@@ -1,10 +1,8 @@
-
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,7 +10,7 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "关注记录")
+@Schema(title = "关注记录")
@Table("api_scenario_follow")
@Data
public class ApiScenarioFollow implements Serializable {
@@ -20,12 +18,12 @@ public class ApiScenarioFollow implements Serializable {
@Size(min = 1, max = 50, message = "{api_scenario_follow.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_follow.api_scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiScenarioId;
@Size(min = 1, max = 50, message = "{api_scenario_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_follow.follow_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "关注人/用户fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String followId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java
index 553c24fdff..2724c83857 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景模块")
+@Schema(title = "场景模块")
@Table("api_scenario_module")
@Data
public class ApiScenarioModule implements Serializable {
@@ -21,44 +19,44 @@ public class ApiScenarioModule implements Serializable {
@Id
@NotBlank(message = "{api_scenario_module.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "场景模块pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 64, message = "{api_scenario_module.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_module.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "模块名称", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String name;
- @ApiModelProperty(name = "模块级别", required = true, dataType = "Integer")
+ @Schema(title = "模块级别", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer level;
- @ApiModelProperty(name = "排序", required = true, dataType = "Integer")
+ @Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer pos;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_scenario_module.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_module.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "更新人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
@Size(min = 1, max = 50, message = "{api_scenario_module.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_module.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 50, message = "{api_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_module.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{api_scenario_module.parent_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_module.parent_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "父级fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String parentId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java
index 6dc4780a61..6fbfa2a012 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景步骤引用CASE关系记录")
+@Schema(title = "场景步骤引用CASE关系记录")
@Table("api_scenario_reference")
@Data
public class ApiScenarioReference implements Serializable {
@@ -21,31 +19,31 @@ public class ApiScenarioReference implements Serializable {
@Id
@NotBlank(message = "{api_scenario_reference.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "引用关系pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{api_scenario_reference.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_reference.api_scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiScenarioId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{api_scenario_reference.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_reference.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 50, message = "{api_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_reference.reference_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "引用步骤fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String referenceId;
- @ApiModelProperty(name = "引用步骤类型/REF/COPY", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "引用步骤类型/REF/COPY", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String referenceType;
- @ApiModelProperty(name = "步骤类型/CASE/API", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "步骤类型/CASE/API", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String dataType;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java
index b16cb71b86..90266e20c3 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景报告")
+@Schema(title = "场景报告")
@Table("api_scenario_report")
@Data
public class ApiScenarioReport implements Serializable {
@@ -21,81 +19,81 @@ public class ApiScenarioReport implements Serializable {
@Id
@NotBlank(message = "{api_scenario_report.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "场景报告pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 300, message = "{api_scenario_report.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告名称", required = true, allowableValues = "range[1, 300]")
+ @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 300]")
private String name;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{api_scenario_report.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "删除时间", required = false, dataType = "Long")
+ @Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long deleteTime;
- @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String deleteUser;
@Size(min = 1, max = 1, message = "{api_scenario_report.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "删除标识", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 50, message = "{api_scenario_report.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
- @ApiModelProperty(name = "通过率", required = false, dataType = "Long")
+ @Schema(title = "通过率", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long passRate;
@Size(min = 1, max = 20, message = "{api_scenario_report.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告状态/SUCCESS/ERROR", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String status;
@Size(min = 1, max = 20, message = "{api_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.trigger_mode.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "触发方式", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String triggerMode;
@Size(min = 1, max = 20, message = "{api_scenario_report.run_mode.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.run_mode.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "执行模式", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String runMode;
@Size(min = 1, max = 50, message = "{api_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源池", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String poolId;
- @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
@Size(min = 1, max = 1, message = "{api_scenario_report.integrated.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.integrated.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否是集成报告", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean integrated;
@Size(min = 1, max = 50, message = "{api_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String scenarioId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java
index b588fcb83c..597ff495ca 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java
@@ -1,75 +1,73 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景报告步骤结果")
+@Schema(title = "场景报告步骤结果")
@Table("api_scenario_report_detail")
@Data
-@EqualsAndHashCode(callSuper=false)
+@EqualsAndHashCode(callSuper = false)
public class ApiScenarioReportDetail implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{api_scenario_report_detail.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report_detail.report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reportId;
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景中各个步骤请求唯一标识", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String resourceId;
- @ApiModelProperty(name = "开始时间", required = false, dataType = "Long")
+ @Schema(title = "开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long startTime;
- @ApiModelProperty(name = "结果状态", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String status;
- @ApiModelProperty(name = "单个请求步骤时间", required = false, dataType = "Long")
+ @Schema(title = "单个请求步骤时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long requestTime;
- @ApiModelProperty(name = "总断言数", required = false, dataType = "Long")
+ @Schema(title = "总断言数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long assertionsTotal;
- @ApiModelProperty(name = "失败断言数", required = false, dataType = "Long")
+ @Schema(title = "失败断言数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long passAssertionsTotal;
- @ApiModelProperty(name = "误报编号", required = false, allowableValues = "range[1, 200]")
+ @Schema(title = "误报编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 200]")
private String fakeCode;
- @ApiModelProperty(name = "请求名称", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "请求名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String requestName;
- @ApiModelProperty(name = "环境fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentId;
- @ApiModelProperty(name = "项目fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "失败总数", required = false, dataType = "Integer")
+ @Schema(title = "失败总数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Integer errorTotal;
- @ApiModelProperty(name = "请求响应码", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "请求响应码", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String code;
- @ApiModelProperty(name = "执行结果", required = false, dataType = "byte[]")
+ @Schema(title = "执行结果", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] content;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java
index 8c63e9e727..e7ff1dca2b 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java
@@ -1,17 +1,15 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景报告过程日志")
+@Schema(title = "场景报告过程日志")
@Table("api_scenario_report_log")
@Data
public class ApiScenarioReportLog implements Serializable {
@@ -19,10 +17,10 @@ public class ApiScenarioReportLog implements Serializable {
@Id
@NotBlank(message = "{api_scenario_report_log.report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "请求资源 id", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reportId;
- @ApiModelProperty(name = "执行日志", required = false, dataType = "byte[]")
+ @Schema(title = "执行日志", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] console;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java
index 9817c60f79..948298c4e4 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java
@@ -1,17 +1,15 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "场景报告结构")
+@Schema(title = "场景报告结构")
@Table("api_scenario_report_structure")
@Data
public class ApiScenarioReportStructure implements Serializable {
@@ -19,10 +17,10 @@ public class ApiScenarioReportStructure implements Serializable {
@Id
@NotBlank(message = "{api_scenario_report_structure.report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "请求资源 id", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reportId;
- @ApiModelProperty(name = "资源步骤结构树", required = false, dataType = "byte[]")
+ @Schema(title = "资源步骤结构树", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] resourceTree;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java
index e3f0dd0048..d282aea94b 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口同步用例配置")
+@Schema(title = "接口同步用例配置")
@Table("api_sync_config")
@Data
public class ApiSyncConfig implements Serializable {
@@ -21,43 +19,43 @@ public class ApiSyncConfig implements Serializable {
@Id
@NotBlank(message = "{api_sync_config.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{api_sync_config.resource_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_sync_config.resource_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "API/CASE 来源fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String resourceId;
@Size(min = 1, max = 50, message = "{api_sync_config.resource_type.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_sync_config.resource_type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "来源类型/API/CASE", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String resourceType;
- @ApiModelProperty(name = "是否隐藏", required = false, allowableValues = "range[1, 1]")
+ @Schema(title = "是否隐藏", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
private Boolean hide;
- @ApiModelProperty(name = "同步规则", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "同步规则", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private String ruleConfig;
@Size(min = 1, max = 1, message = "{api_sync_config.notify_case_creator.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_sync_config.notify_case_creator.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否通知用例创建人", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean notifyCaseCreator;
@Size(min = 1, max = 1, message = "{api_sync_config.notify_scenario_creator.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_sync_config.notify_scenario_creator.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否通知场景创建人", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean notifyScenarioCreator;
@Size(min = 1, max = 1, message = "{api_sync_config.sync_enable.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_sync_config.sync_enable.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否同步用例", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean syncEnable;
- @ApiModelProperty(name = "是否发送通知", required = false, allowableValues = "range[1, 1]")
+ @Schema(title = "是否发送通知", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
private Boolean noticeEnable;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java
index cd61a81891..b5a773c84a 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java
@@ -1,19 +1,17 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口用例")
+@Schema(title = "接口用例")
@Table("api_test_case")
@Data
public class ApiTestCase implements Serializable {
@@ -21,91 +19,91 @@ public class ApiTestCase implements Serializable {
@Id
@NotBlank(message = "{api_test_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口用例pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 200, message = "{api_test_case.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口用例名称", required = true, allowableValues = "range[1, 200]")
+ @Schema(title = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
private String name;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{api_test_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{api_test_case.update_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.update_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "更新人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "删除时间", required = false, dataType = "Long")
+ @Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long deleteTime;
- @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String deleteUser;
@Size(min = 1, max = 1, message = "{api_test_case.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "删除标识", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 50, message = "{api_test_case.priority.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.priority.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "用例等级", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String priority;
- @ApiModelProperty(name = "接口用例编号id", required = false, dataType = "Integer")
+ @Schema(title = "接口用例编号id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Integer num;
- @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
private String tags;
- @ApiModelProperty(name = "用例状态", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "用例状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String status;
- @ApiModelProperty(name = "最新执行结果状态", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "最新执行结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String apiReportStatus;
- @ApiModelProperty(name = "最后执行结果报告fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "最后执行结果报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String apiReportId;
- @ApiModelProperty(name = "自定义排序", required = true, dataType = "Long")
+ @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
@Size(min = 1, max = 1, message = "{api_test_case.sync_enable.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.sync_enable.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否开启同步", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean syncEnable;
- @ApiModelProperty(name = "需要同步的开始时间", required = false, dataType = "Long")
+ @Schema(title = "需要同步的开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long syncTime;
@Size(min = 1, max = 50, message = "{api_test_case.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{api_test_case.api_definition_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.api_definition_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiDefinitionId;
- @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
@Size(min = 1, max = 50, message = "{api_test_case.principal.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case.principal.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "责任人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String principal;
- @ApiModelProperty(name = "环境fk", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java
index e132d0b34b..dfe0a461e1 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java
@@ -1,30 +1,28 @@
-
package io.metersphere.api.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口用例详情")
+@Schema(title = "接口用例详情")
@Table("api_test_case_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
+@EqualsAndHashCode(callSuper = false)
public class ApiTestCaseBlob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{api_test_case_blob.api_test_case_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "接口用例pk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]")
+ @Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private byte[] request;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollow.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollow.java
index 9f0d9026a1..64a34a8d79 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollow.java
@@ -1,10 +1,8 @@
-
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,19 +10,19 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "接口用例关注人")
+@Schema(title = "接口用例关注人")
@Table("api_test_case_follow")
@Data
public class ApiTestCaseFollow implements Serializable {
private static final long serialVersionUID = 1L;
@Size(min = 1, max = 50, message = "{api_test_case_follow.case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case_follow.case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "用例fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String caseId;
@Size(min = 1, max = 50, message = "{api_test_case_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{api_test_case_follow.follow_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "关注人/用户fk", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String followId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java
index 8c5712fb82..f967f64085 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java
@@ -1,18 +1,17 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "用例评审")
+@Schema(title = "用例评审")
@Table("case_review")
@Data
public class CaseReview implements Serializable {
@@ -20,52 +19,52 @@ public class CaseReview implements Serializable {
@Id
@NotBlank(message = "{case_review.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 200, message = "{case_review.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "名称", required = true, allowableValues = "range[1, 200]")
+ @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
private String name;
@Size(min = 1, max = 64, message = "{case_review.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审状态:未开始/进行中/已完成/已结束/已归档", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "评审状态:未开始/进行中/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String status;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
- @ApiModelProperty(name = "评审结束时间", required = true, dataType = "Long")
+ @Schema(title = "评审结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long endTime;
- @ApiModelProperty(name = "描述", required = false)
+ @Schema(title = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String description;
@Size(min = 1, max = 50, message = "{case_review.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
- @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 1000]")
+ @Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
private String tags;
@Size(min = 1, max = 50, message = "{case_review.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
@Size(min = 1, max = 64, message = "{case_review.review_pass_rule.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review.review_pass_rule.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审规则:单人通过/全部通过", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "评审规则:单人通过/全部通过", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String reviewPassRule;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollow.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollow.java
index ad98bfe140..b19e968b8f 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollow.java
@@ -1,16 +1,15 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "用例评审关注人")
+@Schema(title = "用例评审关注人")
@Table("case_review_follow")
@Data
public class CaseReviewFollow implements Serializable {
@@ -18,12 +17,12 @@ public class CaseReviewFollow implements Serializable {
@Id
@NotBlank(message = "{case_review_follow.review_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "评审ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reviewId;
@NotBlank(message = "{case_review_follow.follow_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "关注人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "关注人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String followId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java
index 3833ca2a71..fc5c1e3adb 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java
@@ -1,18 +1,17 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "用例评审和功能用例的中间表")
+@Schema(title = "用例评审和功能用例的中间表")
@Table("case_review_functional_case")
@Data
public class CaseReviewFunctionalCase implements Serializable {
@@ -20,44 +19,44 @@ public class CaseReviewFunctionalCase implements Serializable {
@Id
@NotBlank(message = "{case_review_functional_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{case_review_functional_case.review_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case.review_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reviewId;
@Size(min = 1, max = 50, message = "{case_review_functional_case.case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case.case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String caseId;
@Size(min = 1, max = 64, message = "{case_review_functional_case.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审状态:进行中/通过/不通过/重新提审", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "评审状态:进行中/通过/不通过/重新提审", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String status;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 50, message = "{case_review_functional_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
@Size(min = 1, max = 1, message = "{case_review_functional_case.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "关联的用例是否放入回收站", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "关联的用例是否放入回收站", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java
index febd3990d5..d838027bd9 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java
@@ -2,8 +2,7 @@ package io.metersphere.functional.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -11,7 +10,7 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例评审和评审人的中间表")
+@Schema(title = "功能用例评审和评审人的中间表")
@Table("case_review_functional_case_user")
@Data
public class CaseReviewFunctionalCaseUser implements Serializable {
@@ -19,17 +18,17 @@ public class CaseReviewFunctionalCaseUser implements Serializable {
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case_user.case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "功能用例和评审中间表的ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例和评审中间表的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String caseId;
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.review_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case_user.review_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reviewId;
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.user_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{case_review_functional_case_user.user_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审人ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String userId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java
index 9d8592d5e3..86d74e937d 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java
@@ -1,27 +1,26 @@
package io.metersphere.functional.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "评审和评审人中间表")
+@Schema(title = "评审和评审人中间表")
@Table("case_review_user")
@Data
public class CaseReviewUser implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{case_review_user.review_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "评审ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String reviewId;
-
+
@NotBlank(message = "{case_review_user.user_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "评审人ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String userId;
-
+
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CustomFieldTestCase.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CustomFieldTestCase.java
index 6939db5338..4157902a57 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CustomFieldTestCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CustomFieldTestCase.java
@@ -1,34 +1,33 @@
package io.metersphere.functional.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "自定义字段功能用例关系")
+@Schema(title = "自定义字段功能用例关系")
@Table("custom_field_test_case")
@Data
public class CustomFieldTestCase implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{custom_field_test_case.resource_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "资源ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String resourceId;
@NotBlank(message = "{custom_field_test_case.field_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "字段ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String fieldId;
- @ApiModelProperty(name = "字段值", required = false, allowableValues = "range[1, 1000]")
+ @Schema(title = "字段值", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
private String value;
- @ApiModelProperty(name = "", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private String textValue;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java
index 20721b96dc..eafc050763 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java
@@ -1,19 +1,18 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例")
+@Schema(title = "功能用例")
@Table("functional_case")
@Data
public class FunctionalCase implements Serializable {
@@ -22,99 +21,99 @@ public class FunctionalCase implements Serializable {
@Id
@NotBlank(message = "{functional_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
- @ApiModelProperty(name = "业务ID", required = true, dataType = "Integer")
+ @Schema(title = "业务ID", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer num;
@Size(min = 1, max = 64, message = "{functional_case.custom_num.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.custom_num.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "自定义业务ID", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "自定义业务ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String customNum;
@Size(min = 1, max = 50, message = "{functional_case.module_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.module_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "模块ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String moduleId;
@Size(min = 1, max = 50, message = "{functional_case.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 255, message = "{functional_case.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "名称", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String name;
@Size(min = 1, max = 64, message = "{functional_case.review_status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.review_status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评审状态:未开始/进行中/已完成/已结束", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "评审状态:未开始/进行中/已完成/已结束", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String reviewStatus;
- @ApiModelProperty(name = "标签(JSON)", required = false, allowableValues = "range[1, 1000]")
+ @Schema(title = "标签(JSON)", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
private String tags;
@Size(min = 1, max = 64, message = "{functional_case.step_model.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.step_model.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "编辑模式:步骤模式/文本模式", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "编辑模式:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String stepModel;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
@Size(min = 1, max = 50, message = "{functional_case.version_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.version_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "版本ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String versionId;
@Size(min = 1, max = 50, message = "{functional_case.ref_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.ref_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "指向初始版本ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String refId;
@Size(min = 1, max = 64, message = "{functional_case.last_execute_result.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.last_execute_result.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "最近的执行结果:未执行/通过/失败/阻塞/跳过", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "最近的执行结果:未执行/通过/失败/阻塞/跳过", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String lastExecuteResult;
@Size(min = 1, max = 1, message = "{functional_case.deleted.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.deleted.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否在回收站:0-否,1-是", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否在回收站:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean deleted;
@Size(min = 1, max = 1, message = "{functional_case.public_case.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.public_case.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否是公共用例:0-否,1-是", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否是公共用例:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean publicCase;
@Size(min = 1, max = 1, message = "{functional_case.latest.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.latest.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否为最新版本:0-否,1-是", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否为最新版本:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean latest;
@Size(min = 1, max = 100, message = "{functional_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 100]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
private String createUser;
- @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 64]")
+ @Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 64]")
private String deleteUser;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
- @ApiModelProperty(name = "删除时间", required = false, dataType = "Long")
+ @Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private Long deleteTime;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java
index ebcce208d9..d7dbf2235f 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java
@@ -1,26 +1,25 @@
package io.metersphere.functional.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例和附件的中间表")
+@Schema(title = "功能用例和附件的中间表")
@Table("functional_case_attachment")
@Data
public class FunctionalCaseAttachment implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{functional_case_attachment.functional_case_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String functionalCaseId;
@NotBlank(message = "{functional_case_attachment.file_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "文件的ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String fileId;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java
index 2282ddde63..8396e58a91 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java
@@ -1,36 +1,36 @@
package io.metersphere.functional.domain;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+
+import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例")
+@Schema(title = "功能用例")
@Table("functional_case_blob")
@Data
@EqualsAndHashCode(callSuper = false)
public class FunctionalCaseBlob implements Serializable {
private static final long serialVersionUID = 1L;
- @ApiModelProperty(name = "用例步骤(JSON),step_model 为 0 时启用", required = false)
+ @Schema(title = "用例步骤(JSON),step_model 为 0 时启用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String steps;
- @ApiModelProperty(name = "步骤描述,step_model 为 1 时启用", required = false)
+ @Schema(title = "步骤描述,step_model 为 1 时启用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String stepDescription;
- @ApiModelProperty(name = "预期结果,step_model 为 1 时启用", required = false)
+ @Schema(title = "预期结果,step_model 为 1 时启用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String expectedResult;
- @ApiModelProperty(name = "前置条件", required = false)
+ @Schema(title = "前置条件", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String prerequisite;
- @ApiModelProperty(name = "备注", required = false)
+ @Schema(title = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String description;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java
index 6dfe07be11..05db03a554 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java
@@ -1,18 +1,17 @@
package io.metersphere.functional.domain;
-import java.io.Serializable;
-
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
-@ApiModel(value = "功能用例评论")
+import java.io.Serializable;
+
+@Schema(title = "功能用例评论")
@Table("functional_case_comment")
@Data
public class FunctionalCaseComment implements Serializable {
@@ -20,43 +19,43 @@ public class FunctionalCaseComment implements Serializable {
@Id
@NotBlank(message = "{functional_case_comment.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{functional_case_comment.case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_comment.case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String caseId;
@Size(min = 1, max = 50, message = "{functional_case_comment.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_comment.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评论人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "评论人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记", required = false, allowableValues = "range[1, 64]")
+ @Schema(title = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 64]")
private String status;
@Size(min = 1, max = 64, message = "{functional_case_comment.type.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_comment.type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "评论类型:用例评论/测试计划用例评论/评审用例评论", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "评论类型:用例评论/测试计划用例评论/评审用例评论", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String type;
- @ApiModelProperty(name = "当前评审所属的测试计划ID或评审ID", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "当前评审所属的测试计划ID或评审ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String belongId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
- @ApiModelProperty(name = "描述", required = false)
+ @Schema(title = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String description;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollow.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollow.java
index 576171b821..c3bbadd871 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollow.java
@@ -1,26 +1,25 @@
package io.metersphere.functional.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例和关注人的中间表")
+@Schema(title = "功能用例和关注人的中间表")
@Table("functional_case_follow")
@Data
public class FunctionalCaseFollow implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{functional_case_follow.case_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String caseId;
@NotBlank(message = "{functional_case_follow.follow_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "关注人ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String followId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java
index d6be3da6a2..75f23683b5 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java
@@ -1,18 +1,17 @@
package io.metersphere.functional.domain;
-import java.io.Serializable;
-
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
-@ApiModel(value = "功能用例模块")
+import java.io.Serializable;
+
+@Schema(title = "功能用例模块")
@Table("functional_case_module")
@Data
public class FunctionalCaseModule implements Serializable {
@@ -20,39 +19,39 @@ public class FunctionalCaseModule implements Serializable {
@Id
@NotBlank(message = "{functional_case_module.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{functional_case_module.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_module.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 100, message = "{functional_case_module.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_module.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "名称", required = true, allowableValues = "range[1, 100]")
+ @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
private String name;
- @ApiModelProperty(name = "父节点ID", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "父节点ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String parentId;
- @ApiModelProperty(name = "节点的层级", required = true, dataType = "Integer")
+ @Schema(title = "节点的层级", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer level;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
@Size(min = 1, max = 10, message = "{functional_case_module.pos.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_module.pos.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "同一节点下的顺序", required = true, dataType = "Long")
+ @Schema(title = "同一节点下的顺序", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
@Size(min = 1, max = 50, message = "{functional_case_module.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_module.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java
index 95d7de7ba6..da4610b188 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java
@@ -1,53 +1,52 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例的前后置关系")
+@Schema(title = "功能用例的前后置关系")
@Table("functional_case_relationship_edge")
@Data
public class FunctionalCaseRelationshipEdge implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{functional_case_relationship_edge.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.source_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_relationship_edge.source_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "源节点的ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String sourceId;
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.target_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_relationship_edge.target_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "目标节点的ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String targetId;
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.graph_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_relationship_edge.graph_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "所属关系图的ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String graphId;
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_relationship_edge.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java
index 49840e5ed3..dea47d4824 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java
@@ -1,18 +1,17 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "功能用例和其他用例的中间表")
+@Schema(title = "功能用例和其他用例的中间表")
@Table("functional_case_test")
@Data
public class FunctionalCaseTest implements Serializable {
@@ -20,30 +19,30 @@ public class FunctionalCaseTest implements Serializable {
@Id
@NotBlank(message = "{functional_case_test.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{functional_case_test.functional_case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_test.functional_case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String functionalCaseId;
@Size(min = 1, max = 50, message = "{functional_case_test.test_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_test.test_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "其他类型用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "其他类型用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testId;
@Size(min = 1, max = 64, message = "{functional_case_test.test_type.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{functional_case_test.test_type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "用例类型:接口用例/场景用例/性能用例/UI用例", required = true, allowableValues = "range[1, 64]")
+ @Schema(title = "用例类型:接口用例/场景用例/性能用例/UI用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
private String testType;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long updateTime;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/MinderExtraNode.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/MinderExtraNode.java
index 5fc7b976f8..b721fbd382 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/MinderExtraNode.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/MinderExtraNode.java
@@ -1,44 +1,44 @@
package io.metersphere.functional.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
+import org.springframework.data.annotation.Id;
+import org.springframework.data.relational.core.mapping.Table;
+
import java.io.Serializable;
-@ApiModel(value = "脑图临时节点")
+@Schema(title = "脑图临时节点")
@Table("minder_extra_node")
@Data
public class MinderExtraNode implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{minder_extra_node.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
-
+
@Size(min = 1, max = 50, message = "{minder_extra_node.parent_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{minder_extra_node.parent_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "父节点的ID,即模块ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "父节点的ID,即模块ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String parentId;
-
+
@Size(min = 1, max = 50, message = "{minder_extra_node.group_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{minder_extra_node.group_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID,可扩展为其他资源ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "项目ID,可扩展为其他资源ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String groupId;
-
+
@Size(min = 1, max = 30, message = "{minder_extra_node.type.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{minder_extra_node.type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "类型,如:用例编辑脑图", required = true, allowableValues="range[1, 30]")
+ @Schema(title = "类型,如:用例编辑脑图", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
private String type;
-
-
- @ApiModelProperty(name = "存储脑图节点额外信息", required = true, allowableValues="range[1, ]")
+
+
+ @Schema(title = "存储脑图节点额外信息", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, ]")
private String nodeData;
-
+
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java
index 50e834c0b4..2785d59403 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java
@@ -1,86 +1,78 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
+import java.io.Serializable;
import lombok.Data;
-import java.io.Serializable;
-
-@ApiModel(value = "性能测试用例")
-@Table("load_test")
@Data
public class LoadTest implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @NotBlank(message = "{load_test.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test.id.length_range}", groups = {Created.class, Updated.class})
private String id;
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test.project_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test.project_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID", required = true, allowableValues = "range[1, 50]")
private String projectId;
+ @Schema(title = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
+ @NotBlank(message = "{load_test.name.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 255, message = "{load_test.name.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试名称", required = true, allowableValues = "range[1, 255]")
private String name;
-
- @ApiModelProperty(name = "状态为Error时表示错误信息", required = false, allowableValues = "range[1, 500]")
+ @Schema(title = "状态为Error时表示错误信息")
private String description;
-
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间")
private Long createTime;
-
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
+ @Schema(title = "更新时间")
private Long updateTime;
+ @Schema(title = "状态: Starting, Running, Completed, Error, etc.", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test.status.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 64, message = "{load_test.status.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "状态: Starting, Running, Completed, Error, etc.", required = true, allowableValues = "range[1, 64]")
private String status;
+ @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test.test_resource_pool_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.test_resource_pool_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源池ID", required = true, allowableValues = "range[1, 50]")
private String testResourcePoolId;
-
- @ApiModelProperty(name = "测试数字ID,例如: 100001", required = true, dataType = "Integer")
+ @Schema(title = "测试数字ID,例如: 100001", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
+ @NotBlank(message = "{load_test.num.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 10, message = "{load_test.num.length_range}", groups = {Created.class, Updated.class})
private Integer num;
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
+ @NotBlank(message = "{load_test.create_user.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 100, message = "{load_test.create_user.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 100]")
private String createUser;
-
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 19]")
+ @NotBlank(message = "{load_test.pos.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 19, message = "{load_test.pos.length_range}", groups = {Created.class, Updated.class})
private Long pos;
+ @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test.version_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test.version_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.version_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "版本ID", required = true, allowableValues = "range[1, 50]")
private String versionId;
+ @Schema(title = "基版本数据ID,首条测试和测试ID相同", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test.ref_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test.ref_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.ref_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "基版本数据ID,首条测试和测试ID相同", required = true, allowableValues = "range[1, 50]")
private String refId;
+ @Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
+ @NotBlank(message = "{load_test.latest.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 1, message = "{load_test.latest.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test.latest.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否为最新版本 0:否,1:是", required = true, allowableValues = "range[1, 1]")
private Boolean latest;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java
index 156eecd5e0..7cdabfbc5e 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java
@@ -1,48 +1,40 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "关联场景测试和性能测试")
-@Table("load_test_api")
@Data
public class LoadTestApi implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @NotBlank(message = "{load_test_api.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_api.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_api.id.length_range}", groups = {Created.class, Updated.class})
private String id;
-
- @Size(min = 1, max = 255, message = "{load_test_api.api_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_api.api_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口场景或用例ID", required = true, allowableValues="range[1, 255]")
- private String apiId;
-
- @Size(min = 1, max = 50, message = "{load_test_api.load_test_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_api.load_test_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "性能测试ID", required = true, allowableValues="range[1, 50]")
- private String loadTestId;
-
-
- @ApiModelProperty(name = "环境ID", required = false, allowableValues="range[1, 50]")
- private String envId;
-
- @Size(min = 1, max = 20, message = "{load_test_api.type.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_api.type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "类型: SCENARIO, CASE", required = true, allowableValues="range[1, 20]")
- private String type;
-
-
- @ApiModelProperty(name = "关联版本", required = false, dataType = "Integer")
- private Integer apiVersion;
-
+ @Schema(title = "接口场景或用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
+ @NotBlank(message = "{load_test_api.api_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 255, message = "{load_test_api.api_id.length_range}", groups = {Created.class, Updated.class})
+ private String apiId;
+
+ @Schema(title = "性能测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_api.load_test_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_api.load_test_id.length_range}", groups = {Created.class, Updated.class})
+ private String loadTestId;
+
+ @Schema(title = "环境ID")
+ private String envId;
+
+ @Schema(title = "类型: SCENARIO, CASE", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
+ @NotBlank(message = "{load_test_api.type.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 20, message = "{load_test_api.type.length_range}", groups = {Created.class, Updated.class})
+ private String type;
+
+ @Schema(title = "关联版本")
+ private Integer apiVersion;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java
new file mode 100644
index 0000000000..37c5e3c61f
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java
@@ -0,0 +1,610 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestApiExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestApiExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdIsNull() {
+ addCriterion("api_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdIsNotNull() {
+ addCriterion("api_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdEqualTo(String value) {
+ addCriterion("api_id =", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdNotEqualTo(String value) {
+ addCriterion("api_id <>", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdGreaterThan(String value) {
+ addCriterion("api_id >", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdGreaterThanOrEqualTo(String value) {
+ addCriterion("api_id >=", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdLessThan(String value) {
+ addCriterion("api_id <", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdLessThanOrEqualTo(String value) {
+ addCriterion("api_id <=", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdLike(String value) {
+ addCriterion("api_id like", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdNotLike(String value) {
+ addCriterion("api_id not like", value, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdIn(List values) {
+ addCriterion("api_id in", values, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdNotIn(List values) {
+ addCriterion("api_id not in", values, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdBetween(String value1, String value2) {
+ addCriterion("api_id between", value1, value2, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiIdNotBetween(String value1, String value2) {
+ addCriterion("api_id not between", value1, value2, "apiId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdIsNull() {
+ addCriterion("load_test_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdIsNotNull() {
+ addCriterion("load_test_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdEqualTo(String value) {
+ addCriterion("load_test_id =", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdNotEqualTo(String value) {
+ addCriterion("load_test_id <>", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdGreaterThan(String value) {
+ addCriterion("load_test_id >", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdGreaterThanOrEqualTo(String value) {
+ addCriterion("load_test_id >=", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdLessThan(String value) {
+ addCriterion("load_test_id <", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdLessThanOrEqualTo(String value) {
+ addCriterion("load_test_id <=", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdLike(String value) {
+ addCriterion("load_test_id like", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdNotLike(String value) {
+ addCriterion("load_test_id not like", value, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdIn(List values) {
+ addCriterion("load_test_id in", values, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdNotIn(List values) {
+ addCriterion("load_test_id not in", values, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdBetween(String value1, String value2) {
+ addCriterion("load_test_id between", value1, value2, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLoadTestIdNotBetween(String value1, String value2) {
+ addCriterion("load_test_id not between", value1, value2, "loadTestId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdIsNull() {
+ addCriterion("env_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdIsNotNull() {
+ addCriterion("env_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdEqualTo(String value) {
+ addCriterion("env_id =", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdNotEqualTo(String value) {
+ addCriterion("env_id <>", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdGreaterThan(String value) {
+ addCriterion("env_id >", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdGreaterThanOrEqualTo(String value) {
+ addCriterion("env_id >=", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdLessThan(String value) {
+ addCriterion("env_id <", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdLessThanOrEqualTo(String value) {
+ addCriterion("env_id <=", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdLike(String value) {
+ addCriterion("env_id like", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdNotLike(String value) {
+ addCriterion("env_id not like", value, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdIn(List values) {
+ addCriterion("env_id in", values, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdNotIn(List values) {
+ addCriterion("env_id not in", values, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdBetween(String value1, String value2) {
+ addCriterion("env_id between", value1, value2, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEnvIdNotBetween(String value1, String value2) {
+ addCriterion("env_id not between", value1, value2, "envId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNull() {
+ addCriterion("`type` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("`type` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(String value) {
+ addCriterion("`type` =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(String value) {
+ addCriterion("`type` <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(String value) {
+ addCriterion("`type` >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(String value) {
+ addCriterion("`type` >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(String value) {
+ addCriterion("`type` <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(String value) {
+ addCriterion("`type` <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLike(String value) {
+ addCriterion("`type` like", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotLike(String value) {
+ addCriterion("`type` not like", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("`type` in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("`type` not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(String value1, String value2) {
+ addCriterion("`type` between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(String value1, String value2) {
+ addCriterion("`type` not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionIsNull() {
+ addCriterion("api_version is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionIsNotNull() {
+ addCriterion("api_version is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionEqualTo(Integer value) {
+ addCriterion("api_version =", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionNotEqualTo(Integer value) {
+ addCriterion("api_version <>", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionGreaterThan(Integer value) {
+ addCriterion("api_version >", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionGreaterThanOrEqualTo(Integer value) {
+ addCriterion("api_version >=", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionLessThan(Integer value) {
+ addCriterion("api_version <", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionLessThanOrEqualTo(Integer value) {
+ addCriterion("api_version <=", value, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionIn(List values) {
+ addCriterion("api_version in", values, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionNotIn(List values) {
+ addCriterion("api_version not in", values, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionBetween(Integer value1, Integer value2) {
+ addCriterion("api_version between", value1, value2, "apiVersion");
+ return (Criteria) this;
+ }
+
+ public Criteria andApiVersionNotBetween(Integer value1, Integer value2) {
+ addCriterion("api_version not between", value1, value2, "apiVersion");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java
index d726cced65..1ca10de142 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java
@@ -1,40 +1,28 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "性能测试用例大字段")
-@Table("load_test_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
public class LoadTestBlob implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
+ @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
@NotBlank(message = "{load_test_blob.test_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试ID", required = true, allowableValues = "range[1, 50]")
+ @Size(min = 1, max = 50, message = "{load_test_blob.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId;
-
- @ApiModelProperty(name = "压力配置", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "压力配置")
private byte[] loadConfiguration;
-
- @ApiModelProperty(name = "高级配置", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "高级配置")
private byte[] advancedConfiguration;
-
- @ApiModelProperty(name = "环境信息 (JSON format)", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "环境信息 (JSON format)")
private byte[] envInfo;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java
new file mode 100644
index 0000000000..6ea39a8383
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java
@@ -0,0 +1,270 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestBlobExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestBlobExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andTestIdIsNull() {
+ addCriterion("test_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIsNotNull() {
+ addCriterion("test_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdEqualTo(String value) {
+ addCriterion("test_id =", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotEqualTo(String value) {
+ addCriterion("test_id <>", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThan(String value) {
+ addCriterion("test_id >", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_id >=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThan(String value) {
+ addCriterion("test_id <", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThanOrEqualTo(String value) {
+ addCriterion("test_id <=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLike(String value) {
+ addCriterion("test_id like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotLike(String value) {
+ addCriterion("test_id not like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIn(List values) {
+ addCriterion("test_id in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotIn(List values) {
+ addCriterion("test_id not in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdBetween(String value1, String value2) {
+ addCriterion("test_id between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotBetween(String value1, String value2) {
+ addCriterion("test_id not between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java
new file mode 100644
index 0000000000..3be413754a
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java
@@ -0,0 +1,1130 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNull() {
+ addCriterion("project_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNotNull() {
+ addCriterion("project_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdEqualTo(String value) {
+ addCriterion("project_id =", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotEqualTo(String value) {
+ addCriterion("project_id <>", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThan(String value) {
+ addCriterion("project_id >", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
+ addCriterion("project_id >=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThan(String value) {
+ addCriterion("project_id <", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThanOrEqualTo(String value) {
+ addCriterion("project_id <=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLike(String value) {
+ addCriterion("project_id like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotLike(String value) {
+ addCriterion("project_id not like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIn(List values) {
+ addCriterion("project_id in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotIn(List values) {
+ addCriterion("project_id not in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdBetween(String value1, String value2) {
+ addCriterion("project_id between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotBetween(String value1, String value2) {
+ addCriterion("project_id not between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNull() {
+ addCriterion("`name` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNotNull() {
+ addCriterion("`name` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameEqualTo(String value) {
+ addCriterion("`name` =", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotEqualTo(String value) {
+ addCriterion("`name` <>", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThan(String value) {
+ addCriterion("`name` >", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThanOrEqualTo(String value) {
+ addCriterion("`name` >=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThan(String value) {
+ addCriterion("`name` <", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThanOrEqualTo(String value) {
+ addCriterion("`name` <=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLike(String value) {
+ addCriterion("`name` like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotLike(String value) {
+ addCriterion("`name` not like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIn(List values) {
+ addCriterion("`name` in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotIn(List values) {
+ addCriterion("`name` not in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameBetween(String value1, String value2) {
+ addCriterion("`name` between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotBetween(String value1, String value2) {
+ addCriterion("`name` not between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNull() {
+ addCriterion("description is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNotNull() {
+ addCriterion("description is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionEqualTo(String value) {
+ addCriterion("description =", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotEqualTo(String value) {
+ addCriterion("description <>", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThan(String value) {
+ addCriterion("description >", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
+ addCriterion("description >=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThan(String value) {
+ addCriterion("description <", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThanOrEqualTo(String value) {
+ addCriterion("description <=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLike(String value) {
+ addCriterion("description like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotLike(String value) {
+ addCriterion("description not like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIn(List values) {
+ addCriterion("description in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotIn(List values) {
+ addCriterion("description not in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionBetween(String value1, String value2) {
+ addCriterion("description between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotBetween(String value1, String value2) {
+ addCriterion("description not between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Long value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Long value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Long value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Long value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Long value1, Long value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Long value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Long value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Long value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Long value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Long value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Long value1, Long value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Long value1, Long value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNull() {
+ addCriterion("`status` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNotNull() {
+ addCriterion("`status` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusEqualTo(String value) {
+ addCriterion("`status` =", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotEqualTo(String value) {
+ addCriterion("`status` <>", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThan(String value) {
+ addCriterion("`status` >", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThanOrEqualTo(String value) {
+ addCriterion("`status` >=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThan(String value) {
+ addCriterion("`status` <", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThanOrEqualTo(String value) {
+ addCriterion("`status` <=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLike(String value) {
+ addCriterion("`status` like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotLike(String value) {
+ addCriterion("`status` not like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIn(List values) {
+ addCriterion("`status` in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotIn(List values) {
+ addCriterion("`status` not in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusBetween(String value1, String value2) {
+ addCriterion("`status` between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotBetween(String value1, String value2) {
+ addCriterion("`status` not between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIsNull() {
+ addCriterion("test_resource_pool_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIsNotNull() {
+ addCriterion("test_resource_pool_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdEqualTo(String value) {
+ addCriterion("test_resource_pool_id =", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotEqualTo(String value) {
+ addCriterion("test_resource_pool_id <>", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdGreaterThan(String value) {
+ addCriterion("test_resource_pool_id >", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_resource_pool_id >=", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLessThan(String value) {
+ addCriterion("test_resource_pool_id <", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLessThanOrEqualTo(String value) {
+ addCriterion("test_resource_pool_id <=", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLike(String value) {
+ addCriterion("test_resource_pool_id like", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotLike(String value) {
+ addCriterion("test_resource_pool_id not like", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIn(List values) {
+ addCriterion("test_resource_pool_id in", values, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotIn(List values) {
+ addCriterion("test_resource_pool_id not in", values, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdBetween(String value1, String value2) {
+ addCriterion("test_resource_pool_id between", value1, value2, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotBetween(String value1, String value2) {
+ addCriterion("test_resource_pool_id not between", value1, value2, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIsNull() {
+ addCriterion("num is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIsNotNull() {
+ addCriterion("num is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumEqualTo(Integer value) {
+ addCriterion("num =", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotEqualTo(Integer value) {
+ addCriterion("num <>", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThan(Integer value) {
+ addCriterion("num >", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThanOrEqualTo(Integer value) {
+ addCriterion("num >=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThan(Integer value) {
+ addCriterion("num <", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThanOrEqualTo(Integer value) {
+ addCriterion("num <=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIn(List values) {
+ addCriterion("num in", values, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotIn(List values) {
+ addCriterion("num not in", values, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumBetween(Integer value1, Integer value2) {
+ addCriterion("num between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotBetween(Integer value1, Integer value2) {
+ addCriterion("num not between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNull() {
+ addCriterion("create_user is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNotNull() {
+ addCriterion("create_user is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserEqualTo(String value) {
+ addCriterion("create_user =", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotEqualTo(String value) {
+ addCriterion("create_user <>", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThan(String value) {
+ addCriterion("create_user >", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
+ addCriterion("create_user >=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThan(String value) {
+ addCriterion("create_user <", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThanOrEqualTo(String value) {
+ addCriterion("create_user <=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLike(String value) {
+ addCriterion("create_user like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotLike(String value) {
+ addCriterion("create_user not like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIn(List values) {
+ addCriterion("create_user in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotIn(List values) {
+ addCriterion("create_user not in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserBetween(String value1, String value2) {
+ addCriterion("create_user between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotBetween(String value1, String value2) {
+ addCriterion("create_user not between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosIsNull() {
+ addCriterion("pos is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosIsNotNull() {
+ addCriterion("pos is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosEqualTo(Long value) {
+ addCriterion("pos =", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosNotEqualTo(Long value) {
+ addCriterion("pos <>", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosGreaterThan(Long value) {
+ addCriterion("pos >", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosGreaterThanOrEqualTo(Long value) {
+ addCriterion("pos >=", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosLessThan(Long value) {
+ addCriterion("pos <", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosLessThanOrEqualTo(Long value) {
+ addCriterion("pos <=", value, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosIn(List values) {
+ addCriterion("pos in", values, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosNotIn(List values) {
+ addCriterion("pos not in", values, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosBetween(Long value1, Long value2) {
+ addCriterion("pos between", value1, value2, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andPosNotBetween(Long value1, Long value2) {
+ addCriterion("pos not between", value1, value2, "pos");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIsNull() {
+ addCriterion("version_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIsNotNull() {
+ addCriterion("version_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdEqualTo(String value) {
+ addCriterion("version_id =", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotEqualTo(String value) {
+ addCriterion("version_id <>", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdGreaterThan(String value) {
+ addCriterion("version_id >", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdGreaterThanOrEqualTo(String value) {
+ addCriterion("version_id >=", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLessThan(String value) {
+ addCriterion("version_id <", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLessThanOrEqualTo(String value) {
+ addCriterion("version_id <=", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLike(String value) {
+ addCriterion("version_id like", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotLike(String value) {
+ addCriterion("version_id not like", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIn(List values) {
+ addCriterion("version_id in", values, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotIn(List values) {
+ addCriterion("version_id not in", values, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdBetween(String value1, String value2) {
+ addCriterion("version_id between", value1, value2, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotBetween(String value1, String value2) {
+ addCriterion("version_id not between", value1, value2, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdIsNull() {
+ addCriterion("ref_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdIsNotNull() {
+ addCriterion("ref_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdEqualTo(String value) {
+ addCriterion("ref_id =", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdNotEqualTo(String value) {
+ addCriterion("ref_id <>", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdGreaterThan(String value) {
+ addCriterion("ref_id >", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdGreaterThanOrEqualTo(String value) {
+ addCriterion("ref_id >=", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdLessThan(String value) {
+ addCriterion("ref_id <", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdLessThanOrEqualTo(String value) {
+ addCriterion("ref_id <=", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdLike(String value) {
+ addCriterion("ref_id like", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdNotLike(String value) {
+ addCriterion("ref_id not like", value, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdIn(List values) {
+ addCriterion("ref_id in", values, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdNotIn(List values) {
+ addCriterion("ref_id not in", values, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdBetween(String value1, String value2) {
+ addCriterion("ref_id between", value1, value2, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRefIdNotBetween(String value1, String value2) {
+ addCriterion("ref_id not between", value1, value2, "refId");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestIsNull() {
+ addCriterion("latest is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestIsNotNull() {
+ addCriterion("latest is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestEqualTo(Boolean value) {
+ addCriterion("latest =", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestNotEqualTo(Boolean value) {
+ addCriterion("latest <>", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestGreaterThan(Boolean value) {
+ addCriterion("latest >", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("latest >=", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestLessThan(Boolean value) {
+ addCriterion("latest <", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestLessThanOrEqualTo(Boolean value) {
+ addCriterion("latest <=", value, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestIn(List values) {
+ addCriterion("latest in", values, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestNotIn(List values) {
+ addCriterion("latest not in", values, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestBetween(Boolean value1, Boolean value2) {
+ addCriterion("latest between", value1, value2, "latest");
+ return (Criteria) this;
+ }
+
+ public Criteria andLatestNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("latest not between", value1, value2, "latest");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java
index e0dbe1fb89..04d5f5ed04 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java
@@ -2,33 +2,28 @@ package io.metersphere.load.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
-import org.springframework.data.relational.core.mapping.Table;
-
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "测试和文件的关联表")
-@Table("load_test_file")
@Data
public class LoadTestFile implements Serializable {
- private static final long serialVersionUID = 1L;
+ @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 64, message = "{load_test_file.test_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试ID", required = true, allowableValues = "range[1, 64]")
private String testId;
+ @Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 64, message = "{load_test_file.file_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "文件ID", required = true, allowableValues = "range[1, 64]")
private String fileId;
-
- @ApiModelProperty(name = "文件排序", required = true, dataType = "Integer")
+ @Schema(title = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
+ @NotBlank(message = "{load_test_file.sort.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 10, message = "{load_test_file.sort.length_range}", groups = {Created.class, Updated.class})
private Integer sort;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java
new file mode 100644
index 0000000000..4244a9f2b7
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java
@@ -0,0 +1,400 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestFileExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestFileExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andTestIdIsNull() {
+ addCriterion("test_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIsNotNull() {
+ addCriterion("test_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdEqualTo(String value) {
+ addCriterion("test_id =", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotEqualTo(String value) {
+ addCriterion("test_id <>", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThan(String value) {
+ addCriterion("test_id >", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_id >=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThan(String value) {
+ addCriterion("test_id <", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThanOrEqualTo(String value) {
+ addCriterion("test_id <=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLike(String value) {
+ addCriterion("test_id like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotLike(String value) {
+ addCriterion("test_id not like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIn(List values) {
+ addCriterion("test_id in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotIn(List values) {
+ addCriterion("test_id not in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdBetween(String value1, String value2) {
+ addCriterion("test_id between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotBetween(String value1, String value2) {
+ addCriterion("test_id not between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIsNull() {
+ addCriterion("file_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIsNotNull() {
+ addCriterion("file_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdEqualTo(String value) {
+ addCriterion("file_id =", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotEqualTo(String value) {
+ addCriterion("file_id <>", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThan(String value) {
+ addCriterion("file_id >", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThanOrEqualTo(String value) {
+ addCriterion("file_id >=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThan(String value) {
+ addCriterion("file_id <", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThanOrEqualTo(String value) {
+ addCriterion("file_id <=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLike(String value) {
+ addCriterion("file_id like", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotLike(String value) {
+ addCriterion("file_id not like", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIn(List values) {
+ addCriterion("file_id in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotIn(List values) {
+ addCriterion("file_id not in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdBetween(String value1, String value2) {
+ addCriterion("file_id between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotBetween(String value1, String value2) {
+ addCriterion("file_id not between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNull() {
+ addCriterion("sort is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNotNull() {
+ addCriterion("sort is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortEqualTo(Integer value) {
+ addCriterion("sort =", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotEqualTo(Integer value) {
+ addCriterion("sort <>", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThan(Integer value) {
+ addCriterion("sort >", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThanOrEqualTo(Integer value) {
+ addCriterion("sort >=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThan(Integer value) {
+ addCriterion("sort <", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThanOrEqualTo(Integer value) {
+ addCriterion("sort <=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIn(List values) {
+ addCriterion("sort in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotIn(List values) {
+ addCriterion("sort not in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortBetween(Integer value1, Integer value2) {
+ addCriterion("sort between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotBetween(Integer value1, Integer value2) {
+ addCriterion("sort not between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollow.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollow.java
index 91d16026f8..1c58c6aba5 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollow.java
@@ -2,29 +2,23 @@ package io.metersphere.load.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
-import org.springframework.data.relational.core.mapping.Table;
-
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "性能用例关注人")
-@Table("load_test_follow")
@Data
public class LoadTestFollow implements Serializable {
- private static final long serialVersionUID = 1L;
+ @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_follow.test_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test_follow.test_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_follow.test_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试ID", required = true, allowableValues = "range[1, 50]")
private String testId;
+ @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_follow.follow_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_follow.follow_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "关注人ID", required = true, allowableValues = "range[1, 50]")
private String followId;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowExample.java
new file mode 100644
index 0000000000..0034341ef7
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowExample.java
@@ -0,0 +1,340 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestFollowExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestFollowExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andTestIdIsNull() {
+ addCriterion("test_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIsNotNull() {
+ addCriterion("test_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdEqualTo(String value) {
+ addCriterion("test_id =", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotEqualTo(String value) {
+ addCriterion("test_id <>", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThan(String value) {
+ addCriterion("test_id >", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_id >=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThan(String value) {
+ addCriterion("test_id <", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThanOrEqualTo(String value) {
+ addCriterion("test_id <=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLike(String value) {
+ addCriterion("test_id like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotLike(String value) {
+ addCriterion("test_id not like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIn(List values) {
+ addCriterion("test_id in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotIn(List values) {
+ addCriterion("test_id not in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdBetween(String value1, String value2) {
+ addCriterion("test_id between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotBetween(String value1, String value2) {
+ addCriterion("test_id not between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdIsNull() {
+ addCriterion("follow_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdIsNotNull() {
+ addCriterion("follow_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdEqualTo(String value) {
+ addCriterion("follow_id =", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdNotEqualTo(String value) {
+ addCriterion("follow_id <>", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdGreaterThan(String value) {
+ addCriterion("follow_id >", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdGreaterThanOrEqualTo(String value) {
+ addCriterion("follow_id >=", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdLessThan(String value) {
+ addCriterion("follow_id <", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdLessThanOrEqualTo(String value) {
+ addCriterion("follow_id <=", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdLike(String value) {
+ addCriterion("follow_id like", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdNotLike(String value) {
+ addCriterion("follow_id not like", value, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdIn(List values) {
+ addCriterion("follow_id in", values, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdNotIn(List values) {
+ addCriterion("follow_id not in", values, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdBetween(String value1, String value2) {
+ addCriterion("follow_id between", value1, value2, "followId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFollowIdNotBetween(String value1, String value2) {
+ addCriterion("follow_id not between", value1, value2, "followId");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java
index 38be48dfba..f8b8cd45a1 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java
@@ -1,110 +1,94 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "性能报告")
-@Table("load_test_report")
@Data
public class LoadTestReport implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @NotBlank(message = "{load_test_report.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report.id.length_range}", groups = {Created.class, Updated.class})
private String id;
-
- @Size(min = 1, max = 50, message = "{load_test_report.test_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.test_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试ID", required = true, allowableValues="range[1, 50]")
- private String testId;
-
- @Size(min = 1, max = 64, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告名称", required = true, allowableValues="range[1, 64]")
- private String name;
-
-
- @ApiModelProperty(name = "报告描述", required = false, allowableValues="range[1, 500]")
- private String description;
-
-
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
- private Long createTime;
-
-
- @ApiModelProperty(name = "更新时间", required = true, dataType = "Long")
- private Long updateTime;
-
- @Size(min = 1, max = 64, message = "{load_test_report.status.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "状态: Starting, Running, Error,Completed etc.", required = true, allowableValues="range[1, 64]")
- private String status;
-
- @Size(min = 1, max = 64, message = "{load_test_report.create_user.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人(执行人)ID", required = true, allowableValues="range[1, 64]")
- private String createUser;
-
- @Size(min = 1, max = 64, message = "{load_test_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.trigger_mode.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "触发方式", required = true, allowableValues="range[1, 64]")
- private String triggerMode;
-
-
- @ApiModelProperty(name = "最大并发数", required = false, allowableValues="range[1, 10]")
- private String maxUsers;
-
-
- @ApiModelProperty(name = "平均响应时间", required = false, allowableValues="range[1, 10]")
- private String avgResponseTime;
-
-
- @ApiModelProperty(name = "每秒事务数", required = false, allowableValues="range[1, 10]")
- private String tps;
-
- @Size(min = 1, max = 50, message = "{load_test_report.project_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "项目ID", required = true, allowableValues="range[1, 50]")
- private String projectId;
-
- @Size(min = 1, max = 64, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试名称", required = true, allowableValues="range[1, 64]")
- private String testName;
-
- @Size(min = 1, max = 50, message = "{load_test_report.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.test_resource_pool_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源池ID", required = true, allowableValues="range[1, 50]")
- private String testResourcePoolId;
-
-
- @ApiModelProperty(name = "测试开始时间", required = false, dataType = "Long")
- private Long testStartTime;
-
-
- @ApiModelProperty(name = "测试结束时间", required = false, dataType = "Long")
- private Long testEndTime;
-
-
- @ApiModelProperty(name = "执行时长", required = false, dataType = "Long")
- private Long testDuration;
-
- @Size(min = 1, max = 50, message = "{load_test_report.version_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report.version_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "版本ID", required = true, allowableValues="range[1, 50]")
- private String versionId;
-
-
- @ApiModelProperty(name = "关联的测试计划报告ID(可以为空)", required = false, allowableValues="range[1, 50]")
- private String relevanceTestPlanReportId;
-
+ @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report.test_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report.test_id.length_range}", groups = {Created.class, Updated.class})
+ private String testId;
+
+ @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_report.name.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class})
+ private String name;
+
+ @Schema(title = "报告描述")
+ private String description;
+
+ @Schema(title = "创建时间")
+ private Long createTime;
+
+ @Schema(title = "更新时间")
+ private Long updateTime;
+
+ @Schema(title = "状态: Starting, Running, Error,Completed etc.", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_report.status.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{load_test_report.status.length_range}", groups = {Created.class, Updated.class})
+ private String status;
+
+ @Schema(title = "创建人(执行人)ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_report.create_user.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{load_test_report.create_user.length_range}", groups = {Created.class, Updated.class})
+ private String createUser;
+
+ @Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_report.trigger_mode.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{load_test_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
+ private String triggerMode;
+
+ @Schema(title = "最大并发数")
+ private String maxUsers;
+
+ @Schema(title = "平均响应时间")
+ private String avgResponseTime;
+
+ @Schema(title = "每秒事务数")
+ private String tps;
+
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report.project_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report.project_id.length_range}", groups = {Created.class, Updated.class})
+ private String projectId;
+
+ @Schema(title = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class})
+ private String testName;
+
+ @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report.test_resource_pool_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
+ private String testResourcePoolId;
+
+ @Schema(title = "测试开始时间")
+ private Long testStartTime;
+
+ @Schema(title = "测试结束时间")
+ private Long testEndTime;
+
+ @Schema(title = "执行时长")
+ private Long testDuration;
+
+ @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report.version_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report.version_id.length_range}", groups = {Created.class, Updated.class})
+ private String versionId;
+
+ @Schema(title = "关联的测试计划报告ID(可以为空)")
+ private String relevanceTestPlanReportId;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java
index efd5cd283a..eef4fbcaa6 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java
@@ -1,42 +1,31 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
+import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
+import jakarta.validation.constraints.Size;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "性能报告大字段")
-@Table("load_test_report_blob")
@Data
-@EqualsAndHashCode(callSuper=false)
public class LoadTestReportBlob implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
@NotBlank(message = "{load_test_report_blob.report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues = "range[1, 50]")
+ @Size(min = 1, max = 50, message = "{load_test_report_blob.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
-
- @ApiModelProperty(name = "压力配置", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "压力配置")
private byte[] loadConfiguration;
-
- @ApiModelProperty(name = "JMX内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "JMX内容")
private byte[] jmxContent;
-
- @ApiModelProperty(name = "高级配置", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "高级配置")
private byte[] advancedConfiguration;
-
- @ApiModelProperty(name = "环境信息 (JSON format)", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "环境信息 (JSON format)")
private byte[] envInfo;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java
new file mode 100644
index 0000000000..f1c76047f7
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java
@@ -0,0 +1,270 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportBlobExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportBlobExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java
new file mode 100644
index 0000000000..8c853e8692
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java
@@ -0,0 +1,1550 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIsNull() {
+ addCriterion("test_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIsNotNull() {
+ addCriterion("test_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdEqualTo(String value) {
+ addCriterion("test_id =", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotEqualTo(String value) {
+ addCriterion("test_id <>", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThan(String value) {
+ addCriterion("test_id >", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_id >=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThan(String value) {
+ addCriterion("test_id <", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLessThanOrEqualTo(String value) {
+ addCriterion("test_id <=", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdLike(String value) {
+ addCriterion("test_id like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotLike(String value) {
+ addCriterion("test_id not like", value, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdIn(List values) {
+ addCriterion("test_id in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotIn(List values) {
+ addCriterion("test_id not in", values, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdBetween(String value1, String value2) {
+ addCriterion("test_id between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestIdNotBetween(String value1, String value2) {
+ addCriterion("test_id not between", value1, value2, "testId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNull() {
+ addCriterion("`name` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNotNull() {
+ addCriterion("`name` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameEqualTo(String value) {
+ addCriterion("`name` =", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotEqualTo(String value) {
+ addCriterion("`name` <>", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThan(String value) {
+ addCriterion("`name` >", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThanOrEqualTo(String value) {
+ addCriterion("`name` >=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThan(String value) {
+ addCriterion("`name` <", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThanOrEqualTo(String value) {
+ addCriterion("`name` <=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLike(String value) {
+ addCriterion("`name` like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotLike(String value) {
+ addCriterion("`name` not like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIn(List values) {
+ addCriterion("`name` in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotIn(List values) {
+ addCriterion("`name` not in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameBetween(String value1, String value2) {
+ addCriterion("`name` between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotBetween(String value1, String value2) {
+ addCriterion("`name` not between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNull() {
+ addCriterion("description is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNotNull() {
+ addCriterion("description is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionEqualTo(String value) {
+ addCriterion("description =", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotEqualTo(String value) {
+ addCriterion("description <>", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThan(String value) {
+ addCriterion("description >", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
+ addCriterion("description >=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThan(String value) {
+ addCriterion("description <", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThanOrEqualTo(String value) {
+ addCriterion("description <=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLike(String value) {
+ addCriterion("description like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotLike(String value) {
+ addCriterion("description not like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIn(List values) {
+ addCriterion("description in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotIn(List values) {
+ addCriterion("description not in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionBetween(String value1, String value2) {
+ addCriterion("description between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotBetween(String value1, String value2) {
+ addCriterion("description not between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Long value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Long value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Long value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Long value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Long value1, Long value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(Long value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(Long value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(Long value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(Long value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(Long value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(Long value1, Long value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(Long value1, Long value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNull() {
+ addCriterion("`status` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNotNull() {
+ addCriterion("`status` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusEqualTo(String value) {
+ addCriterion("`status` =", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotEqualTo(String value) {
+ addCriterion("`status` <>", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThan(String value) {
+ addCriterion("`status` >", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThanOrEqualTo(String value) {
+ addCriterion("`status` >=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThan(String value) {
+ addCriterion("`status` <", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThanOrEqualTo(String value) {
+ addCriterion("`status` <=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLike(String value) {
+ addCriterion("`status` like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotLike(String value) {
+ addCriterion("`status` not like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIn(List values) {
+ addCriterion("`status` in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotIn(List values) {
+ addCriterion("`status` not in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusBetween(String value1, String value2) {
+ addCriterion("`status` between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotBetween(String value1, String value2) {
+ addCriterion("`status` not between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNull() {
+ addCriterion("create_user is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNotNull() {
+ addCriterion("create_user is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserEqualTo(String value) {
+ addCriterion("create_user =", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotEqualTo(String value) {
+ addCriterion("create_user <>", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThan(String value) {
+ addCriterion("create_user >", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
+ addCriterion("create_user >=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThan(String value) {
+ addCriterion("create_user <", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThanOrEqualTo(String value) {
+ addCriterion("create_user <=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLike(String value) {
+ addCriterion("create_user like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotLike(String value) {
+ addCriterion("create_user not like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIn(List values) {
+ addCriterion("create_user in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotIn(List values) {
+ addCriterion("create_user not in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserBetween(String value1, String value2) {
+ addCriterion("create_user between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotBetween(String value1, String value2) {
+ addCriterion("create_user not between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeIsNull() {
+ addCriterion("trigger_mode is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeIsNotNull() {
+ addCriterion("trigger_mode is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeEqualTo(String value) {
+ addCriterion("trigger_mode =", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeNotEqualTo(String value) {
+ addCriterion("trigger_mode <>", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeGreaterThan(String value) {
+ addCriterion("trigger_mode >", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeGreaterThanOrEqualTo(String value) {
+ addCriterion("trigger_mode >=", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeLessThan(String value) {
+ addCriterion("trigger_mode <", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeLessThanOrEqualTo(String value) {
+ addCriterion("trigger_mode <=", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeLike(String value) {
+ addCriterion("trigger_mode like", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeNotLike(String value) {
+ addCriterion("trigger_mode not like", value, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeIn(List values) {
+ addCriterion("trigger_mode in", values, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeNotIn(List values) {
+ addCriterion("trigger_mode not in", values, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeBetween(String value1, String value2) {
+ addCriterion("trigger_mode between", value1, value2, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTriggerModeNotBetween(String value1, String value2) {
+ addCriterion("trigger_mode not between", value1, value2, "triggerMode");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersIsNull() {
+ addCriterion("max_users is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersIsNotNull() {
+ addCriterion("max_users is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersEqualTo(String value) {
+ addCriterion("max_users =", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersNotEqualTo(String value) {
+ addCriterion("max_users <>", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersGreaterThan(String value) {
+ addCriterion("max_users >", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersGreaterThanOrEqualTo(String value) {
+ addCriterion("max_users >=", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersLessThan(String value) {
+ addCriterion("max_users <", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersLessThanOrEqualTo(String value) {
+ addCriterion("max_users <=", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersLike(String value) {
+ addCriterion("max_users like", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersNotLike(String value) {
+ addCriterion("max_users not like", value, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersIn(List values) {
+ addCriterion("max_users in", values, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersNotIn(List values) {
+ addCriterion("max_users not in", values, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersBetween(String value1, String value2) {
+ addCriterion("max_users between", value1, value2, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxUsersNotBetween(String value1, String value2) {
+ addCriterion("max_users not between", value1, value2, "maxUsers");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeIsNull() {
+ addCriterion("avg_response_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeIsNotNull() {
+ addCriterion("avg_response_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeEqualTo(String value) {
+ addCriterion("avg_response_time =", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeNotEqualTo(String value) {
+ addCriterion("avg_response_time <>", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeGreaterThan(String value) {
+ addCriterion("avg_response_time >", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeGreaterThanOrEqualTo(String value) {
+ addCriterion("avg_response_time >=", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeLessThan(String value) {
+ addCriterion("avg_response_time <", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeLessThanOrEqualTo(String value) {
+ addCriterion("avg_response_time <=", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeLike(String value) {
+ addCriterion("avg_response_time like", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeNotLike(String value) {
+ addCriterion("avg_response_time not like", value, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeIn(List values) {
+ addCriterion("avg_response_time in", values, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeNotIn(List values) {
+ addCriterion("avg_response_time not in", values, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeBetween(String value1, String value2) {
+ addCriterion("avg_response_time between", value1, value2, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvgResponseTimeNotBetween(String value1, String value2) {
+ addCriterion("avg_response_time not between", value1, value2, "avgResponseTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsIsNull() {
+ addCriterion("tps is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsIsNotNull() {
+ addCriterion("tps is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsEqualTo(String value) {
+ addCriterion("tps =", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsNotEqualTo(String value) {
+ addCriterion("tps <>", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsGreaterThan(String value) {
+ addCriterion("tps >", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsGreaterThanOrEqualTo(String value) {
+ addCriterion("tps >=", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsLessThan(String value) {
+ addCriterion("tps <", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsLessThanOrEqualTo(String value) {
+ addCriterion("tps <=", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsLike(String value) {
+ addCriterion("tps like", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsNotLike(String value) {
+ addCriterion("tps not like", value, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsIn(List values) {
+ addCriterion("tps in", values, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsNotIn(List values) {
+ addCriterion("tps not in", values, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsBetween(String value1, String value2) {
+ addCriterion("tps between", value1, value2, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andTpsNotBetween(String value1, String value2) {
+ addCriterion("tps not between", value1, value2, "tps");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNull() {
+ addCriterion("project_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNotNull() {
+ addCriterion("project_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdEqualTo(String value) {
+ addCriterion("project_id =", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotEqualTo(String value) {
+ addCriterion("project_id <>", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThan(String value) {
+ addCriterion("project_id >", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
+ addCriterion("project_id >=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThan(String value) {
+ addCriterion("project_id <", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThanOrEqualTo(String value) {
+ addCriterion("project_id <=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLike(String value) {
+ addCriterion("project_id like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotLike(String value) {
+ addCriterion("project_id not like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIn(List values) {
+ addCriterion("project_id in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotIn(List values) {
+ addCriterion("project_id not in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdBetween(String value1, String value2) {
+ addCriterion("project_id between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotBetween(String value1, String value2) {
+ addCriterion("project_id not between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameIsNull() {
+ addCriterion("test_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameIsNotNull() {
+ addCriterion("test_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameEqualTo(String value) {
+ addCriterion("test_name =", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameNotEqualTo(String value) {
+ addCriterion("test_name <>", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameGreaterThan(String value) {
+ addCriterion("test_name >", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameGreaterThanOrEqualTo(String value) {
+ addCriterion("test_name >=", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameLessThan(String value) {
+ addCriterion("test_name <", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameLessThanOrEqualTo(String value) {
+ addCriterion("test_name <=", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameLike(String value) {
+ addCriterion("test_name like", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameNotLike(String value) {
+ addCriterion("test_name not like", value, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameIn(List values) {
+ addCriterion("test_name in", values, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameNotIn(List values) {
+ addCriterion("test_name not in", values, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameBetween(String value1, String value2) {
+ addCriterion("test_name between", value1, value2, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestNameNotBetween(String value1, String value2) {
+ addCriterion("test_name not between", value1, value2, "testName");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIsNull() {
+ addCriterion("test_resource_pool_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIsNotNull() {
+ addCriterion("test_resource_pool_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdEqualTo(String value) {
+ addCriterion("test_resource_pool_id =", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotEqualTo(String value) {
+ addCriterion("test_resource_pool_id <>", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdGreaterThan(String value) {
+ addCriterion("test_resource_pool_id >", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdGreaterThanOrEqualTo(String value) {
+ addCriterion("test_resource_pool_id >=", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLessThan(String value) {
+ addCriterion("test_resource_pool_id <", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLessThanOrEqualTo(String value) {
+ addCriterion("test_resource_pool_id <=", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdLike(String value) {
+ addCriterion("test_resource_pool_id like", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotLike(String value) {
+ addCriterion("test_resource_pool_id not like", value, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdIn(List values) {
+ addCriterion("test_resource_pool_id in", values, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotIn(List values) {
+ addCriterion("test_resource_pool_id not in", values, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdBetween(String value1, String value2) {
+ addCriterion("test_resource_pool_id between", value1, value2, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestResourcePoolIdNotBetween(String value1, String value2) {
+ addCriterion("test_resource_pool_id not between", value1, value2, "testResourcePoolId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeIsNull() {
+ addCriterion("test_start_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeIsNotNull() {
+ addCriterion("test_start_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeEqualTo(Long value) {
+ addCriterion("test_start_time =", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeNotEqualTo(Long value) {
+ addCriterion("test_start_time <>", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeGreaterThan(Long value) {
+ addCriterion("test_start_time >", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("test_start_time >=", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeLessThan(Long value) {
+ addCriterion("test_start_time <", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeLessThanOrEqualTo(Long value) {
+ addCriterion("test_start_time <=", value, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeIn(List values) {
+ addCriterion("test_start_time in", values, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeNotIn(List values) {
+ addCriterion("test_start_time not in", values, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeBetween(Long value1, Long value2) {
+ addCriterion("test_start_time between", value1, value2, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestStartTimeNotBetween(Long value1, Long value2) {
+ addCriterion("test_start_time not between", value1, value2, "testStartTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeIsNull() {
+ addCriterion("test_end_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeIsNotNull() {
+ addCriterion("test_end_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeEqualTo(Long value) {
+ addCriterion("test_end_time =", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeNotEqualTo(Long value) {
+ addCriterion("test_end_time <>", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeGreaterThan(Long value) {
+ addCriterion("test_end_time >", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("test_end_time >=", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeLessThan(Long value) {
+ addCriterion("test_end_time <", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeLessThanOrEqualTo(Long value) {
+ addCriterion("test_end_time <=", value, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeIn(List values) {
+ addCriterion("test_end_time in", values, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeNotIn(List values) {
+ addCriterion("test_end_time not in", values, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeBetween(Long value1, Long value2) {
+ addCriterion("test_end_time between", value1, value2, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestEndTimeNotBetween(Long value1, Long value2) {
+ addCriterion("test_end_time not between", value1, value2, "testEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationIsNull() {
+ addCriterion("test_duration is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationIsNotNull() {
+ addCriterion("test_duration is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationEqualTo(Long value) {
+ addCriterion("test_duration =", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationNotEqualTo(Long value) {
+ addCriterion("test_duration <>", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationGreaterThan(Long value) {
+ addCriterion("test_duration >", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationGreaterThanOrEqualTo(Long value) {
+ addCriterion("test_duration >=", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationLessThan(Long value) {
+ addCriterion("test_duration <", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationLessThanOrEqualTo(Long value) {
+ addCriterion("test_duration <=", value, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationIn(List values) {
+ addCriterion("test_duration in", values, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationNotIn(List values) {
+ addCriterion("test_duration not in", values, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationBetween(Long value1, Long value2) {
+ addCriterion("test_duration between", value1, value2, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andTestDurationNotBetween(Long value1, Long value2) {
+ addCriterion("test_duration not between", value1, value2, "testDuration");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIsNull() {
+ addCriterion("version_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIsNotNull() {
+ addCriterion("version_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdEqualTo(String value) {
+ addCriterion("version_id =", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotEqualTo(String value) {
+ addCriterion("version_id <>", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdGreaterThan(String value) {
+ addCriterion("version_id >", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdGreaterThanOrEqualTo(String value) {
+ addCriterion("version_id >=", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLessThan(String value) {
+ addCriterion("version_id <", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLessThanOrEqualTo(String value) {
+ addCriterion("version_id <=", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdLike(String value) {
+ addCriterion("version_id like", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotLike(String value) {
+ addCriterion("version_id not like", value, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdIn(List values) {
+ addCriterion("version_id in", values, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotIn(List values) {
+ addCriterion("version_id not in", values, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdBetween(String value1, String value2) {
+ addCriterion("version_id between", value1, value2, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIdNotBetween(String value1, String value2) {
+ addCriterion("version_id not between", value1, value2, "versionId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdIsNull() {
+ addCriterion("relevance_test_plan_report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdIsNotNull() {
+ addCriterion("relevance_test_plan_report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdEqualTo(String value) {
+ addCriterion("relevance_test_plan_report_id =", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdNotEqualTo(String value) {
+ addCriterion("relevance_test_plan_report_id <>", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdGreaterThan(String value) {
+ addCriterion("relevance_test_plan_report_id >", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("relevance_test_plan_report_id >=", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdLessThan(String value) {
+ addCriterion("relevance_test_plan_report_id <", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdLessThanOrEqualTo(String value) {
+ addCriterion("relevance_test_plan_report_id <=", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdLike(String value) {
+ addCriterion("relevance_test_plan_report_id like", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdNotLike(String value) {
+ addCriterion("relevance_test_plan_report_id not like", value, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdIn(List values) {
+ addCriterion("relevance_test_plan_report_id in", values, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdNotIn(List values) {
+ addCriterion("relevance_test_plan_report_id not in", values, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdBetween(String value1, String value2) {
+ addCriterion("relevance_test_plan_report_id between", value1, value2, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRelevanceTestPlanReportIdNotBetween(String value1, String value2) {
+ addCriterion("relevance_test_plan_report_id not between", value1, value2, "relevanceTestPlanReportId");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java
index 54b60ff499..3e45c312f0 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java
@@ -1,34 +1,29 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "测试报告文件关联表")
-@Table("load_test_report_file")
@Data
public class LoadTestReportFile implements Serializable {
- private static final long serialVersionUID = 1L;
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_file.report_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test_report_file.report_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report_file.report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues="range[1, 50]")
private String reportId;
-
- @Size(min = 1, max = 50, message = "{load_test_report_file.file_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report_file.file_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "文件ID", required = true, allowableValues="range[1, 50]")
- private String fileId;
-
-
- @ApiModelProperty(name = "文件排序", required = true, dataType = "Integer")
- private Integer sort;
-
+ @Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_file.file_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report_file.file_id.length_range}", groups = {Created.class, Updated.class})
+ private String fileId;
+
+ @Schema(title = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
+ @NotBlank(message = "{load_test_report_file.sort.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 10, message = "{load_test_report_file.sort.length_range}", groups = {Created.class, Updated.class})
+ private Integer sort;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java
new file mode 100644
index 0000000000..d337cd5cc8
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java
@@ -0,0 +1,400 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportFileExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportFileExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIsNull() {
+ addCriterion("file_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIsNotNull() {
+ addCriterion("file_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdEqualTo(String value) {
+ addCriterion("file_id =", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotEqualTo(String value) {
+ addCriterion("file_id <>", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThan(String value) {
+ addCriterion("file_id >", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThanOrEqualTo(String value) {
+ addCriterion("file_id >=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThan(String value) {
+ addCriterion("file_id <", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThanOrEqualTo(String value) {
+ addCriterion("file_id <=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLike(String value) {
+ addCriterion("file_id like", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotLike(String value) {
+ addCriterion("file_id not like", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIn(List values) {
+ addCriterion("file_id in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotIn(List values) {
+ addCriterion("file_id not in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdBetween(String value1, String value2) {
+ addCriterion("file_id between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotBetween(String value1, String value2) {
+ addCriterion("file_id not between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNull() {
+ addCriterion("sort is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNotNull() {
+ addCriterion("sort is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortEqualTo(Integer value) {
+ addCriterion("sort =", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotEqualTo(Integer value) {
+ addCriterion("sort <>", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThan(Integer value) {
+ addCriterion("sort >", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThanOrEqualTo(Integer value) {
+ addCriterion("sort >=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThan(Integer value) {
+ addCriterion("sort <", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThanOrEqualTo(Integer value) {
+ addCriterion("sort <=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIn(List values) {
+ addCriterion("sort in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotIn(List values) {
+ addCriterion("sort not in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortBetween(Integer value1, Integer value2) {
+ addCriterion("sort between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotBetween(Integer value1, Integer value2) {
+ addCriterion("sort not between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java
index 61895cac95..7c283e4ad7 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java
@@ -1,43 +1,35 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "报告日志jmeter.log")
-@Table("load_test_report_log")
@Data
public class LoadTestReportLog implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "主键无实际意义", required = true, allowableValues="range[1, 50]")
+ @Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report_log.id.length_range}", groups = {Created.class, Updated.class})
private String id;
-
- @Size(min = 1, max = 50, message = "{load_test_report_log.report_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report_log.report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues="range[1, 50]")
- private String reportId;
-
- @Size(min = 1, max = 50, message = "{load_test_report_log.resource_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report_log.resource_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "资源节点ID", required = true, allowableValues="range[1, 50]")
- private String resourceId;
-
-
- @ApiModelProperty(name = "jmeter.log 内容", required = false, allowableValues="range[1, ]")
- private byte[] content;
-
-
- @ApiModelProperty(name = "日志内容分段", required = false, dataType = "Long")
- private Long part;
-
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_log.report_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report_log.report_id.length_range}", groups = {Created.class, Updated.class})
+ private String reportId;
+
+ @Schema(title = "资源节点ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_log.resource_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report_log.resource_id.length_range}", groups = {Created.class, Updated.class})
+ private String resourceId;
+
+ @Schema(title = "日志内容分段")
+ private Long part;
+
+ @Schema(title = "jmeter.log 内容")
+ private byte[] content;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java
new file mode 100644
index 0000000000..2528b169a3
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java
@@ -0,0 +1,470 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportLogExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportLogExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdIsNull() {
+ addCriterion("resource_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdIsNotNull() {
+ addCriterion("resource_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdEqualTo(String value) {
+ addCriterion("resource_id =", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdNotEqualTo(String value) {
+ addCriterion("resource_id <>", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdGreaterThan(String value) {
+ addCriterion("resource_id >", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdGreaterThanOrEqualTo(String value) {
+ addCriterion("resource_id >=", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdLessThan(String value) {
+ addCriterion("resource_id <", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdLessThanOrEqualTo(String value) {
+ addCriterion("resource_id <=", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdLike(String value) {
+ addCriterion("resource_id like", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdNotLike(String value) {
+ addCriterion("resource_id not like", value, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdIn(List values) {
+ addCriterion("resource_id in", values, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdNotIn(List values) {
+ addCriterion("resource_id not in", values, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdBetween(String value1, String value2) {
+ addCriterion("resource_id between", value1, value2, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIdNotBetween(String value1, String value2) {
+ addCriterion("resource_id not between", value1, value2, "resourceId");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartIsNull() {
+ addCriterion("`part` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartIsNotNull() {
+ addCriterion("`part` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartEqualTo(Long value) {
+ addCriterion("`part` =", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartNotEqualTo(Long value) {
+ addCriterion("`part` <>", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartGreaterThan(Long value) {
+ addCriterion("`part` >", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartGreaterThanOrEqualTo(Long value) {
+ addCriterion("`part` >=", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartLessThan(Long value) {
+ addCriterion("`part` <", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartLessThanOrEqualTo(Long value) {
+ addCriterion("`part` <=", value, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartIn(List values) {
+ addCriterion("`part` in", values, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartNotIn(List values) {
+ addCriterion("`part` not in", values, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartBetween(Long value1, Long value2) {
+ addCriterion("`part` between", value1, value2, "part");
+ return (Criteria) this;
+ }
+
+ public Criteria andPartNotBetween(Long value1, Long value2) {
+ addCriterion("`part` not between", value1, value2, "part");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java
index 44e19df7f2..063630d705 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java
@@ -1,39 +1,30 @@
package io.metersphere.load.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
+import java.io.Serializable;
import lombok.Data;
-import java.io.Serializable;
-
-@ApiModel(value = "报告结果")
-@Table("load_test_report_result")
@Data
public class LoadTestReportResult implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "主键无实际意义", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{load_test_report_result.id.length_range}", groups = {Created.class, Updated.class})
private String id;
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{load_test_report_result.report_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{load_test_report_result.report_id.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{load_test_report_result.report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues = "range[1, 50]")
private String reportId;
-
- @ApiModelProperty(name = "报告项目key", required = false, allowableValues = "range[1, 64]")
+ @Schema(title = "报告项目key")
private String reportKey;
-
- @ApiModelProperty(name = "报告项目内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "报告项目内容")
private byte[] reportValue;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java
new file mode 100644
index 0000000000..d99e6c260f
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java
@@ -0,0 +1,410 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportResultExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportResultExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNull() {
+ addCriterion("report_key is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNotNull() {
+ addCriterion("report_key is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyEqualTo(String value) {
+ addCriterion("report_key =", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotEqualTo(String value) {
+ addCriterion("report_key <>", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThan(String value) {
+ addCriterion("report_key >", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThanOrEqualTo(String value) {
+ addCriterion("report_key >=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThan(String value) {
+ addCriterion("report_key <", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThanOrEqualTo(String value) {
+ addCriterion("report_key <=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLike(String value) {
+ addCriterion("report_key like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotLike(String value) {
+ addCriterion("report_key not like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIn(List values) {
+ addCriterion("report_key in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotIn(List values) {
+ addCriterion("report_key not in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyBetween(String value1, String value2) {
+ addCriterion("report_key between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotBetween(String value1, String value2) {
+ addCriterion("report_key not between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java
index a3828100d7..f336d73deb 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java
@@ -1,32 +1,32 @@
package io.metersphere.load.domain;
+import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
-import lombok.Data;
-import org.springframework.data.relational.core.mapping.Table;
-
+import jakarta.validation.constraints.Size;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "部分报告结果")
-@Table("load_test_report_result_part")
@Data
public class LoadTestReportResultPart implements Serializable {
- private static final long serialVersionUID = 1L;
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
@NotBlank(message = "{load_test_report_result_part.report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues = "range[1, 50]")
+ @Size(min = 1, max = 50, message = "{load_test_report_result_part.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
+ @Schema(title = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
@NotBlank(message = "{load_test_report_result_part.report_key.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告项目key", required = true, allowableValues = "range[1, 64]")
+ @Size(min = 1, max = 64, message = "{load_test_report_result_part.report_key.length_range}", groups = {Created.class, Updated.class})
private String reportKey;
+ @Schema(title = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
@NotBlank(message = "{load_test_report_result_part.resource_index.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "资源节点索引号", required = true, dataType = "Integer")
+ @Size(min = 1, max = 10, message = "{load_test_report_result_part.resource_index.length_range}", groups = {Created.class, Updated.class})
private Integer resourceIndex;
-
- @ApiModelProperty(name = "报告项目内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "报告项目内容")
private byte[] reportValue;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java
new file mode 100644
index 0000000000..f3b8a685b5
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java
@@ -0,0 +1,400 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportResultPartExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportResultPartExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNull() {
+ addCriterion("report_key is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNotNull() {
+ addCriterion("report_key is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyEqualTo(String value) {
+ addCriterion("report_key =", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotEqualTo(String value) {
+ addCriterion("report_key <>", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThan(String value) {
+ addCriterion("report_key >", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThanOrEqualTo(String value) {
+ addCriterion("report_key >=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThan(String value) {
+ addCriterion("report_key <", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThanOrEqualTo(String value) {
+ addCriterion("report_key <=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLike(String value) {
+ addCriterion("report_key like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotLike(String value) {
+ addCriterion("report_key not like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIn(List values) {
+ addCriterion("report_key in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotIn(List values) {
+ addCriterion("report_key not in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyBetween(String value1, String value2) {
+ addCriterion("report_key between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotBetween(String value1, String value2) {
+ addCriterion("report_key not between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIsNull() {
+ addCriterion("resource_index is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIsNotNull() {
+ addCriterion("resource_index is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexEqualTo(Integer value) {
+ addCriterion("resource_index =", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotEqualTo(Integer value) {
+ addCriterion("resource_index <>", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexGreaterThan(Integer value) {
+ addCriterion("resource_index >", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexGreaterThanOrEqualTo(Integer value) {
+ addCriterion("resource_index >=", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexLessThan(Integer value) {
+ addCriterion("resource_index <", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexLessThanOrEqualTo(Integer value) {
+ addCriterion("resource_index <=", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIn(List values) {
+ addCriterion("resource_index in", values, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotIn(List values) {
+ addCriterion("resource_index not in", values, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexBetween(Integer value1, Integer value2) {
+ addCriterion("resource_index between", value1, value2, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotBetween(Integer value1, Integer value2) {
+ addCriterion("resource_index not between", value1, value2, "resourceIndex");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java
index b54e4ffd78..1232376d14 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java
@@ -1,42 +1,37 @@
package io.metersphere.load.domain;
+import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
-import lombok.Data;
-import org.springframework.data.relational.core.mapping.Table;
-
+import jakarta.validation.constraints.Size;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "即时报告结果")
-@Table("load_test_report_result_realtime")
@Data
public class LoadTestReportResultRealtime implements Serializable {
- private static final long serialVersionUID = 1L;
-
+ @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
@NotBlank(message = "{load_test_report_result_realtime.report_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告ID", required = true, allowableValues = "range[1, 50]")
+ @Size(min = 1, max = 50, message = "{load_test_report_result_realtime.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
-
+ @Schema(title = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
@NotBlank(message = "{load_test_report_result_realtime.report_key.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告项目key", required = true, allowableValues = "range[1, 64]")
+ @Size(min = 1, max = 64, message = "{load_test_report_result_realtime.report_key.length_range}", groups = {Created.class, Updated.class})
private String reportKey;
-
+ @Schema(title = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
@NotBlank(message = "{load_test_report_result_realtime.resource_index.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "资源节点索引号", required = true, dataType = "Integer")
+ @Size(min = 1, max = 10, message = "{load_test_report_result_realtime.resource_index.length_range}", groups = {Created.class, Updated.class})
private Integer resourceIndex;
-
+ @Schema(title = "报告项目内容排序", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
@NotBlank(message = "{load_test_report_result_realtime.sort.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "报告项目内容排序", required = true, dataType = "Integer")
+ @Size(min = 1, max = 10, message = "{load_test_report_result_realtime.sort.length_range}", groups = {Created.class, Updated.class})
private Integer sort;
-
- @ApiModelProperty(name = "报告项目内容", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "报告项目内容")
private byte[] reportValue;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java
new file mode 100644
index 0000000000..4980786360
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java
@@ -0,0 +1,460 @@
+package io.metersphere.load.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class LoadTestReportResultRealtimeExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public LoadTestReportResultRealtimeExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andReportIdIsNull() {
+ addCriterion("report_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIsNotNull() {
+ addCriterion("report_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdEqualTo(String value) {
+ addCriterion("report_id =", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotEqualTo(String value) {
+ addCriterion("report_id <>", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThan(String value) {
+ addCriterion("report_id >", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdGreaterThanOrEqualTo(String value) {
+ addCriterion("report_id >=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThan(String value) {
+ addCriterion("report_id <", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLessThanOrEqualTo(String value) {
+ addCriterion("report_id <=", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdLike(String value) {
+ addCriterion("report_id like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotLike(String value) {
+ addCriterion("report_id not like", value, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdIn(List values) {
+ addCriterion("report_id in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotIn(List values) {
+ addCriterion("report_id not in", values, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdBetween(String value1, String value2) {
+ addCriterion("report_id between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportIdNotBetween(String value1, String value2) {
+ addCriterion("report_id not between", value1, value2, "reportId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNull() {
+ addCriterion("report_key is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIsNotNull() {
+ addCriterion("report_key is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyEqualTo(String value) {
+ addCriterion("report_key =", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotEqualTo(String value) {
+ addCriterion("report_key <>", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThan(String value) {
+ addCriterion("report_key >", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyGreaterThanOrEqualTo(String value) {
+ addCriterion("report_key >=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThan(String value) {
+ addCriterion("report_key <", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLessThanOrEqualTo(String value) {
+ addCriterion("report_key <=", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyLike(String value) {
+ addCriterion("report_key like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotLike(String value) {
+ addCriterion("report_key not like", value, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyIn(List values) {
+ addCriterion("report_key in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotIn(List values) {
+ addCriterion("report_key not in", values, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyBetween(String value1, String value2) {
+ addCriterion("report_key between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andReportKeyNotBetween(String value1, String value2) {
+ addCriterion("report_key not between", value1, value2, "reportKey");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIsNull() {
+ addCriterion("resource_index is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIsNotNull() {
+ addCriterion("resource_index is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexEqualTo(Integer value) {
+ addCriterion("resource_index =", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotEqualTo(Integer value) {
+ addCriterion("resource_index <>", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexGreaterThan(Integer value) {
+ addCriterion("resource_index >", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexGreaterThanOrEqualTo(Integer value) {
+ addCriterion("resource_index >=", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexLessThan(Integer value) {
+ addCriterion("resource_index <", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexLessThanOrEqualTo(Integer value) {
+ addCriterion("resource_index <=", value, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexIn(List values) {
+ addCriterion("resource_index in", values, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotIn(List values) {
+ addCriterion("resource_index not in", values, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexBetween(Integer value1, Integer value2) {
+ addCriterion("resource_index between", value1, value2, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andResourceIndexNotBetween(Integer value1, Integer value2) {
+ addCriterion("resource_index not between", value1, value2, "resourceIndex");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNull() {
+ addCriterion("sort is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNotNull() {
+ addCriterion("sort is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortEqualTo(Integer value) {
+ addCriterion("sort =", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotEqualTo(Integer value) {
+ addCriterion("sort <>", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThan(Integer value) {
+ addCriterion("sort >", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThanOrEqualTo(Integer value) {
+ addCriterion("sort >=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThan(Integer value) {
+ addCriterion("sort <", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThanOrEqualTo(Integer value) {
+ addCriterion("sort <=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIn(List values) {
+ addCriterion("sort in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotIn(List values) {
+ addCriterion("sort not in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortBetween(Integer value1, Integer value2) {
+ addCriterion("sort between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotBetween(Integer value1, Integer value2) {
+ addCriterion("sort not between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java
new file mode 100644
index 0000000000..3e73f829f5
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java
@@ -0,0 +1,30 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestApi;
+import io.metersphere.load.domain.LoadTestApiExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestApiMapper {
+ long countByExample(LoadTestApiExample example);
+
+ int deleteByExample(LoadTestApiExample example);
+
+ int deleteByPrimaryKey(String id);
+
+ int insert(LoadTestApi record);
+
+ int insertSelective(LoadTestApi record);
+
+ List selectByExample(LoadTestApiExample example);
+
+ LoadTestApi selectByPrimaryKey(String id);
+
+ int updateByExampleSelective(@Param("record") LoadTestApi record, @Param("example") LoadTestApiExample example);
+
+ int updateByExample(@Param("record") LoadTestApi record, @Param("example") LoadTestApiExample example);
+
+ int updateByPrimaryKeySelective(LoadTestApi record);
+
+ int updateByPrimaryKey(LoadTestApi record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml
new file mode 100644
index 0000000000..fb7a8ba04d
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, api_id, load_test_id, env_id, `type`, api_version
+
+
+
+
+ delete from load_test_api
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ delete from load_test_api
+
+
+
+
+
+ insert into load_test_api (id, api_id, load_test_id,
+ env_id, `type`, api_version
+ )
+ values (#{id,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{loadTestId,jdbcType=VARCHAR},
+ #{envId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{apiVersion,jdbcType=INTEGER}
+ )
+
+
+ insert into load_test_api
+
+
+ id,
+
+
+ api_id,
+
+
+ load_test_id,
+
+
+ env_id,
+
+
+ `type`,
+
+
+ api_version,
+
+
+
+
+ #{id,jdbcType=VARCHAR},
+
+
+ #{apiId,jdbcType=VARCHAR},
+
+
+ #{loadTestId,jdbcType=VARCHAR},
+
+
+ #{envId,jdbcType=VARCHAR},
+
+
+ #{type,jdbcType=VARCHAR},
+
+
+ #{apiVersion,jdbcType=INTEGER},
+
+
+
+
+
+ update load_test_api
+
+
+ id = #{record.id,jdbcType=VARCHAR},
+
+
+ api_id = #{record.apiId,jdbcType=VARCHAR},
+
+
+ load_test_id = #{record.loadTestId,jdbcType=VARCHAR},
+
+
+ env_id = #{record.envId,jdbcType=VARCHAR},
+
+
+ `type` = #{record.type,jdbcType=VARCHAR},
+
+
+ api_version = #{record.apiVersion,jdbcType=INTEGER},
+
+
+
+
+
+
+
+ update load_test_api
+ set id = #{record.id,jdbcType=VARCHAR},
+ api_id = #{record.apiId,jdbcType=VARCHAR},
+ load_test_id = #{record.loadTestId,jdbcType=VARCHAR},
+ env_id = #{record.envId,jdbcType=VARCHAR},
+ `type` = #{record.type,jdbcType=VARCHAR},
+ api_version = #{record.apiVersion,jdbcType=INTEGER}
+
+
+
+
+
+ update load_test_api
+
+
+ api_id = #{apiId,jdbcType=VARCHAR},
+
+
+ load_test_id = #{loadTestId,jdbcType=VARCHAR},
+
+
+ env_id = #{envId,jdbcType=VARCHAR},
+
+
+ `type` = #{type,jdbcType=VARCHAR},
+
+
+ api_version = #{apiVersion,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_api
+ set api_id = #{apiId,jdbcType=VARCHAR},
+ load_test_id = #{loadTestId,jdbcType=VARCHAR},
+ env_id = #{envId,jdbcType=VARCHAR},
+ `type` = #{type,jdbcType=VARCHAR},
+ api_version = #{apiVersion,jdbcType=INTEGER}
+ where id = #{id,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java
new file mode 100644
index 0000000000..3f4057bcf3
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java
@@ -0,0 +1,34 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestBlob;
+import io.metersphere.load.domain.LoadTestBlobExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestBlobMapper {
+ long countByExample(LoadTestBlobExample example);
+
+ int deleteByExample(LoadTestBlobExample example);
+
+ int deleteByPrimaryKey(String testId);
+
+ int insert(LoadTestBlob record);
+
+ int insertSelective(LoadTestBlob record);
+
+ List selectByExampleWithBLOBs(LoadTestBlobExample example);
+
+ List selectByExample(LoadTestBlobExample example);
+
+ LoadTestBlob selectByPrimaryKey(String testId);
+
+ int updateByExampleSelective(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example);
+
+ int updateByExample(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example);
+
+ int updateByPrimaryKeySelective(LoadTestBlob record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestBlob record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml
new file mode 100644
index 0000000000..52484bb66f
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ test_id
+
+
+ load_configuration, advanced_configuration, env_info
+
+
+
+
+
+ delete from load_test_blob
+ where test_id = #{testId,jdbcType=VARCHAR}
+
+
+ delete from load_test_blob
+
+
+
+
+
+ insert into load_test_blob (test_id, load_configuration,
+ advanced_configuration, env_info
+ )
+ values (#{testId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY},
+ #{advancedConfiguration,jdbcType=LONGVARBINARY}, #{envInfo,jdbcType=LONGVARBINARY}
+ )
+
+
+ insert into load_test_blob
+
+
+ test_id,
+
+
+ load_configuration,
+
+
+ advanced_configuration,
+
+
+ env_info,
+
+
+
+
+ #{testId,jdbcType=VARCHAR},
+
+
+ #{loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ #{advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ #{envInfo,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_blob
+
+
+ test_id = #{record.testId,jdbcType=VARCHAR},
+
+
+ load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ env_info = #{record.envInfo,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_blob
+ set test_id = #{record.testId,jdbcType=VARCHAR},
+ load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
+ advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
+ env_info = #{record.envInfo,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_blob
+ set test_id = #{record.testId,jdbcType=VARCHAR}
+
+
+
+
+
+ update load_test_blob
+
+
+ load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ env_info = #{envInfo,jdbcType=LONGVARBINARY},
+
+
+ where test_id = #{testId,jdbcType=VARCHAR}
+
+
+ update load_test_blob
+ set load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
+ advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
+ env_info = #{envInfo,jdbcType=LONGVARBINARY}
+ where test_id = #{testId,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java
new file mode 100644
index 0000000000..5e3f60097f
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java
@@ -0,0 +1,22 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestFile;
+import io.metersphere.load.domain.LoadTestFileExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestFileMapper {
+ long countByExample(LoadTestFileExample example);
+
+ int deleteByExample(LoadTestFileExample example);
+
+ int insert(LoadTestFile record);
+
+ int insertSelective(LoadTestFile record);
+
+ List selectByExample(LoadTestFileExample example);
+
+ int updateByExampleSelective(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example);
+
+ int updateByExample(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml
new file mode 100644
index 0000000000..5276a006f3
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ test_id, file_id, sort
+
+
+
+ delete from load_test_file
+
+
+
+
+
+ insert into load_test_file (test_id, file_id, sort
+ )
+ values (#{testId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}
+ )
+
+
+ insert into load_test_file
+
+
+ test_id,
+
+
+ file_id,
+
+
+ sort,
+
+
+
+
+ #{testId,jdbcType=VARCHAR},
+
+
+ #{fileId,jdbcType=VARCHAR},
+
+
+ #{sort,jdbcType=INTEGER},
+
+
+
+
+
+ update load_test_file
+
+
+ test_id = #{record.testId,jdbcType=VARCHAR},
+
+
+ file_id = #{record.fileId,jdbcType=VARCHAR},
+
+
+ sort = #{record.sort,jdbcType=INTEGER},
+
+
+
+
+
+
+
+ update load_test_file
+ set test_id = #{record.testId,jdbcType=VARCHAR},
+ file_id = #{record.fileId,jdbcType=VARCHAR},
+ sort = #{record.sort,jdbcType=INTEGER}
+
+
+
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.java
new file mode 100644
index 0000000000..75630412d1
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.java
@@ -0,0 +1,22 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestFollow;
+import io.metersphere.load.domain.LoadTestFollowExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestFollowMapper {
+ long countByExample(LoadTestFollowExample example);
+
+ int deleteByExample(LoadTestFollowExample example);
+
+ int insert(LoadTestFollow record);
+
+ int insertSelective(LoadTestFollow record);
+
+ List selectByExample(LoadTestFollowExample example);
+
+ int updateByExampleSelective(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
+
+ int updateByExample(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.xml
new file mode 100644
index 0000000000..565be46c5c
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowMapper.xml
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ test_id, follow_id
+
+
+
+ delete from load_test_follow
+
+
+
+
+
+ insert into load_test_follow (test_id, follow_id)
+ values (#{testId,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR})
+
+
+ insert into load_test_follow
+
+
+ test_id,
+
+
+ follow_id,
+
+
+
+
+ #{testId,jdbcType=VARCHAR},
+
+
+ #{followId,jdbcType=VARCHAR},
+
+
+
+
+
+ update load_test_follow
+
+
+ test_id = #{record.testId,jdbcType=VARCHAR},
+
+
+ follow_id = #{record.followId,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update load_test_follow
+ set test_id = #{record.testId,jdbcType=VARCHAR},
+ follow_id = #{record.followId,jdbcType=VARCHAR}
+
+
+
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java
new file mode 100644
index 0000000000..42e170be2d
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java
@@ -0,0 +1,30 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTest;
+import io.metersphere.load.domain.LoadTestExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestMapper {
+ long countByExample(LoadTestExample example);
+
+ int deleteByExample(LoadTestExample example);
+
+ int deleteByPrimaryKey(String id);
+
+ int insert(LoadTest record);
+
+ int insertSelective(LoadTest record);
+
+ List selectByExample(LoadTestExample example);
+
+ LoadTest selectByPrimaryKey(String id);
+
+ int updateByExampleSelective(@Param("record") LoadTest record, @Param("example") LoadTestExample example);
+
+ int updateByExample(@Param("record") LoadTest record, @Param("example") LoadTestExample example);
+
+ int updateByPrimaryKeySelective(LoadTest record);
+
+ int updateByPrimaryKey(LoadTest record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml
new file mode 100644
index 0000000000..6d91335656
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml
@@ -0,0 +1,353 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, project_id, `name`, description, create_time, update_time, `status`, test_resource_pool_id,
+ num, create_user, pos, version_id, ref_id, latest
+
+
+
+
+ delete from load_test
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ delete from load_test
+
+
+
+
+
+ insert into load_test (id, project_id, `name`,
+ description, create_time, update_time,
+ `status`, test_resource_pool_id, num,
+ create_user, pos, version_id,
+ ref_id, latest)
+ values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
+ #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
+ #{status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER},
+ #{createUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, #{versionId,jdbcType=VARCHAR},
+ #{refId,jdbcType=VARCHAR}, #{latest,jdbcType=BIT})
+
+
+ insert into load_test
+
+
+ id,
+
+
+ project_id,
+
+
+ `name`,
+
+
+ description,
+
+
+ create_time,
+
+
+ update_time,
+
+
+ `status`,
+
+
+ test_resource_pool_id,
+
+
+ num,
+
+
+ create_user,
+
+
+ pos,
+
+
+ version_id,
+
+
+ ref_id,
+
+
+ latest,
+
+
+
+
+ #{id,jdbcType=VARCHAR},
+
+
+ #{projectId,jdbcType=VARCHAR},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{description,jdbcType=VARCHAR},
+
+
+ #{createTime,jdbcType=BIGINT},
+
+
+ #{updateTime,jdbcType=BIGINT},
+
+
+ #{status,jdbcType=VARCHAR},
+
+
+ #{testResourcePoolId,jdbcType=VARCHAR},
+
+
+ #{num,jdbcType=INTEGER},
+
+
+ #{createUser,jdbcType=VARCHAR},
+
+
+ #{pos,jdbcType=BIGINT},
+
+
+ #{versionId,jdbcType=VARCHAR},
+
+
+ #{refId,jdbcType=VARCHAR},
+
+
+ #{latest,jdbcType=BIT},
+
+
+
+
+
+ update load_test
+
+
+ id = #{record.id,jdbcType=VARCHAR},
+
+
+ project_id = #{record.projectId,jdbcType=VARCHAR},
+
+
+ `name` = #{record.name,jdbcType=VARCHAR},
+
+
+ description = #{record.description,jdbcType=VARCHAR},
+
+
+ create_time = #{record.createTime,jdbcType=BIGINT},
+
+
+ update_time = #{record.updateTime,jdbcType=BIGINT},
+
+
+ `status` = #{record.status,jdbcType=VARCHAR},
+
+
+ test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
+
+
+ num = #{record.num,jdbcType=INTEGER},
+
+
+ create_user = #{record.createUser,jdbcType=VARCHAR},
+
+
+ pos = #{record.pos,jdbcType=BIGINT},
+
+
+ version_id = #{record.versionId,jdbcType=VARCHAR},
+
+
+ ref_id = #{record.refId,jdbcType=VARCHAR},
+
+
+ latest = #{record.latest,jdbcType=BIT},
+
+
+
+
+
+
+
+ update load_test
+ set id = #{record.id,jdbcType=VARCHAR},
+ project_id = #{record.projectId,jdbcType=VARCHAR},
+ `name` = #{record.name,jdbcType=VARCHAR},
+ description = #{record.description,jdbcType=VARCHAR},
+ create_time = #{record.createTime,jdbcType=BIGINT},
+ update_time = #{record.updateTime,jdbcType=BIGINT},
+ `status` = #{record.status,jdbcType=VARCHAR},
+ test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
+ num = #{record.num,jdbcType=INTEGER},
+ create_user = #{record.createUser,jdbcType=VARCHAR},
+ pos = #{record.pos,jdbcType=BIGINT},
+ version_id = #{record.versionId,jdbcType=VARCHAR},
+ ref_id = #{record.refId,jdbcType=VARCHAR},
+ latest = #{record.latest,jdbcType=BIT}
+
+
+
+
+
+ update load_test
+
+
+ project_id = #{projectId,jdbcType=VARCHAR},
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ description = #{description,jdbcType=VARCHAR},
+
+
+ create_time = #{createTime,jdbcType=BIGINT},
+
+
+ update_time = #{updateTime,jdbcType=BIGINT},
+
+
+ `status` = #{status,jdbcType=VARCHAR},
+
+
+ test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
+
+
+ num = #{num,jdbcType=INTEGER},
+
+
+ create_user = #{createUser,jdbcType=VARCHAR},
+
+
+ pos = #{pos,jdbcType=BIGINT},
+
+
+ version_id = #{versionId,jdbcType=VARCHAR},
+
+
+ ref_id = #{refId,jdbcType=VARCHAR},
+
+
+ latest = #{latest,jdbcType=BIT},
+
+
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test
+ set project_id = #{projectId,jdbcType=VARCHAR},
+ `name` = #{name,jdbcType=VARCHAR},
+ description = #{description,jdbcType=VARCHAR},
+ create_time = #{createTime,jdbcType=BIGINT},
+ update_time = #{updateTime,jdbcType=BIGINT},
+ `status` = #{status,jdbcType=VARCHAR},
+ test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
+ num = #{num,jdbcType=INTEGER},
+ create_user = #{createUser,jdbcType=VARCHAR},
+ pos = #{pos,jdbcType=BIGINT},
+ version_id = #{versionId,jdbcType=VARCHAR},
+ ref_id = #{refId,jdbcType=VARCHAR},
+ latest = #{latest,jdbcType=BIT}
+ where id = #{id,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java
new file mode 100644
index 0000000000..3f3d13d580
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java
@@ -0,0 +1,34 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportBlob;
+import io.metersphere.load.domain.LoadTestReportBlobExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportBlobMapper {
+ long countByExample(LoadTestReportBlobExample example);
+
+ int deleteByExample(LoadTestReportBlobExample example);
+
+ int deleteByPrimaryKey(String reportId);
+
+ int insert(LoadTestReportBlob record);
+
+ int insertSelective(LoadTestReportBlob record);
+
+ List selectByExampleWithBLOBs(LoadTestReportBlobExample example);
+
+ List selectByExample(LoadTestReportBlobExample example);
+
+ LoadTestReportBlob selectByPrimaryKey(String reportId);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example);
+
+ int updateByExample(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReportBlob record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestReportBlob record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml
new file mode 100644
index 0000000000..bed91759f7
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ report_id
+
+
+ load_configuration, jmx_content, advanced_configuration, env_info
+
+
+
+
+
+ delete from load_test_report_blob
+ where report_id = #{reportId,jdbcType=VARCHAR}
+
+
+ delete from load_test_report_blob
+
+
+
+
+
+ insert into load_test_report_blob (report_id, load_configuration,
+ jmx_content, advanced_configuration,
+ env_info)
+ values (#{reportId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY},
+ #{jmxContent,jdbcType=LONGVARBINARY}, #{advancedConfiguration,jdbcType=LONGVARBINARY},
+ #{envInfo,jdbcType=LONGVARBINARY})
+
+
+ insert into load_test_report_blob
+
+
+ report_id,
+
+
+ load_configuration,
+
+
+ jmx_content,
+
+
+ advanced_configuration,
+
+
+ env_info,
+
+
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ #{jmxContent,jdbcType=LONGVARBINARY},
+
+
+ #{advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ #{envInfo,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_report_blob
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY},
+
+
+ advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ env_info = #{record.envInfo,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_report_blob
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
+ jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY},
+ advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
+ env_info = #{record.envInfo,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_report_blob
+ set report_id = #{record.reportId,jdbcType=VARCHAR}
+
+
+
+
+
+ update load_test_report_blob
+
+
+ load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
+
+
+ jmx_content = #{jmxContent,jdbcType=LONGVARBINARY},
+
+
+ advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
+
+
+ env_info = #{envInfo,jdbcType=LONGVARBINARY},
+
+
+ where report_id = #{reportId,jdbcType=VARCHAR}
+
+
+ update load_test_report_blob
+ set load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
+ jmx_content = #{jmxContent,jdbcType=LONGVARBINARY},
+ advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
+ env_info = #{envInfo,jdbcType=LONGVARBINARY}
+ where report_id = #{reportId,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java
new file mode 100644
index 0000000000..6c823b54aa
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java
@@ -0,0 +1,22 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportFile;
+import io.metersphere.load.domain.LoadTestReportFileExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportFileMapper {
+ long countByExample(LoadTestReportFileExample example);
+
+ int deleteByExample(LoadTestReportFileExample example);
+
+ int insert(LoadTestReportFile record);
+
+ int insertSelective(LoadTestReportFile record);
+
+ List selectByExample(LoadTestReportFileExample example);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example);
+
+ int updateByExample(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml
new file mode 100644
index 0000000000..e384d624ea
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ report_id, file_id, sort
+
+
+
+ delete from load_test_report_file
+
+
+
+
+
+ insert into load_test_report_file (report_id, file_id, sort
+ )
+ values (#{reportId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}
+ )
+
+
+ insert into load_test_report_file
+
+
+ report_id,
+
+
+ file_id,
+
+
+ sort,
+
+
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{fileId,jdbcType=VARCHAR},
+
+
+ #{sort,jdbcType=INTEGER},
+
+
+
+
+
+ update load_test_report_file
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ file_id = #{record.fileId,jdbcType=VARCHAR},
+
+
+ sort = #{record.sort,jdbcType=INTEGER},
+
+
+
+
+
+
+
+ update load_test_report_file
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ file_id = #{record.fileId,jdbcType=VARCHAR},
+ sort = #{record.sort,jdbcType=INTEGER}
+
+
+
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java
new file mode 100644
index 0000000000..6ef383adf1
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java
@@ -0,0 +1,36 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportLog;
+import io.metersphere.load.domain.LoadTestReportLogExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportLogMapper {
+ long countByExample(LoadTestReportLogExample example);
+
+ int deleteByExample(LoadTestReportLogExample example);
+
+ int deleteByPrimaryKey(String id);
+
+ int insert(LoadTestReportLog record);
+
+ int insertSelective(LoadTestReportLog record);
+
+ List selectByExampleWithBLOBs(LoadTestReportLogExample example);
+
+ List selectByExample(LoadTestReportLogExample example);
+
+ LoadTestReportLog selectByPrimaryKey(String id);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example);
+
+ int updateByExample(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReportLog record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestReportLog record);
+
+ int updateByPrimaryKey(LoadTestReportLog record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml
new file mode 100644
index 0000000000..cbb280a40c
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, report_id, resource_id, `part`
+
+
+ content
+
+
+
+
+
+ delete from load_test_report_log
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ delete from load_test_report_log
+
+
+
+
+
+ insert into load_test_report_log (id, report_id, resource_id,
+ `part`, content)
+ values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
+ #{part,jdbcType=BIGINT}, #{content,jdbcType=LONGVARBINARY})
+
+
+ insert into load_test_report_log
+
+
+ id,
+
+
+ report_id,
+
+
+ resource_id,
+
+
+ `part`,
+
+
+ content,
+
+
+
+
+ #{id,jdbcType=VARCHAR},
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{resourceId,jdbcType=VARCHAR},
+
+
+ #{part,jdbcType=BIGINT},
+
+
+ #{content,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_report_log
+
+
+ id = #{record.id,jdbcType=VARCHAR},
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ resource_id = #{record.resourceId,jdbcType=VARCHAR},
+
+
+ `part` = #{record.part,jdbcType=BIGINT},
+
+
+ content = #{record.content,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_report_log
+ set id = #{record.id,jdbcType=VARCHAR},
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+ resource_id = #{record.resourceId,jdbcType=VARCHAR},
+ `part` = #{record.part,jdbcType=BIGINT},
+ content = #{record.content,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_report_log
+ set id = #{record.id,jdbcType=VARCHAR},
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+ resource_id = #{record.resourceId,jdbcType=VARCHAR},
+ `part` = #{record.part,jdbcType=BIGINT}
+
+
+
+
+
+ update load_test_report_log
+
+
+ report_id = #{reportId,jdbcType=VARCHAR},
+
+
+ resource_id = #{resourceId,jdbcType=VARCHAR},
+
+
+ `part` = #{part,jdbcType=BIGINT},
+
+
+ content = #{content,jdbcType=LONGVARBINARY},
+
+
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_report_log
+ set report_id = #{reportId,jdbcType=VARCHAR},
+ resource_id = #{resourceId,jdbcType=VARCHAR},
+ `part` = #{part,jdbcType=BIGINT},
+ content = #{content,jdbcType=LONGVARBINARY}
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_report_log
+ set report_id = #{reportId,jdbcType=VARCHAR},
+ resource_id = #{resourceId,jdbcType=VARCHAR},
+ `part` = #{part,jdbcType=BIGINT}
+ where id = #{id,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java
new file mode 100644
index 0000000000..c74d5624e7
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java
@@ -0,0 +1,30 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReport;
+import io.metersphere.load.domain.LoadTestReportExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportMapper {
+ long countByExample(LoadTestReportExample example);
+
+ int deleteByExample(LoadTestReportExample example);
+
+ int deleteByPrimaryKey(String id);
+
+ int insert(LoadTestReport record);
+
+ int insertSelective(LoadTestReport record);
+
+ List selectByExample(LoadTestReportExample example);
+
+ LoadTestReport selectByPrimaryKey(String id);
+
+ int updateByExampleSelective(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example);
+
+ int updateByExample(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReport record);
+
+ int updateByPrimaryKey(LoadTestReport record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml
new file mode 100644
index 0000000000..68c8de5a4c
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml
@@ -0,0 +1,448 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, test_id, `name`, description, create_time, update_time, `status`, create_user,
+ trigger_mode, max_users, avg_response_time, tps, project_id, test_name, test_resource_pool_id,
+ test_start_time, test_end_time, test_duration, version_id, relevance_test_plan_report_id
+
+
+
+
+ delete from load_test_report
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ delete from load_test_report
+
+
+
+
+
+ insert into load_test_report (id, test_id, `name`,
+ description, create_time, update_time,
+ `status`, create_user, trigger_mode,
+ max_users, avg_response_time, tps,
+ project_id, test_name, test_resource_pool_id,
+ test_start_time, test_end_time, test_duration,
+ version_id, relevance_test_plan_report_id)
+ values (#{id,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
+ #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
+ #{status,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR},
+ #{maxUsers,jdbcType=VARCHAR}, #{avgResponseTime,jdbcType=VARCHAR}, #{tps,jdbcType=VARCHAR},
+ #{projectId,jdbcType=VARCHAR}, #{testName,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR},
+ #{testStartTime,jdbcType=BIGINT}, #{testEndTime,jdbcType=BIGINT}, #{testDuration,jdbcType=BIGINT},
+ #{versionId,jdbcType=VARCHAR}, #{relevanceTestPlanReportId,jdbcType=VARCHAR})
+
+
+ insert into load_test_report
+
+
+ id,
+
+
+ test_id,
+
+
+ `name`,
+
+
+ description,
+
+
+ create_time,
+
+
+ update_time,
+
+
+ `status`,
+
+
+ create_user,
+
+
+ trigger_mode,
+
+
+ max_users,
+
+
+ avg_response_time,
+
+
+ tps,
+
+
+ project_id,
+
+
+ test_name,
+
+
+ test_resource_pool_id,
+
+
+ test_start_time,
+
+
+ test_end_time,
+
+
+ test_duration,
+
+
+ version_id,
+
+
+ relevance_test_plan_report_id,
+
+
+
+
+ #{id,jdbcType=VARCHAR},
+
+
+ #{testId,jdbcType=VARCHAR},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{description,jdbcType=VARCHAR},
+
+
+ #{createTime,jdbcType=BIGINT},
+
+
+ #{updateTime,jdbcType=BIGINT},
+
+
+ #{status,jdbcType=VARCHAR},
+
+
+ #{createUser,jdbcType=VARCHAR},
+
+
+ #{triggerMode,jdbcType=VARCHAR},
+
+
+ #{maxUsers,jdbcType=VARCHAR},
+
+
+ #{avgResponseTime,jdbcType=VARCHAR},
+
+
+ #{tps,jdbcType=VARCHAR},
+
+
+ #{projectId,jdbcType=VARCHAR},
+
+
+ #{testName,jdbcType=VARCHAR},
+
+
+ #{testResourcePoolId,jdbcType=VARCHAR},
+
+
+ #{testStartTime,jdbcType=BIGINT},
+
+
+ #{testEndTime,jdbcType=BIGINT},
+
+
+ #{testDuration,jdbcType=BIGINT},
+
+
+ #{versionId,jdbcType=VARCHAR},
+
+
+ #{relevanceTestPlanReportId,jdbcType=VARCHAR},
+
+
+
+
+
+ update load_test_report
+
+
+ id = #{record.id,jdbcType=VARCHAR},
+
+
+ test_id = #{record.testId,jdbcType=VARCHAR},
+
+
+ `name` = #{record.name,jdbcType=VARCHAR},
+
+
+ description = #{record.description,jdbcType=VARCHAR},
+
+
+ create_time = #{record.createTime,jdbcType=BIGINT},
+
+
+ update_time = #{record.updateTime,jdbcType=BIGINT},
+
+
+ `status` = #{record.status,jdbcType=VARCHAR},
+
+
+ create_user = #{record.createUser,jdbcType=VARCHAR},
+
+
+ trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
+
+
+ max_users = #{record.maxUsers,jdbcType=VARCHAR},
+
+
+ avg_response_time = #{record.avgResponseTime,jdbcType=VARCHAR},
+
+
+ tps = #{record.tps,jdbcType=VARCHAR},
+
+
+ project_id = #{record.projectId,jdbcType=VARCHAR},
+
+
+ test_name = #{record.testName,jdbcType=VARCHAR},
+
+
+ test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
+
+
+ test_start_time = #{record.testStartTime,jdbcType=BIGINT},
+
+
+ test_end_time = #{record.testEndTime,jdbcType=BIGINT},
+
+
+ test_duration = #{record.testDuration,jdbcType=BIGINT},
+
+
+ version_id = #{record.versionId,jdbcType=VARCHAR},
+
+
+ relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update load_test_report
+ set id = #{record.id,jdbcType=VARCHAR},
+ test_id = #{record.testId,jdbcType=VARCHAR},
+ `name` = #{record.name,jdbcType=VARCHAR},
+ description = #{record.description,jdbcType=VARCHAR},
+ create_time = #{record.createTime,jdbcType=BIGINT},
+ update_time = #{record.updateTime,jdbcType=BIGINT},
+ `status` = #{record.status,jdbcType=VARCHAR},
+ create_user = #{record.createUser,jdbcType=VARCHAR},
+ trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
+ max_users = #{record.maxUsers,jdbcType=VARCHAR},
+ avg_response_time = #{record.avgResponseTime,jdbcType=VARCHAR},
+ tps = #{record.tps,jdbcType=VARCHAR},
+ project_id = #{record.projectId,jdbcType=VARCHAR},
+ test_name = #{record.testName,jdbcType=VARCHAR},
+ test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
+ test_start_time = #{record.testStartTime,jdbcType=BIGINT},
+ test_end_time = #{record.testEndTime,jdbcType=BIGINT},
+ test_duration = #{record.testDuration,jdbcType=BIGINT},
+ version_id = #{record.versionId,jdbcType=VARCHAR},
+ relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR}
+
+
+
+
+
+ update load_test_report
+
+
+ test_id = #{testId,jdbcType=VARCHAR},
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ description = #{description,jdbcType=VARCHAR},
+
+
+ create_time = #{createTime,jdbcType=BIGINT},
+
+
+ update_time = #{updateTime,jdbcType=BIGINT},
+
+
+ `status` = #{status,jdbcType=VARCHAR},
+
+
+ create_user = #{createUser,jdbcType=VARCHAR},
+
+
+ trigger_mode = #{triggerMode,jdbcType=VARCHAR},
+
+
+ max_users = #{maxUsers,jdbcType=VARCHAR},
+
+
+ avg_response_time = #{avgResponseTime,jdbcType=VARCHAR},
+
+
+ tps = #{tps,jdbcType=VARCHAR},
+
+
+ project_id = #{projectId,jdbcType=VARCHAR},
+
+
+ test_name = #{testName,jdbcType=VARCHAR},
+
+
+ test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
+
+
+ test_start_time = #{testStartTime,jdbcType=BIGINT},
+
+
+ test_end_time = #{testEndTime,jdbcType=BIGINT},
+
+
+ test_duration = #{testDuration,jdbcType=BIGINT},
+
+
+ version_id = #{versionId,jdbcType=VARCHAR},
+
+
+ relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_report
+ set test_id = #{testId,jdbcType=VARCHAR},
+ `name` = #{name,jdbcType=VARCHAR},
+ description = #{description,jdbcType=VARCHAR},
+ create_time = #{createTime,jdbcType=BIGINT},
+ update_time = #{updateTime,jdbcType=BIGINT},
+ `status` = #{status,jdbcType=VARCHAR},
+ create_user = #{createUser,jdbcType=VARCHAR},
+ trigger_mode = #{triggerMode,jdbcType=VARCHAR},
+ max_users = #{maxUsers,jdbcType=VARCHAR},
+ avg_response_time = #{avgResponseTime,jdbcType=VARCHAR},
+ tps = #{tps,jdbcType=VARCHAR},
+ project_id = #{projectId,jdbcType=VARCHAR},
+ test_name = #{testName,jdbcType=VARCHAR},
+ test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
+ test_start_time = #{testStartTime,jdbcType=BIGINT},
+ test_end_time = #{testEndTime,jdbcType=BIGINT},
+ test_duration = #{testDuration,jdbcType=BIGINT},
+ version_id = #{versionId,jdbcType=VARCHAR},
+ relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java
new file mode 100644
index 0000000000..1feaf09ec4
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java
@@ -0,0 +1,36 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportResult;
+import io.metersphere.load.domain.LoadTestReportResultExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportResultMapper {
+ long countByExample(LoadTestReportResultExample example);
+
+ int deleteByExample(LoadTestReportResultExample example);
+
+ int deleteByPrimaryKey(String id);
+
+ int insert(LoadTestReportResult record);
+
+ int insertSelective(LoadTestReportResult record);
+
+ List selectByExampleWithBLOBs(LoadTestReportResultExample example);
+
+ List selectByExample(LoadTestReportResultExample example);
+
+ LoadTestReportResult selectByPrimaryKey(String id);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example);
+
+ int updateByExample(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReportResult record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestReportResult record);
+
+ int updateByPrimaryKey(LoadTestReportResult record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml
new file mode 100644
index 0000000000..f82778fd6f
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, report_id, report_key
+
+
+ report_value
+
+
+
+
+
+ delete from load_test_report_result
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ delete from load_test_report_result
+
+
+
+
+
+ insert into load_test_report_result (id, report_id, report_key,
+ report_value)
+ values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR},
+ #{reportValue,jdbcType=LONGVARBINARY})
+
+
+ insert into load_test_report_result
+
+
+ id,
+
+
+ report_id,
+
+
+ report_key,
+
+
+ report_value,
+
+
+
+
+ #{id,jdbcType=VARCHAR},
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{reportKey,jdbcType=VARCHAR},
+
+
+ #{reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_report_result
+
+
+ id = #{record.id,jdbcType=VARCHAR},
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+
+
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_report_result
+ set id = #{record.id,jdbcType=VARCHAR},
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_report_result
+ set id = #{record.id,jdbcType=VARCHAR},
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR}
+
+
+
+
+
+ update load_test_report_result
+
+
+ report_id = #{reportId,jdbcType=VARCHAR},
+
+
+ report_key = #{reportKey,jdbcType=VARCHAR},
+
+
+ report_value = #{reportValue,jdbcType=LONGVARBINARY},
+
+
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_report_result
+ set report_id = #{reportId,jdbcType=VARCHAR},
+ report_key = #{reportKey,jdbcType=VARCHAR},
+ report_value = #{reportValue,jdbcType=LONGVARBINARY}
+ where id = #{id,jdbcType=VARCHAR}
+
+
+ update load_test_report_result
+ set report_id = #{reportId,jdbcType=VARCHAR},
+ report_key = #{reportKey,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=VARCHAR}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java
new file mode 100644
index 0000000000..0b1002d926
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java
@@ -0,0 +1,34 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportResultPart;
+import io.metersphere.load.domain.LoadTestReportResultPartExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportResultPartMapper {
+ long countByExample(LoadTestReportResultPartExample example);
+
+ int deleteByExample(LoadTestReportResultPartExample example);
+
+ int deleteByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex);
+
+ int insert(LoadTestReportResultPart record);
+
+ int insertSelective(LoadTestReportResultPart record);
+
+ List selectByExampleWithBLOBs(LoadTestReportResultPartExample example);
+
+ List selectByExample(LoadTestReportResultPartExample example);
+
+ LoadTestReportResultPart selectByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example);
+
+ int updateByExample(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReportResultPart record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestReportResultPart record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml
new file mode 100644
index 0000000000..5e9afef764
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ report_id, report_key, resource_index
+
+
+ report_value
+
+
+
+
+
+ delete from load_test_report_result_part
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+
+
+ delete from load_test_report_result_part
+
+
+
+
+
+ insert into load_test_report_result_part (report_id, report_key, resource_index,
+ report_value)
+ values (#{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR}, #{resourceIndex,jdbcType=INTEGER},
+ #{reportValue,jdbcType=LONGVARBINARY})
+
+
+ insert into load_test_report_result_part
+
+
+ report_id,
+
+
+ report_key,
+
+
+ resource_index,
+
+
+ report_value,
+
+
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{reportKey,jdbcType=VARCHAR},
+
+
+ #{resourceIndex,jdbcType=INTEGER},
+
+
+ #{reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_report_result_part
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+
+
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER},
+
+
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_report_result_part
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER},
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_report_result_part
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER}
+
+
+
+
+
+ update load_test_report_result_part
+
+
+ report_value = #{reportValue,jdbcType=LONGVARBINARY},
+
+
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+
+
+ update load_test_report_result_part
+ set report_value = #{reportValue,jdbcType=LONGVARBINARY}
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java
new file mode 100644
index 0000000000..c4ecb9747b
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java
@@ -0,0 +1,34 @@
+package io.metersphere.load.mapper;
+
+import io.metersphere.load.domain.LoadTestReportResultRealtime;
+import io.metersphere.load.domain.LoadTestReportResultRealtimeExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface LoadTestReportResultRealtimeMapper {
+ long countByExample(LoadTestReportResultRealtimeExample example);
+
+ int deleteByExample(LoadTestReportResultRealtimeExample example);
+
+ int deleteByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex, @Param("sort") Integer sort);
+
+ int insert(LoadTestReportResultRealtime record);
+
+ int insertSelective(LoadTestReportResultRealtime record);
+
+ List selectByExampleWithBLOBs(LoadTestReportResultRealtimeExample example);
+
+ List selectByExample(LoadTestReportResultRealtimeExample example);
+
+ LoadTestReportResultRealtime selectByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex, @Param("sort") Integer sort);
+
+ int updateByExampleSelective(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example);
+
+ int updateByExampleWithBLOBs(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example);
+
+ int updateByExample(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example);
+
+ int updateByPrimaryKeySelective(LoadTestReportResultRealtime record);
+
+ int updateByPrimaryKeyWithBLOBs(LoadTestReportResultRealtime record);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml
new file mode 100644
index 0000000000..c16ff55deb
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ report_id, report_key, resource_index, sort
+
+
+ report_value
+
+
+
+
+
+ delete from load_test_report_result_realtime
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+ and sort = #{sort,jdbcType=INTEGER}
+
+
+ delete from load_test_report_result_realtime
+
+
+
+
+
+ insert into load_test_report_result_realtime (report_id, report_key, resource_index,
+ sort, report_value)
+ values (#{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR}, #{resourceIndex,jdbcType=INTEGER},
+ #{sort,jdbcType=INTEGER}, #{reportValue,jdbcType=LONGVARBINARY})
+
+
+ insert into load_test_report_result_realtime
+
+
+ report_id,
+
+
+ report_key,
+
+
+ resource_index,
+
+
+ sort,
+
+
+ report_value,
+
+
+
+
+ #{reportId,jdbcType=VARCHAR},
+
+
+ #{reportKey,jdbcType=VARCHAR},
+
+
+ #{resourceIndex,jdbcType=INTEGER},
+
+
+ #{sort,jdbcType=INTEGER},
+
+
+ #{reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+ update load_test_report_result_realtime
+
+
+ report_id = #{record.reportId,jdbcType=VARCHAR},
+
+
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+
+
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER},
+
+
+ sort = #{record.sort,jdbcType=INTEGER},
+
+
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
+
+
+
+
+
+
+
+ update load_test_report_result_realtime
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER},
+ sort = #{record.sort,jdbcType=INTEGER},
+ report_value = #{record.reportValue,jdbcType=LONGVARBINARY}
+
+
+
+
+
+ update load_test_report_result_realtime
+ set report_id = #{record.reportId,jdbcType=VARCHAR},
+ report_key = #{record.reportKey,jdbcType=VARCHAR},
+ resource_index = #{record.resourceIndex,jdbcType=INTEGER},
+ sort = #{record.sort,jdbcType=INTEGER}
+
+
+
+
+
+ update load_test_report_result_realtime
+
+
+ report_value = #{reportValue,jdbcType=LONGVARBINARY},
+
+
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+ and sort = #{sort,jdbcType=INTEGER}
+
+
+ update load_test_report_result_realtime
+ set report_value = #{reportValue,jdbcType=LONGVARBINARY}
+ where report_id = #{reportId,jdbcType=VARCHAR}
+ and report_key = #{reportKey,jdbcType=VARCHAR}
+ and resource_index = #{resourceIndex,jdbcType=INTEGER}
+ and sort = #{sort,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java
index bceb73e33c..4c530eb0f4 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,80 +11,80 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划")
+@Schema(title = "测试计划")
@Table("test_plan")
@Data
public class TestPlan implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan.project_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.project_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划所属项目", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String projectId;
@Size(min = 1, max = 50, message = "{test_plan.parent_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.parent_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划父ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划父ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String parentId;
@Size(min = 1, max = 255, message = "{test_plan.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划名称", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String name;
@Size(min = 1, max = 20, message = "{test_plan.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划状态", required = true, allowableValues = "range[1, 20]")
+ @Schema(title = "测试计划状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
private String status;
@Size(min = 1, max = 30, message = "{test_plan.stage.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.stage.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试阶段", required = true, allowableValues = "range[1, 30]")
+ @Schema(title = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
private String stage;
- @ApiModelProperty(name = "标签", allowableValues = "range[1, 500]")
+ @Schema(title = "标签", allowableValues = "range[1, 500]")
private String tags;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{test_plan.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "更新时间", dataType = "Long")
+ @Schema(title = "更新时间")
private Long updateTime;
- @ApiModelProperty(name = "更新人", allowableValues = "range[1, 50]")
+ @Schema(title = "更新人", allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "计划开始时间", dataType = "Long")
+ @Schema(title = "计划开始时间")
private Long plannedStartTime;
- @ApiModelProperty(name = "计划结束时间", dataType = "Long")
+ @Schema(title = "计划结束时间")
private Long plannedEndTime;
- @ApiModelProperty(name = "实际开始时间", dataType = "Long")
+ @Schema(title = "实际开始时间")
private Long actualStartTime;
- @ApiModelProperty(name = "实际结束时间", dataType = "Long")
+ @Schema(title = "实际结束时间")
private Long actualEndTime;
- @ApiModelProperty(name = "描述", allowableValues = "range[1, 2000]")
+ @Schema(title = "描述", allowableValues = "range[1, 2000]")
private String description;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java
index e86bdca933..185abf998d 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,49 +11,49 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关联接口用例")
+@Schema(title = "测试计划关联接口用例")
@Table("test_plan_api_case")
@Data
public class TestPlanApiCase implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_api_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_api_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_case.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 50, message = "{test_plan_api_case.api_case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_case.api_case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "接口用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String apiCaseId;
- @ApiModelProperty(name = "环境类型", allowableValues = "range[1, 20]")
+ @Schema(title = "环境类型", allowableValues = "range[1, 20]")
private String environmentType;
- @ApiModelProperty(name = "所属环境")
+ @Schema(title = "所属环境")
private String environment;
- @ApiModelProperty(name = "环境组ID", allowableValues = "range[1, 50]")
+ @Schema(title = "环境组ID", allowableValues = "range[1, 50]")
private String environmentGroupId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 40, message = "{test_plan_api_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 40]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 40]")
private String createUser;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java
index eefb94635a..a94078129f 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,49 +11,49 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关联场景用例")
+@Schema(title = "测试计划关联场景用例")
@Table("test_plan_api_scenario")
@Data
public class TestPlanApiScenario implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_api_scenario.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_api_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_scenario.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 255, message = "{test_plan_api_scenario.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_scenario.api_scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "场景ID", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String apiScenarioId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 100, message = "{test_plan_api_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_api_scenario.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 100]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
private String createUser;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
- @ApiModelProperty(name = "环境类型", required = false, allowableValues = "range[1, 20]")
+ @Schema(title = "环境类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
private String environmentType;
- @ApiModelProperty(name = "所属环境", required = false, allowableValues = "range[1, ]")
+ @Schema(title = "所属环境", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
private String environment;
- @ApiModelProperty(name = "环境组ID", required = false, allowableValues = "range[1, 50]")
+ @Schema(title = "环境组ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
private String environmentGroupId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java
index a3c1392eed..0102f62e6e 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,33 +11,33 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划配置")
+@Schema(title = "测试计划配置")
@Table("test_plan_config")
@Data
public class TestPlanConfig implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_config.test_plan_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
- @ApiModelProperty(name = "运行模式", required = true)
+ @Schema(title = "运行模式", requiredMode = Schema.RequiredMode.REQUIRED)
private String runModeConfig;
@Size(min = 1, max = 1, message = "{test_plan_config.automatic_status_update.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_config.automatic_status_update.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否自定更新功能用例状态", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean automaticStatusUpdate;
@Size(min = 1, max = 1, message = "{test_plan_config.repeat_case.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_config.repeat_case.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否允许重复添加用例", required = true, allowableValues = "range[1, 1]")
+ @Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
private Boolean repeatCase;
@Size(min = 1, max = 3, message = "{test_plan_config.pass_threshold.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_config.pass_threshold.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划通过阈值", required = true, dataType = "Integer")
+ @Schema(title = "测试计划通过阈值", requiredMode = Schema.RequiredMode.REQUIRED)
private Integer passThreshold;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java
index da8f9257b0..178ba8722e 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,57 +11,57 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划执行记录")
+@Schema(title = "测试计划执行记录")
@Table("test_plan_execute_record")
@Data
public class TestPlanExecuteRecord implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_execute_record.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试计划执行记录ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_execute_record.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_execute_record.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 255, message = "{test_plan_execute_record.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_execute_record.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "执行记录名称", required = true, allowableValues = "range[1, 255]")
+ @Schema(title = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
private String name;
@Size(min = 1, max = 50, message = "{test_plan_execute_record.status.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_execute_record.status.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "执行状态", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "执行状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String status;
- @ApiModelProperty(name = "触发类型", allowableValues = "range[1, 50]")
+ @Schema(title = "触发类型", allowableValues = "range[1, 50]")
private String triggerMode;
- @ApiModelProperty(name = "创建人(执行人/触发人)", allowableValues = "range[1, 50]")
+ @Schema(title = "创建人(执行人/触发人)", allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "创建时间(开始时间)", dataType = "Long")
+ @Schema(title = "创建时间(开始时间)")
private Long createTime;
- @ApiModelProperty(name = "结束时间", dataType = "Long")
+ @Schema(title = "结束时间")
private Long endTime;
- @ApiModelProperty(name = "用例总数量", dataType = "Integer")
+ @Schema(title = "用例总数量")
private Integer caseCount;
- @ApiModelProperty(name = "执行率", allowableValues = "range[1, 22]")
+ @Schema(title = "执行率", allowableValues = "range[1, 22]")
private Double executeRate;
- @ApiModelProperty(name = "通过率", allowableValues = "range[1, 22]")
+ @Schema(title = "通过率", allowableValues = "range[1, 22]")
private Double passRate;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java
index db7e6d6fda..9ef0896427 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java
@@ -1,8 +1,7 @@
package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.annotation.Id;
@@ -10,34 +9,34 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划执行记录详细内容(拆分成下面4张表)")
+@Schema(title = "测试计划执行记录详细内容(拆分成下面4张表)")
@Table("test_plan_execute_record_blob")
@Data
public class TestPlanExecuteRecordBlob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_execute_record_blob.test_plan_execute_record.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试计划执行记录ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanExecuteRecord;
- @ApiModelProperty(name = "执行配置")
+ @Schema(title = "执行配置")
private String runConfig;
- @ApiModelProperty(name = "接口用例执行信息")
+ @Schema(title = "接口用例执行信息")
private String apiCases;
- @ApiModelProperty(name = "场景执行信息")
+ @Schema(title = "场景执行信息")
private String scenarios;
- @ApiModelProperty(name = "性能用例执行信息")
+ @Schema(title = "性能用例执行信息")
private String loadCases;
- @ApiModelProperty(name = "UI用例执行信息")
+ @Schema(title = "UI用例执行信息")
private String uiCases;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java
index 5c2e5d26d4..e137ff985d 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java
@@ -1,25 +1,24 @@
package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关注人")
+@Schema(title = "测试计划关注人")
@Table("test_plan_follow")
@Data
public class TestPlanFollow implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String userId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java
index b6d01efa17..866ce4f2f5 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,37 +11,37 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关联功能用例")
+@Schema(title = "测试计划关联功能用例")
@Table("test_plan_function_case")
@Data
public class TestPlanFunctionCase implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_function_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_function_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_function_case.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 50, message = "{test_plan_function_case.function_case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_function_case.function_case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String functionCaseId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{test_plan_function_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_function_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java
index 7bbd753b9b..2626a0a221 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,49 +11,49 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关联性能测试用例")
+@Schema(title = "测试计划关联性能测试用例")
@Table("test_plan_load_case")
@Data
public class TestPlanLoadCase implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_load_case.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_load_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_load_case.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 50, message = "{test_plan_load_case.load_case_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_load_case.load_case_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "性能用例ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String loadCaseId;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
@Size(min = 1, max = 50, message = "{test_plan_load_case.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_load_case.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "所用测试资源池ID", allowableValues = "range[1, 50]")
+ @Schema(title = "所用测试资源池ID", allowableValues = "range[1, 50]")
private String testResourcePoolId;
- @ApiModelProperty(name = "自定义排序,间隔5000", required = true, dataType = "Long")
+ @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
- @ApiModelProperty(name = "压力配置")
+ @Schema(title = "压力配置")
private String loadConfiguration;
- @ApiModelProperty(name = "高级配置")
+ @Schema(title = "高级配置")
private String advancedConfiguration;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java
index 24c33ee1b7..97fbafde53 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java
@@ -1,25 +1,24 @@
package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划责任人")
+@Schema(title = "测试计划责任人")
@Table("test_plan_principal")
@Data
public class TestPlanPrincipal implements Serializable {
private static final long serialVersionUID = 1L;
@NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String userId;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java
index 33281d836c..2d1180152a 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,61 +11,61 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划报告")
+@Schema(title = "测试计划报告")
@Table("test_plan_report")
@Data
public class TestPlanReport implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_report.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_report.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_report.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 128, message = "{test_plan_report.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_report.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "报告名称", required = true, allowableValues = "range[1, 128]")
+ @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 128]")
private String name;
@Size(min = 1, max = 50, message = "{test_plan_report.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_report.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "修改人", allowableValues = "range[1, 50]")
+ @Schema(title = "修改人", allowableValues = "range[1, 50]")
private String updateUser;
- @ApiModelProperty(name = "更新时间", dataType = "Long")
+ @Schema(title = "更新时间")
private Long updateTime;
- @ApiModelProperty(name = "开始时间", dataType = "Long")
+ @Schema(title = "开始时间")
private Long startTime;
- @ApiModelProperty(name = "结束时间", dataType = "Long")
+ @Schema(title = "结束时间")
private Long endTime;
- @ApiModelProperty(name = "用例数量", dataType = "Long")
+ @Schema(title = "用例数量")
private Long caseCount;
- @ApiModelProperty(name = "执行率", allowableValues = "range[1, 22]")
+ @Schema(title = "执行率", allowableValues = "range[1, 22]")
private Double executeRate;
- @ApiModelProperty(name = "通过率", allowableValues = "range[1, 22]")
+ @Schema(title = "通过率", allowableValues = "range[1, 22]")
private Double passRate;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java
index a3ba459d3a..ce609024a7 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,27 +11,27 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划报告内容")
+@Schema(title = "测试计划报告内容")
@Table("test_plan_report_content")
@Data
public class TestPlanReportContent implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_report_content.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_report_content.test_plan_report_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_report_content.test_plan_report_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划报告ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanReportId;
- @ApiModelProperty(name = "总结", allowableValues = "range[1, 2000]")
+ @Schema(title = "总结", allowableValues = "range[1, 2000]")
private String summary;
- @ApiModelProperty(name = "报告内容", dataType = "byte[]")
+ @Schema(title = "报告内容")
private byte[] content;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java
index e64c5cdfe3..9f536da69d 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java
@@ -2,8 +2,7 @@ package io.metersphere.plan.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
@@ -12,49 +11,49 @@ import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
-@ApiModel(value = "测试计划关联UI场景")
+@Schema(title = "测试计划关联UI场景")
@Table("test_plan_ui_scenario")
@Data
public class TestPlanUiScenario implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_ui_scenario.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String id;
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_ui_scenario.test_plan_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String testPlanId;
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.ui_scenario_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_ui_scenario.ui_scenario_id.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "UI场景ID", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String uiScenarioId;
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{test_plan_ui_scenario.create_user.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
private String createUser;
- @ApiModelProperty(name = "创建时间", required = true, dataType = "Long")
+ @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private Long createTime;
- @ApiModelProperty(name = "排序,默认值5000", required = true, dataType = "Long")
+ @Schema(title = "排序,默认值5000", requiredMode = Schema.RequiredMode.REQUIRED)
private Long pos;
- @ApiModelProperty(name = "环境类型", allowableValues = "range[1, 20]")
+ @Schema(title = "环境类型", allowableValues = "range[1, 20]")
private String environmentType;
- @ApiModelProperty(name = "所属环境")
+ @Schema(title = "所属环境")
private String environment;
- @ApiModelProperty(name = "环境组ID", allowableValues = "range[1, 50]")
+ @Schema(title = "环境组ID", allowableValues = "range[1, 50]")
private String environmentGroupId;
diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java
index e460f7fe86..401a1813b8 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java
@@ -1,62 +1,45 @@
package io.metersphere.project.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
+import java.io.Serializable;
import lombok.Data;
-import java.io.Serializable;
-
-@ApiModel(value = "API模版表")
-@Table("api_template")
@Data
public class ApiTemplate implements Serializable {
- private static final long serialVersionUID = 1L;
-
- @Id
- @NotBlank(message = "{api_template.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "模版ID", required = true, allowableValues = "range[1, 100]")
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{api_template.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 50, message = "{api_template.id.length_range}", groups = {Created.class, Updated.class})
private String id;
+ @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{api_template.name.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 64, message = "{api_template.name.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{api_template.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "模版名称", required = true, allowableValues = "range[1, 64]")
private String name;
-
- @ApiModelProperty(name = "描述", required = false, allowableValues = "range[1, 255]")
+ @Schema(title = "描述")
private String description;
+ @Schema(title = "是否是系统模板", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
+ @NotBlank(message = "{api_template.system.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 1, message = "{api_template.system.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{api_template.system.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否是系统模版", required = true, allowableValues = "range[1, 1]")
private Boolean system;
- @Size(min = 1, max = 1, message = "{api_template.global.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{api_template.global.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "是否是全局模版", required = true, allowableValues = "range[1, 1]")
- private Boolean global;
-
-
- @ApiModelProperty(name = "创建时间", required = true, allowableValues = "range[1, ]")
+ @Schema(title = "创建时间")
private Long createTime;
-
- @ApiModelProperty(name = "更新时间", required = true, allowableValues = "range[1, ]")
- private Long updateTime;
-
-
- @ApiModelProperty(name = "创建人", required = false, allowableValues = "range[1, 100]")
+ @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{api_template.create_user.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{api_template.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
-
- @ApiModelProperty(name = "项目ID", required = false, allowableValues = "range[1, 64]")
+ @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
+ @NotBlank(message = "{api_template.project_id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{api_template.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
-
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplateExample.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplateExample.java
new file mode 100644
index 0000000000..b6343356f4
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplateExample.java
@@ -0,0 +1,670 @@
+package io.metersphere.project.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ApiTemplateExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public ApiTemplateExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(String value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(String value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(String value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(String value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(String value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(String value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLike(String value) {
+ addCriterion("id like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotLike(String value) {
+ addCriterion("id not like", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(String value1, String value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(String value1, String value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNull() {
+ addCriterion("`name` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNotNull() {
+ addCriterion("`name` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameEqualTo(String value) {
+ addCriterion("`name` =", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotEqualTo(String value) {
+ addCriterion("`name` <>", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThan(String value) {
+ addCriterion("`name` >", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThanOrEqualTo(String value) {
+ addCriterion("`name` >=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThan(String value) {
+ addCriterion("`name` <", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThanOrEqualTo(String value) {
+ addCriterion("`name` <=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLike(String value) {
+ addCriterion("`name` like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotLike(String value) {
+ addCriterion("`name` not like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIn(List values) {
+ addCriterion("`name` in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotIn(List values) {
+ addCriterion("`name` not in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameBetween(String value1, String value2) {
+ addCriterion("`name` between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotBetween(String value1, String value2) {
+ addCriterion("`name` not between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNull() {
+ addCriterion("description is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIsNotNull() {
+ addCriterion("description is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionEqualTo(String value) {
+ addCriterion("description =", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotEqualTo(String value) {
+ addCriterion("description <>", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThan(String value) {
+ addCriterion("description >", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
+ addCriterion("description >=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThan(String value) {
+ addCriterion("description <", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLessThanOrEqualTo(String value) {
+ addCriterion("description <=", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionLike(String value) {
+ addCriterion("description like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotLike(String value) {
+ addCriterion("description not like", value, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionIn(List values) {
+ addCriterion("description in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotIn(List values) {
+ addCriterion("description not in", values, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionBetween(String value1, String value2) {
+ addCriterion("description between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andDescriptionNotBetween(String value1, String value2) {
+ addCriterion("description not between", value1, value2, "description");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemIsNull() {
+ addCriterion("`system` is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemIsNotNull() {
+ addCriterion("`system` is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemEqualTo(Boolean value) {
+ addCriterion("`system` =", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemNotEqualTo(Boolean value) {
+ addCriterion("`system` <>", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemGreaterThan(Boolean value) {
+ addCriterion("`system` >", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("`system` >=", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemLessThan(Boolean value) {
+ addCriterion("`system` <", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemLessThanOrEqualTo(Boolean value) {
+ addCriterion("`system` <=", value, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemIn(List values) {
+ addCriterion("`system` in", values, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemNotIn(List values) {
+ addCriterion("`system` not in", values, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemBetween(Boolean value1, Boolean value2) {
+ addCriterion("`system` between", value1, value2, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andSystemNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("`system` not between", value1, value2, "system");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNull() {
+ addCriterion("create_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIsNotNull() {
+ addCriterion("create_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeEqualTo(Long value) {
+ addCriterion("create_time =", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotEqualTo(Long value) {
+ addCriterion("create_time <>", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThan(Long value) {
+ addCriterion("create_time >", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_time >=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThan(Long value) {
+ addCriterion("create_time <", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
+ addCriterion("create_time <=", value, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeIn(List values) {
+ addCriterion("create_time in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotIn(List values) {
+ addCriterion("create_time not in", values, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeBetween(Long value1, Long value2) {
+ addCriterion("create_time between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
+ addCriterion("create_time not between", value1, value2, "createTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNull() {
+ addCriterion("create_user is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIsNotNull() {
+ addCriterion("create_user is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserEqualTo(String value) {
+ addCriterion("create_user =", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotEqualTo(String value) {
+ addCriterion("create_user <>", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThan(String value) {
+ addCriterion("create_user >", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
+ addCriterion("create_user >=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThan(String value) {
+ addCriterion("create_user <", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLessThanOrEqualTo(String value) {
+ addCriterion("create_user <=", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserLike(String value) {
+ addCriterion("create_user like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotLike(String value) {
+ addCriterion("create_user not like", value, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserIn(List values) {
+ addCriterion("create_user in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotIn(List values) {
+ addCriterion("create_user not in", values, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserBetween(String value1, String value2) {
+ addCriterion("create_user between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateUserNotBetween(String value1, String value2) {
+ addCriterion("create_user not between", value1, value2, "createUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNull() {
+ addCriterion("project_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIsNotNull() {
+ addCriterion("project_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdEqualTo(String value) {
+ addCriterion("project_id =", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotEqualTo(String value) {
+ addCriterion("project_id <>", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThan(String value) {
+ addCriterion("project_id >", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
+ addCriterion("project_id >=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThan(String value) {
+ addCriterion("project_id <", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLessThanOrEqualTo(String value) {
+ addCriterion("project_id <=", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdLike(String value) {
+ addCriterion("project_id like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotLike(String value) {
+ addCriterion("project_id not like", value, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdIn(List values) {
+ addCriterion("project_id in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotIn(List values) {
+ addCriterion("project_id not in", values, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdBetween(String value1, String value2) {
+ addCriterion("project_id between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+
+ public Criteria andProjectIdNotBetween(String value1, String value2) {
+ addCriterion("project_id not between", value1, value2, "projectId");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java
index ac5b56e02c..6ce572a985 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java
@@ -1,86 +1,63 @@
package io.metersphere.project.domain;
-import org.springframework.data.annotation.Id;
-import org.springframework.data.relational.core.mapping.Table;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
-import lombok.Data;
import java.io.Serializable;
+import lombok.Data;
-@ApiModel(value = "自定义字段")
-@Table("custom_field")
@Data
public class CustomField implements Serializable {
- private static final long serialVersionUID = 1L;
-
- @Id
- @NotBlank(message = "{custom_field.id.not_blank}", groups = {Updated.class})
- @ApiModelProperty(name = "自定义字段ID", required = true, allowableValues="range[1, 100]")
+ @Schema(title = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
+ @NotBlank(message = "{custom_field.id.not_blank}", groups = {Created.class, Updated.class})
+ @Size(min = 1, max = 100, message = "{custom_field.id.length_range}", groups = {Created.class, Updated.class})
private String id;
-
- @Size(min = 1, max = 64, message = "{custom_field.name.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{custom_field.name.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "自定义字段名称", required = true, allowableValues="range[1, 64]")
- private String name;
-
- @Size(min = 1, max = 30, message = "{custom_field.scene.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{custom_field.scene.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "使用场景", required = true, allowableValues="range[1, 30]")
- private String scene;
-
- @Size(min = 1, max = 30, message = "{custom_field.type.length_range}", groups = {Created.class, Updated.class})
- @NotBlank(message = "{custom_field.type.not_blank}", groups = {Created.class})
- @ApiModelProperty(name = "自定义字段类型", required = true, allowableValues="range[1, 30]")
- private String type;
-
-
-
- @ApiModelProperty(name = "自定义字段备注", required = false, allowableValues="range[1, 255]")
- private String remark;
-
-
-
- @ApiModelProperty(name = "自定义字段选项", required = false, allowableValues="range[1, ]")
- private String options;
-
-
-
- @ApiModelProperty(name = "是否是系统字段", required = false, allowableValues="range[1, ]")
- private Boolean system;
-
-
-
- @ApiModelProperty(name = "是否是全局字段", required = false, allowableValues="range[1, ]")
- private Boolean global;
-
-
-
- @ApiModelProperty(name = "创建时间", required = true, allowableValues="range[1, ]")
- private Long createTime;
-
-
-
- @ApiModelProperty(name = "更新时间", required = true, allowableValues="range[1, ]")
- private Long updateTime;
-
-
-
- @ApiModelProperty(name = "创建人", required = false, allowableValues="range[1, 100]")
- private String createUser;
-
-
-
- @ApiModelProperty(name = "项目ID", required = false, allowableValues="range[1, 64]")
- private String projectId;
-
-
-
- @ApiModelProperty(name = "是否关联第三方", required = true, allowableValues="range[1, ]")
- private Boolean thirdPart;
-
+ @Schema(title = "自定义字段名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
+ @NotBlank(message = "{custom_field.name.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{custom_field.name.length_range}", groups = {Created.class, Updated.class})
+ private String name;
+
+ @Schema(title = "使用场景", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
+ @NotBlank(message = "{custom_field.scene.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 30, message = "{custom_field.scene.length_range}", groups = {Created.class, Updated.class})
+ private String scene;
+
+ @Schema(title = "自定义字段类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
+ @NotBlank(message = "{custom_field.type.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 30, message = "{custom_field.type.length_range}", groups = {Created.class, Updated.class})
+ private String type;
+
+ @Schema(title = "自定义字段备注")
+ private String remark;
+
+ @Schema(title = "是否是系统字段")
+ private Boolean system;
+
+ @Schema(title = "是否是全局字段")
+ private Boolean global;
+
+ @Schema(title = "创建时间")
+ private Long createTime;
+
+ @Schema(title = "更新时间")
+ private Long updateTime;
+
+ @Schema(title = "创建人")
+ private String createUser;
+
+ @Schema(title = "项目ID")
+ private String projectId;
+
+ @Schema(title = "是否关联第三方", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
+ @NotBlank(message = "{custom_field.third_part.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 1, message = "{custom_field.third_part.length_range}", groups = {Created.class, Updated.class})
+ private Boolean thirdPart;
+
+ @Schema(title = "自定义字段选项")
+ private String options;
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldExample.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldExample.java
new file mode 100644
index 0000000000..b63f2f3074
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldExample.java
@@ -0,0 +1,990 @@
+package io.metersphere.project.domain;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class CustomFieldExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public CustomFieldExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List