build: swagger

This commit is contained in:
CaptainB 2023-05-25 16:07:44 +08:00
parent b7a08488ad
commit 7c43e7540e
330 changed files with 59461 additions and 3741 deletions

View File

@ -24,22 +24,48 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.swagger.parser.v3</groupId>
<artifactId>swagger-parser</artifactId>
<version>${swagger-parser.version}</version>
<exclusions>
<exclusion>
<artifactId>swagger-core</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
<exclusion>
<artifactId>swagger-models</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
</exclusions>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations-jakarta</artifactId>
<version>${swagger.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-starter.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<configuration>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.16</version>
</dependency>
<dependency>
<groupId>com.itfsw</groupId>
<artifactId>mybatis-generator-plugin</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>com.fit2cloud</groupId>
<artifactId>mybatis-tools</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestApiExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<String> 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<String> values) {
addCriterion("api_id in", values, "apiId");
return (Criteria) this;
}
public Criteria andApiIdNotIn(List<String> 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<String> values) {
addCriterion("load_test_id in", values, "loadTestId");
return (Criteria) this;
}
public Criteria andLoadTestIdNotIn(List<String> 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<String> values) {
addCriterion("env_id in", values, "envId");
return (Criteria) this;
}
public Criteria andEnvIdNotIn(List<String> 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<String> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<String> 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<Integer> values) {
addCriterion("api_version in", values, "apiVersion");
return (Criteria) this;
}
public Criteria andApiVersionNotIn(List<Integer> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestBlobExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("test_id in", values, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotIn(List<String> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestFileExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("test_id in", values, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotIn(List<String> 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<String> values) {
addCriterion("file_id in", values, "fileId");
return (Criteria) this;
}
public Criteria andFileIdNotIn(List<String> 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<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestFollowExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("test_id in", values, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotIn(List<String> 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<String> values) {
addCriterion("follow_id in", values, "followId");
return (Criteria) this;
}
public Criteria andFollowIdNotIn(List<String> 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);
}
}
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportBlobExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportFileExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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<String> values) {
addCriterion("file_id in", values, "fileId");
return (Criteria) this;
}
public Criteria andFileIdNotIn(List<String> 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<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<String> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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<String> values) {
addCriterion("resource_id in", values, "resourceId");
return (Criteria) this;
}
public Criteria andResourceIdNotIn(List<String> 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<Long> values) {
addCriterion("`part` in", values, "part");
return (Criteria) this;
}
public Criteria andPartNotIn(List<Long> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportResultExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<String> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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<String> values) {
addCriterion("report_key in", values, "reportKey");
return (Criteria) this;
}
public Criteria andReportKeyNotIn(List<String> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportResultPartExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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<String> values) {
addCriterion("report_key in", values, "reportKey");
return (Criteria) this;
}
public Criteria andReportKeyNotIn(List<String> 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<Integer> values) {
addCriterion("resource_index in", values, "resourceIndex");
return (Criteria) this;
}
public Criteria andResourceIndexNotIn(List<Integer> 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);
}
}
}

View File

@ -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;
}

View File

@ -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<Criteria> oredCriteria;
public LoadTestReportResultRealtimeExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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<String> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<String> 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<String> values) {
addCriterion("report_key in", values, "reportKey");
return (Criteria) this;
}
public Criteria andReportKeyNotIn(List<String> 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<Integer> values) {
addCriterion("resource_index in", values, "resourceIndex");
return (Criteria) this;
}
public Criteria andResourceIndexNotIn(List<Integer> 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<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> 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);
}
}
}

View File

@ -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<LoadTestApi> 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);
}

View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestApiMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestApi">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="api_id" jdbcType="VARCHAR" property="apiId" />
<result column="load_test_id" jdbcType="VARCHAR" property="loadTestId" />
<result column="env_id" jdbcType="VARCHAR" property="envId" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="api_version" jdbcType="INTEGER" property="apiVersion" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, api_id, load_test_id, env_id, `type`, api_version
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestApiExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_api
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from load_test_api
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_api
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestApiExample">
delete from load_test_api
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestApi">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestApi">
insert into load_test_api
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="apiId != null">
api_id,
</if>
<if test="loadTestId != null">
load_test_id,
</if>
<if test="envId != null">
env_id,
</if>
<if test="type != null">
`type`,
</if>
<if test="apiVersion != null">
api_version,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="apiId != null">
#{apiId,jdbcType=VARCHAR},
</if>
<if test="loadTestId != null">
#{loadTestId,jdbcType=VARCHAR},
</if>
<if test="envId != null">
#{envId,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="apiVersion != null">
#{apiVersion,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestApiExample" resultType="java.lang.Long">
select count(*) from load_test_api
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_api
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.apiId != null">
api_id = #{record.apiId,jdbcType=VARCHAR},
</if>
<if test="record.loadTestId != null">
load_test_id = #{record.loadTestId,jdbcType=VARCHAR},
</if>
<if test="record.envId != null">
env_id = #{record.envId,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.apiVersion != null">
api_version = #{record.apiVersion,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestApi">
update load_test_api
<set>
<if test="apiId != null">
api_id = #{apiId,jdbcType=VARCHAR},
</if>
<if test="loadTestId != null">
load_test_id = #{loadTestId,jdbcType=VARCHAR},
</if>
<if test="envId != null">
env_id = #{envId,jdbcType=VARCHAR},
</if>
<if test="type != null">
`type` = #{type,jdbcType=VARCHAR},
</if>
<if test="apiVersion != null">
api_version = #{apiVersion,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="io.metersphere.load.domain.LoadTestApi">
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}
</update>
</mapper>

View File

@ -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<LoadTestBlob> selectByExampleWithBLOBs(LoadTestBlobExample example);
List<LoadTestBlob> 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);
}

View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestBlobMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestBlob">
<id column="test_id" jdbcType="VARCHAR" property="testId" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestBlob">
<result column="load_configuration" jdbcType="LONGVARBINARY" property="loadConfiguration" />
<result column="advanced_configuration" jdbcType="LONGVARBINARY" property="advancedConfiguration" />
<result column="env_info" jdbcType="LONGVARBINARY" property="envInfo" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
test_id
</sql>
<sql id="Blob_Column_List">
load_configuration, advanced_configuration, env_info
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestBlobExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestBlobExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_blob
where test_id = #{testId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_blob
where test_id = #{testId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestBlobExample">
delete from load_test_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestBlob">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestBlob">
insert into load_test_blob
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="testId != null">
test_id,
</if>
<if test="loadConfiguration != null">
load_configuration,
</if>
<if test="advancedConfiguration != null">
advanced_configuration,
</if>
<if test="envInfo != null">
env_info,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="testId != null">
#{testId,jdbcType=VARCHAR},
</if>
<if test="loadConfiguration != null">
#{loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="advancedConfiguration != null">
#{advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="envInfo != null">
#{envInfo,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestBlobExample" resultType="java.lang.Long">
select count(*) from load_test_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_blob
<set>
<if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if test="record.loadConfiguration != null">
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="record.advancedConfiguration != null">
advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="record.envInfo != null">
env_info = #{record.envInfo,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_blob
set test_id = #{record.testId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestBlob">
update load_test_blob
<set>
<if test="loadConfiguration != null">
load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="advancedConfiguration != null">
advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="envInfo != null">
env_info = #{envInfo,jdbcType=LONGVARBINARY},
</if>
</set>
where test_id = #{testId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestBlob">
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}
</update>
</mapper>

View File

@ -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<LoadTestFile> selectByExample(LoadTestFileExample example);
int updateByExampleSelective(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example);
int updateByExample(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example);
}

View File

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestFileMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFile">
<result column="test_id" jdbcType="VARCHAR" property="testId" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
test_id, file_id, sort
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFileExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFileExample">
delete from load_test_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFile">
insert into load_test_file (test_id, file_id, sort
)
values (#{testId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFile">
insert into load_test_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="testId != null">
test_id,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="testId != null">
#{testId,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFileExample" resultType="java.lang.Long">
select count(*) from load_test_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_file
<set>
<if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_file
set test_id = #{record.testId,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@ -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<LoadTestFollow> selectByExample(LoadTestFollowExample example);
int updateByExampleSelective(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
int updateByExample(@Param("record") LoadTestFollow record, @Param("example") LoadTestFollowExample example);
}

View File

@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestFollowMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestFollow">
<result column="test_id" jdbcType="VARCHAR" property="testId" />
<result column="follow_id" jdbcType="VARCHAR" property="followId" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
test_id, follow_id
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_follow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample">
delete from load_test_follow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestFollow">
insert into load_test_follow (test_id, follow_id)
values (#{testId,jdbcType=VARCHAR}, #{followId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestFollow">
insert into load_test_follow
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="testId != null">
test_id,
</if>
<if test="followId != null">
follow_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="testId != null">
#{testId,jdbcType=VARCHAR},
</if>
<if test="followId != null">
#{followId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestFollowExample" resultType="java.lang.Long">
select count(*) from load_test_follow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_follow
<set>
<if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if test="record.followId != null">
follow_id = #{record.followId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_follow
set test_id = #{record.testId,jdbcType=VARCHAR},
follow_id = #{record.followId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@ -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<LoadTest> 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);
}

View File

@ -0,0 +1,353 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTest">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="test_resource_pool_id" jdbcType="VARCHAR" property="testResourcePoolId" />
<result column="num" jdbcType="INTEGER" property="num" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="pos" jdbcType="BIGINT" property="pos" />
<result column="version_id" jdbcType="VARCHAR" property="versionId" />
<result column="ref_id" jdbcType="VARCHAR" property="refId" />
<result column="latest" jdbcType="BIT" property="latest" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, project_id, `name`, description, create_time, update_time, `status`, test_resource_pool_id,
num, create_user, pos, version_id, ref_id, latest
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from load_test
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestExample">
delete from load_test
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTest">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTest">
insert into load_test
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="name != null">
`name`,
</if>
<if test="description != null">
description,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="status != null">
`status`,
</if>
<if test="testResourcePoolId != null">
test_resource_pool_id,
</if>
<if test="num != null">
num,
</if>
<if test="createUser != null">
create_user,
</if>
<if test="pos != null">
pos,
</if>
<if test="versionId != null">
version_id,
</if>
<if test="refId != null">
ref_id,
</if>
<if test="latest != null">
latest,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="testResourcePoolId != null">
#{testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="num != null">
#{num,jdbcType=INTEGER},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="pos != null">
#{pos,jdbcType=BIGINT},
</if>
<if test="versionId != null">
#{versionId,jdbcType=VARCHAR},
</if>
<if test="refId != null">
#{refId,jdbcType=VARCHAR},
</if>
<if test="latest != null">
#{latest,jdbcType=BIT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestExample" resultType="java.lang.Long">
select count(*) from load_test
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.testResourcePoolId != null">
test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="record.num != null">
num = #{record.num,jdbcType=INTEGER},
</if>
<if test="record.createUser != null">
create_user = #{record.createUser,jdbcType=VARCHAR},
</if>
<if test="record.pos != null">
pos = #{record.pos,jdbcType=BIGINT},
</if>
<if test="record.versionId != null">
version_id = #{record.versionId,jdbcType=VARCHAR},
</if>
<if test="record.refId != null">
ref_id = #{record.refId,jdbcType=VARCHAR},
</if>
<if test="record.latest != null">
latest = #{record.latest,jdbcType=BIT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTest">
update load_test
<set>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="testResourcePoolId != null">
test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="num != null">
num = #{num,jdbcType=INTEGER},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
</if>
<if test="pos != null">
pos = #{pos,jdbcType=BIGINT},
</if>
<if test="versionId != null">
version_id = #{versionId,jdbcType=VARCHAR},
</if>
<if test="refId != null">
ref_id = #{refId,jdbcType=VARCHAR},
</if>
<if test="latest != null">
latest = #{latest,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="io.metersphere.load.domain.LoadTest">
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}
</update>
</mapper>

View File

@ -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<LoadTestReportBlob> selectByExampleWithBLOBs(LoadTestReportBlobExample example);
List<LoadTestReportBlob> 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);
}

View File

@ -0,0 +1,243 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportBlobMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportBlob">
<id column="report_id" jdbcType="VARCHAR" property="reportId" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportBlob">
<result column="load_configuration" jdbcType="LONGVARBINARY" property="loadConfiguration" />
<result column="jmx_content" jdbcType="LONGVARBINARY" property="jmxContent" />
<result column="advanced_configuration" jdbcType="LONGVARBINARY" property="advancedConfiguration" />
<result column="env_info" jdbcType="LONGVARBINARY" property="envInfo" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
report_id
</sql>
<sql id="Blob_Column_List">
load_configuration, jmx_content, advanced_configuration, env_info
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportBlobExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportBlobExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_blob
where report_id = #{reportId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_report_blob
where report_id = #{reportId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportBlobExample">
delete from load_test_report_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
insert into load_test_report_blob
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportId != null">
report_id,
</if>
<if test="loadConfiguration != null">
load_configuration,
</if>
<if test="jmxContent != null">
jmx_content,
</if>
<if test="advancedConfiguration != null">
advanced_configuration,
</if>
<if test="envInfo != null">
env_info,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="loadConfiguration != null">
#{loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="jmxContent != null">
#{jmxContent,jdbcType=LONGVARBINARY},
</if>
<if test="advancedConfiguration != null">
#{advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="envInfo != null">
#{envInfo,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportBlobExample" resultType="java.lang.Long">
select count(*) from load_test_report_blob
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_blob
<set>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.loadConfiguration != null">
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="record.jmxContent != null">
jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY},
</if>
<if test="record.advancedConfiguration != null">
advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="record.envInfo != null">
env_info = #{record.envInfo,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_report_blob
set report_id = #{record.reportId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
update load_test_report_blob
<set>
<if test="loadConfiguration != null">
load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="jmxContent != null">
jmx_content = #{jmxContent,jdbcType=LONGVARBINARY},
</if>
<if test="advancedConfiguration != null">
advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
</if>
<if test="envInfo != null">
env_info = #{envInfo,jdbcType=LONGVARBINARY},
</if>
</set>
where report_id = #{reportId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
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}
</update>
</mapper>

View File

@ -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<LoadTestReportFile> selectByExample(LoadTestReportFileExample example);
int updateByExampleSelective(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example);
int updateByExample(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example);
}

View File

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportFileMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportFile">
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
report_id, file_id, sort
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportFileExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportFileExample">
delete from load_test_report_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportFile">
insert into load_test_report_file (report_id, file_id, sort
)
values (#{reportId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportFile">
insert into load_test_report_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportId != null">
report_id,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportFileExample" resultType="java.lang.Long">
select count(*) from load_test_report_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_file
<set>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_report_file
set report_id = #{record.reportId,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@ -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<LoadTestReportLog> selectByExampleWithBLOBs(LoadTestReportLogExample example);
List<LoadTestReportLog> 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);
}

View File

@ -0,0 +1,251 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportLogMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportLog">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
<result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
<result column="part" jdbcType="BIGINT" property="part" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportLog">
<result column="content" jdbcType="LONGVARBINARY" property="content" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, report_id, resource_id, `part`
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportLogExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_log
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_report_log
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportLogExample">
delete from load_test_report_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportLog">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportLog">
insert into load_test_report_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="reportId != null">
report_id,
</if>
<if test="resourceId != null">
resource_id,
</if>
<if test="part != null">
`part`,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
#{resourceId,jdbcType=VARCHAR},
</if>
<if test="part != null">
#{part,jdbcType=BIGINT},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportLogExample" resultType="java.lang.Long">
select count(*) from load_test_report_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.resourceId != null">
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if test="record.part != null">
`part` = #{record.part,jdbcType=BIGINT},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReportLog">
update load_test_report_log
<set>
<if test="reportId != null">
report_id = #{reportId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if test="part != null">
`part` = #{part,jdbcType=BIGINT},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARBINARY},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportLog">
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>
<update id="updateByPrimaryKey" parameterType="io.metersphere.load.domain.LoadTestReportLog">
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}
</update>
</mapper>

View File

@ -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<LoadTestReport> 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);
}

View File

@ -0,0 +1,448 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReport">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="test_id" jdbcType="VARCHAR" property="testId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="trigger_mode" jdbcType="VARCHAR" property="triggerMode" />
<result column="max_users" jdbcType="VARCHAR" property="maxUsers" />
<result column="avg_response_time" jdbcType="VARCHAR" property="avgResponseTime" />
<result column="tps" jdbcType="VARCHAR" property="tps" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="test_name" jdbcType="VARCHAR" property="testName" />
<result column="test_resource_pool_id" jdbcType="VARCHAR" property="testResourcePoolId" />
<result column="test_start_time" jdbcType="BIGINT" property="testStartTime" />
<result column="test_end_time" jdbcType="BIGINT" property="testEndTime" />
<result column="test_duration" jdbcType="BIGINT" property="testDuration" />
<result column="version_id" jdbcType="VARCHAR" property="versionId" />
<result column="relevance_test_plan_report_id" jdbcType="VARCHAR" property="relevanceTestPlanReportId" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
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
</sql>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from load_test_report
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_report
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportExample">
delete from load_test_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReport">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReport">
insert into load_test_report
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="testId != null">
test_id,
</if>
<if test="name != null">
`name`,
</if>
<if test="description != null">
description,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="status != null">
`status`,
</if>
<if test="createUser != null">
create_user,
</if>
<if test="triggerMode != null">
trigger_mode,
</if>
<if test="maxUsers != null">
max_users,
</if>
<if test="avgResponseTime != null">
avg_response_time,
</if>
<if test="tps != null">
tps,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="testName != null">
test_name,
</if>
<if test="testResourcePoolId != null">
test_resource_pool_id,
</if>
<if test="testStartTime != null">
test_start_time,
</if>
<if test="testEndTime != null">
test_end_time,
</if>
<if test="testDuration != null">
test_duration,
</if>
<if test="versionId != null">
version_id,
</if>
<if test="relevanceTestPlanReportId != null">
relevance_test_plan_report_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="testId != null">
#{testId,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
#{triggerMode,jdbcType=VARCHAR},
</if>
<if test="maxUsers != null">
#{maxUsers,jdbcType=VARCHAR},
</if>
<if test="avgResponseTime != null">
#{avgResponseTime,jdbcType=VARCHAR},
</if>
<if test="tps != null">
#{tps,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="testName != null">
#{testName,jdbcType=VARCHAR},
</if>
<if test="testResourcePoolId != null">
#{testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="testStartTime != null">
#{testStartTime,jdbcType=BIGINT},
</if>
<if test="testEndTime != null">
#{testEndTime,jdbcType=BIGINT},
</if>
<if test="testDuration != null">
#{testDuration,jdbcType=BIGINT},
</if>
<if test="versionId != null">
#{versionId,jdbcType=VARCHAR},
</if>
<if test="relevanceTestPlanReportId != null">
#{relevanceTestPlanReportId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportExample" resultType="java.lang.Long">
select count(*) from load_test_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.testId != null">
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.createUser != null">
create_user = #{record.createUser,jdbcType=VARCHAR},
</if>
<if test="record.triggerMode != null">
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
</if>
<if test="record.maxUsers != null">
max_users = #{record.maxUsers,jdbcType=VARCHAR},
</if>
<if test="record.avgResponseTime != null">
avg_response_time = #{record.avgResponseTime,jdbcType=VARCHAR},
</if>
<if test="record.tps != null">
tps = #{record.tps,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.testName != null">
test_name = #{record.testName,jdbcType=VARCHAR},
</if>
<if test="record.testResourcePoolId != null">
test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="record.testStartTime != null">
test_start_time = #{record.testStartTime,jdbcType=BIGINT},
</if>
<if test="record.testEndTime != null">
test_end_time = #{record.testEndTime,jdbcType=BIGINT},
</if>
<if test="record.testDuration != null">
test_duration = #{record.testDuration,jdbcType=BIGINT},
</if>
<if test="record.versionId != null">
version_id = #{record.versionId,jdbcType=VARCHAR},
</if>
<if test="record.relevanceTestPlanReportId != null">
relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReport">
update load_test_report
<set>
<if test="testId != null">
test_id = #{testId,jdbcType=VARCHAR},
</if>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
</if>
<if test="maxUsers != null">
max_users = #{maxUsers,jdbcType=VARCHAR},
</if>
<if test="avgResponseTime != null">
avg_response_time = #{avgResponseTime,jdbcType=VARCHAR},
</if>
<if test="tps != null">
tps = #{tps,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="testName != null">
test_name = #{testName,jdbcType=VARCHAR},
</if>
<if test="testResourcePoolId != null">
test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR},
</if>
<if test="testStartTime != null">
test_start_time = #{testStartTime,jdbcType=BIGINT},
</if>
<if test="testEndTime != null">
test_end_time = #{testEndTime,jdbcType=BIGINT},
</if>
<if test="testDuration != null">
test_duration = #{testDuration,jdbcType=BIGINT},
</if>
<if test="versionId != null">
version_id = #{versionId,jdbcType=VARCHAR},
</if>
<if test="relevanceTestPlanReportId != null">
relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="io.metersphere.load.domain.LoadTestReport">
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}
</update>
</mapper>

View File

@ -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<LoadTestReportResult> selectByExampleWithBLOBs(LoadTestReportResultExample example);
List<LoadTestReportResult> 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);
}

View File

@ -0,0 +1,234 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportResultMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportResult">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
<result column="report_key" jdbcType="VARCHAR" property="reportKey" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportResult">
<result column="report_value" jdbcType="LONGVARBINARY" property="reportValue" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, report_id, report_key
</sql>
<sql id="Blob_Column_List">
report_value
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResultExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_result
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_result
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_result
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from load_test_report_result
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultExample">
delete from load_test_report_result
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportResult">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportResult">
insert into load_test_report_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="reportId != null">
report_id,
</if>
<if test="reportKey != null">
report_key,
</if>
<if test="reportValue != null">
report_value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="reportKey != null">
#{reportKey,jdbcType=VARCHAR},
</if>
<if test="reportValue != null">
#{reportValue,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultExample" resultType="java.lang.Long">
select count(*) from load_test_report_result
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_result
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.reportKey != null">
report_key = #{record.reportKey,jdbcType=VARCHAR},
</if>
<if test="record.reportValue != null">
report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update load_test_report_result
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_key = #{record.reportKey,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReportResult">
update load_test_report_result
<set>
<if test="reportId != null">
report_id = #{reportId,jdbcType=VARCHAR},
</if>
<if test="reportKey != null">
report_key = #{reportKey,jdbcType=VARCHAR},
</if>
<if test="reportValue != null">
report_value = #{reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResult">
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>
<update id="updateByPrimaryKey" parameterType="io.metersphere.load.domain.LoadTestReportResult">
update load_test_report_result
set report_id = #{reportId,jdbcType=VARCHAR},
report_key = #{reportKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

View File

@ -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<LoadTestReportResultPart> selectByExampleWithBLOBs(LoadTestReportResultPartExample example);
List<LoadTestReportResultPart> 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);
}

View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportResultPartMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportResultPart">
<id column="report_id" jdbcType="VARCHAR" property="reportId" />
<id column="report_key" jdbcType="VARCHAR" property="reportKey" />
<id column="resource_index" jdbcType="INTEGER" property="resourceIndex" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportResultPart">
<result column="report_value" jdbcType="LONGVARBINARY" property="reportValue" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
report_id, report_key, resource_index
</sql>
<sql id="Blob_Column_List">
report_value
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResultPartExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_result_part
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultPartExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_result_part
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="map" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_result_part
where report_id = #{reportId,jdbcType=VARCHAR}
and report_key = #{reportKey,jdbcType=VARCHAR}
and resource_index = #{resourceIndex,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="map">
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>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultPartExample">
delete from load_test_report_result_part
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportResultPart">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportResultPart">
insert into load_test_report_result_part
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportId != null">
report_id,
</if>
<if test="reportKey != null">
report_key,
</if>
<if test="resourceIndex != null">
resource_index,
</if>
<if test="reportValue != null">
report_value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="reportKey != null">
#{reportKey,jdbcType=VARCHAR},
</if>
<if test="resourceIndex != null">
#{resourceIndex,jdbcType=INTEGER},
</if>
<if test="reportValue != null">
#{reportValue,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultPartExample" resultType="java.lang.Long">
select count(*) from load_test_report_result_part
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_result_part
<set>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.reportKey != null">
report_key = #{record.reportKey,jdbcType=VARCHAR},
</if>
<if test="record.resourceIndex != null">
resource_index = #{record.resourceIndex,jdbcType=INTEGER},
</if>
<if test="record.reportValue != null">
report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReportResultPart">
update load_test_report_result_part
<set>
<if test="reportValue != null">
report_value = #{reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
where report_id = #{reportId,jdbcType=VARCHAR}
and report_key = #{reportKey,jdbcType=VARCHAR}
and resource_index = #{resourceIndex,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResultPart">
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}
</update>
</mapper>

View File

@ -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<LoadTestReportResultRealtime> selectByExampleWithBLOBs(LoadTestReportResultRealtimeExample example);
List<LoadTestReportResultRealtime> 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);
}

View File

@ -0,0 +1,244 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.metersphere.load.mapper.LoadTestReportResultRealtimeMapper">
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportResultRealtime">
<id column="report_id" jdbcType="VARCHAR" property="reportId" />
<id column="report_key" jdbcType="VARCHAR" property="reportKey" />
<id column="resource_index" jdbcType="INTEGER" property="resourceIndex" />
<id column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportResultRealtime">
<result column="report_value" jdbcType="LONGVARBINARY" property="reportValue" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
report_id, report_key, resource_index, sort
</sql>
<sql id="Blob_Column_List">
report_value
</sql>
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtimeExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from load_test_report_result_realtime
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtimeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from load_test_report_result_realtime
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="map" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
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}
</select>
<delete id="deleteByPrimaryKey" parameterType="map">
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>
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtimeExample">
delete from load_test_report_result_realtime
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtime">
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>
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtime">
insert into load_test_report_result_realtime
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportId != null">
report_id,
</if>
<if test="reportKey != null">
report_key,
</if>
<if test="resourceIndex != null">
resource_index,
</if>
<if test="sort != null">
sort,
</if>
<if test="reportValue != null">
report_value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="reportKey != null">
#{reportKey,jdbcType=VARCHAR},
</if>
<if test="resourceIndex != null">
#{resourceIndex,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="reportValue != null">
#{reportValue,jdbcType=LONGVARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtimeExample" resultType="java.lang.Long">
select count(*) from load_test_report_result_realtime
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update load_test_report_result_realtime
<set>
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.reportKey != null">
report_key = #{record.reportKey,jdbcType=VARCHAR},
</if>
<if test="record.resourceIndex != null">
resource_index = #{record.resourceIndex,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.reportValue != null">
report_value = #{record.reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtime">
update load_test_report_result_realtime
<set>
<if test="reportValue != null">
report_value = #{reportValue,jdbcType=LONGVARBINARY},
</if>
</set>
where report_id = #{reportId,jdbcType=VARCHAR}
and report_key = #{reportKey,jdbcType=VARCHAR}
and resource_index = #{resourceIndex,jdbcType=INTEGER}
and sort = #{sort,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportResultRealtime">
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}
</update>
</mapper>

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

Some files were not shown because too many files have changed in this diff Show More