build: 分组校验 created updated
This commit is contained in:
parent
abf9035fce
commit
f4fa267d7a
|
@ -5,14 +5,13 @@ import io.metersphere.validation.groups.Updated;
|
|||
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;
|
||||
|
||||
@Data
|
||||
public class ApiDefinition implements Serializable {
|
||||
@Schema(title = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
@ -20,7 +19,7 @@ public class ApiDefinition implements Serializable {
|
|||
private Long createTime;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
|
@ -28,7 +27,7 @@ public class ApiDefinition implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
|
@ -39,22 +38,22 @@ public class ApiDefinition implements Serializable {
|
|||
private Long deleteTime;
|
||||
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.deleted.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.deleted.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_definition.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean deleted;
|
||||
|
||||
@Schema(title = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_definition.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.method.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.method.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class})
|
||||
private String method;
|
||||
|
||||
@Schema(title = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class})
|
||||
private String protocol;
|
||||
|
||||
|
@ -65,7 +64,7 @@ public class ApiDefinition implements Serializable {
|
|||
private String modulePath;
|
||||
|
||||
@Schema(title = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.status.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.status.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class})
|
||||
private String status;
|
||||
|
||||
|
@ -79,12 +78,12 @@ public class ApiDefinition implements Serializable {
|
|||
private String tags;
|
||||
|
||||
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.pos.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.pos.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 19, message = "{api_definition.pos.length_range}", groups = {Created.class, Updated.class})
|
||||
private Long pos;
|
||||
|
||||
@Schema(title = "是否启用同步", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.sync_enable.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_definition.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean syncEnable;
|
||||
|
||||
|
@ -92,7 +91,7 @@ public class ApiDefinition implements Serializable {
|
|||
private Long syncTime;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
|
@ -100,7 +99,7 @@ public class ApiDefinition implements Serializable {
|
|||
private String environmentId;
|
||||
|
||||
@Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition.latest.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition.latest.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_definition.latest.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean latest;
|
||||
|
||||
|
|
|
@ -5,14 +5,13 @@ import io.metersphere.validation.groups.Updated;
|
|||
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;
|
||||
|
||||
@Data
|
||||
public class ApiDefinitionBlob implements Serializable {
|
||||
@Schema(title = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiDefinitionFollow implements Serializable {
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_follow.api_definition_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_follow.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_follow.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiDefinitionId;
|
||||
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_follow.follow_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String followId;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiDefinitionMock implements Serializable {
|
||||
@Schema(title = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
@ -28,12 +28,12 @@ public class ApiDefinitionMock implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 200, message = "{api_definition_mock.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
|
@ -41,22 +41,22 @@ public class ApiDefinitionMock implements Serializable {
|
|||
private String tags;
|
||||
|
||||
@Schema(title = "启用/禁用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.enable.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.enable.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_definition_mock.enable.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean enable;
|
||||
|
||||
@Schema(title = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.expect_num.length_range}", groups = {Created.class, Updated.class})
|
||||
private String expectNum;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiDefinitionId;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiDefinitionMockConfig implements Serializable {
|
||||
@Schema(title = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_mock_config.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock_config.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock_config.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiDefinitionModule implements Serializable {
|
||||
@Schema(title = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
@ -22,42 +22,42 @@ public class ApiDefinitionModule implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_definition_module.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "协议", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.protocol.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.protocol.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 64, message = "{api_definition_module.protocol.length_range}", groups = {Created.class, Updated.class})
|
||||
private String protocol;
|
||||
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.parent_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.parent_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String parentId;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "树节点级别", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.level.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.level.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_definition_module.level.length_range}", groups = {Created.class, Updated.class})
|
||||
private Integer level;
|
||||
|
||||
@Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_module.pos.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.pos.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_definition_module.pos.length_range}", groups = {Created.class, Updated.class})
|
||||
private Integer pos;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiDefinitionSwagger implements Serializable {
|
||||
@Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_definition_swagger.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "url地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_definition_swagger.swagger_url.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_definition_swagger.swagger_url.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 500, message = "{api_definition_swagger.swagger_url.length_range}", groups = {Created.class, Updated.class})
|
||||
private String swaggerUrl;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiEnvironmentConfig implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_environment_config.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_environment_config.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_environment_config.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
@ -22,12 +22,12 @@ public class ApiEnvironmentConfig implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_environment_config.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_environment_config.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_environment_config.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_environment_config.environment_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_environment_config.environment_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_environment_config.environment_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String environmentId;
|
||||
|
||||
|
|
|
@ -11,17 +11,17 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiReport implements Serializable {
|
||||
@Schema(title = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 200, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String resourceId;
|
||||
|
||||
|
@ -32,22 +32,22 @@ public class ApiReport implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "创建人fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.deleted.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.deleted.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_report.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean deleted;
|
||||
|
||||
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.status.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.status.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class})
|
||||
private String status;
|
||||
|
||||
|
@ -58,17 +58,17 @@ public class ApiReport implements Serializable {
|
|||
private Long endTime;
|
||||
|
||||
@Schema(title = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_report.run_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
private String runMode;
|
||||
|
||||
@Schema(title = "资源池fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String poolId;
|
||||
|
||||
@Schema(title = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
private String triggerMode;
|
||||
|
||||
|
@ -76,17 +76,17 @@ public class ApiReport implements Serializable {
|
|||
private String versionId;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.integrated_report_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.integrated_report_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report.integrated_report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String integratedReportId;
|
||||
|
||||
@Schema(title = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report.integrated.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_report.integrated.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_report.integrated.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean integrated;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiReportBlob implements Serializable {
|
||||
@Schema(title = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_report_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_report_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -5,24 +5,23 @@ import io.metersphere.validation.groups.Updated;
|
|||
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;
|
||||
|
||||
@Data
|
||||
public class ApiScenario implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_scenario.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
|
@ -36,7 +35,7 @@ public class ApiScenario implements Serializable {
|
|||
private String deleteUser;
|
||||
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
|
@ -44,27 +43,27 @@ public class ApiScenario implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.level.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.level.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_scenario.level.length_range}", groups = {Created.class, Updated.class})
|
||||
private String level;
|
||||
|
||||
@Schema(title = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.status.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.status.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_scenario.status.length_range}", groups = {Created.class, Updated.class})
|
||||
private String status;
|
||||
|
||||
@Schema(title = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.principal.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.principal.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.principal.length_range}", groups = {Created.class, Updated.class})
|
||||
private String principal;
|
||||
|
||||
@Schema(title = "场景步骤总数", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.step_total.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.step_total.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_scenario.step_total.length_range}", groups = {Created.class, Updated.class})
|
||||
private Integer stepTotal;
|
||||
|
||||
@Schema(title = "通过率", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.pass_rate.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.pass_rate.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 19, message = "{api_scenario.pass_rate.length_range}", groups = {Created.class, Updated.class})
|
||||
private Long passRate;
|
||||
|
||||
|
@ -78,12 +77,12 @@ public class ApiScenario implements Serializable {
|
|||
private String customNum;
|
||||
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.deleted.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.deleted.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_scenario.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean deleted;
|
||||
|
||||
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.pos.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.pos.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 19, message = "{api_scenario.pos.length_range}", groups = {Created.class, Updated.class})
|
||||
private Long pos;
|
||||
|
||||
|
@ -97,7 +96,7 @@ public class ApiScenario implements Serializable {
|
|||
private Boolean latest;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
|
@ -117,7 +116,7 @@ public class ApiScenario implements Serializable {
|
|||
private String tags;
|
||||
|
||||
@Schema(title = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario.grouped.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario.grouped.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_scenario.grouped.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean grouped;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioBlob implements Serializable {
|
||||
@Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,17 +11,17 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioEnvironment implements Serializable {
|
||||
@Schema(title = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_environment.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_environment.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiScenarioId;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_environment.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioFollow implements Serializable {
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_follow.api_scenario_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_follow.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_follow.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiScenarioId;
|
||||
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_follow.follow_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String followId;
|
||||
|
||||
|
|
|
@ -11,22 +11,22 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioModule implements Serializable {
|
||||
@Schema(title = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_scenario_module.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "模块级别", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.level.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.level.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_scenario_module.level.length_range}", groups = {Created.class, Updated.class})
|
||||
private Integer level;
|
||||
|
||||
@Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.pos.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.pos.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 10, message = "{api_scenario_module.pos.length_range}", groups = {Created.class, Updated.class})
|
||||
private Integer pos;
|
||||
|
||||
|
@ -37,22 +37,22 @@ public class ApiScenarioModule implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_module.parent_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.parent_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String parentId;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioReference implements Serializable {
|
||||
@Schema(title = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_reference.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_reference.api_scenario_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiScenarioId;
|
||||
|
||||
|
@ -24,12 +24,12 @@ public class ApiScenarioReference implements Serializable {
|
|||
private Long createTime;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_reference.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_reference.reference_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.reference_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String referenceId;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioReport implements Serializable {
|
||||
@Schema(title = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_scenario_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
|
@ -24,7 +24,7 @@ public class ApiScenarioReport implements Serializable {
|
|||
private Long createTime;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
|
@ -35,12 +35,12 @@ public class ApiScenarioReport implements Serializable {
|
|||
private String deleteUser;
|
||||
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.deleted.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.deleted.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_scenario_report.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean deleted;
|
||||
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
|
@ -51,22 +51,22 @@ public class ApiScenarioReport implements Serializable {
|
|||
private Long passRate;
|
||||
|
||||
@Schema(title = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.status.length_range}", groups = {Created.class, Updated.class})
|
||||
private String status;
|
||||
|
||||
@Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.trigger_mode.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.trigger_mode.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
private String triggerMode;
|
||||
|
||||
@Schema(title = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.run_mode.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.run_mode.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.run_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
private String runMode;
|
||||
|
||||
@Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String poolId;
|
||||
|
||||
|
@ -74,17 +74,17 @@ public class ApiScenarioReport implements Serializable {
|
|||
private String versionId;
|
||||
|
||||
@Schema(title = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.integrated.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.integrated.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_scenario_report.integrated.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean integrated;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String scenarioId;
|
||||
|
||||
|
|
|
@ -11,17 +11,17 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioReportDetail implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report_detail.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_detail.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report_detail.report_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_detail.report_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportId;
|
||||
|
||||
@Schema(title = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String resourceId;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioReportLog implements Serializable {
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report_log.report_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_log.report_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_log.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportId;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiScenarioReportStructure implements Serializable {
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_scenario_report_structure.report_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_structure.report_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_structure.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportId;
|
||||
|
||||
|
|
|
@ -11,17 +11,17 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiSyncConfig implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_sync_config.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.resource_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.resource_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_sync_config.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String resourceId;
|
||||
|
||||
@Schema(title = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.resource_type.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.resource_type.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_sync_config.resource_type.length_range}", groups = {Created.class, Updated.class})
|
||||
private String resourceType;
|
||||
|
||||
|
@ -29,17 +29,17 @@ public class ApiSyncConfig implements Serializable {
|
|||
private Boolean hide;
|
||||
|
||||
@Schema(title = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.notify_case_creator.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.notify_case_creator.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.notify_case_creator.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean notifyCaseCreator;
|
||||
|
||||
@Schema(title = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.notify_scenario_creator.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.notify_scenario_creator.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.notify_scenario_creator.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean notifyScenarioCreator;
|
||||
|
||||
@Schema(title = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_sync_config.sync_enable.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean syncEnable;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiTestCase implements Serializable {
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.name.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.name.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 255, message = "{api_test_case.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
|
@ -24,7 +24,7 @@ public class ApiTestCase implements Serializable {
|
|||
private Long createTime;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.create_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
|
@ -32,7 +32,7 @@ public class ApiTestCase implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.update_user.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.update_user.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String updateUser;
|
||||
|
||||
|
@ -43,12 +43,12 @@ public class ApiTestCase implements Serializable {
|
|||
private String deleteUser;
|
||||
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.deleted.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.deleted.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_test_case.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean deleted;
|
||||
|
||||
@Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.priority.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.priority.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.priority.length_range}", groups = {Created.class, Updated.class})
|
||||
private String priority;
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class ApiTestCase implements Serializable {
|
|||
private String tags;
|
||||
|
||||
@Schema(title = "用例状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.status.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.status.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 20, message = "{api_test_case.status.length_range}", groups = {Created.class, Updated.class})
|
||||
private String status;
|
||||
|
||||
|
@ -70,12 +70,12 @@ public class ApiTestCase implements Serializable {
|
|||
private String apiReportId;
|
||||
|
||||
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.pos.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.pos.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 19, message = "{api_test_case.pos.length_range}", groups = {Created.class, Updated.class})
|
||||
private Long pos;
|
||||
|
||||
@Schema(title = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.sync_enable.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 1, message = "{api_test_case.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
private Boolean syncEnable;
|
||||
|
||||
|
@ -83,12 +83,12 @@ public class ApiTestCase implements Serializable {
|
|||
private Long syncTime;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.project_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.project_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.api_definition_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String apiDefinitionId;
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class ApiTestCase implements Serializable {
|
|||
private String versionId;
|
||||
|
||||
@Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case.principal.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case.principal.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.principal.length_range}", groups = {Created.class, Updated.class})
|
||||
private String principal;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiTestCaseBlob implements Serializable {
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiTestCaseFollow implements Serializable {
|
||||
@Schema(title = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case_follow.case_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case_follow.case_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case_follow.case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String caseId;
|
||||
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_test_case_follow.follow_id.not_blank}", groups = {Updated.class})
|
||||
@NotBlank(message = "{api_test_case_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{api_test_case_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String followId;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTest implements Serializable {
|
||||
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestApi implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_api.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_api.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_api.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestBlob implements Serializable {
|
||||
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestReport implements Serializable {
|
||||
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_report.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestReportBlob implements Serializable {
|
||||
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_report_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestReportLog implements Serializable {
|
||||
@Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report_log.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestReportResult implements Serializable {
|
||||
@Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report_result.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ApiTemplate implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{api_template.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_template.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{api_template.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class CustomField implements Serializable {
|
||||
@Schema(title = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{custom_field.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{custom_field.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{custom_field.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class CustomFieldTemplate implements Serializable {
|
||||
@Schema(title = "自定义模版ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{custom_field_template.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{custom_field_template.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{custom_field_template.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class CustomFunction implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{custom_function.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{custom_function.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{custom_function.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class CustomFunctionBlob implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{custom_function_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{custom_function_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{custom_function_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FakeError implements Serializable {
|
||||
@Schema(title = "误报ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{fake_error.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{fake_error.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{fake_error.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FakeErrorBlob implements Serializable {
|
||||
@Schema(title = "Test ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{fake_error_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{fake_error_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{fake_error_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FileMetadata implements Serializable {
|
||||
@Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{file_metadata.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{file_metadata.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{file_metadata.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FileMetadataBlob implements Serializable {
|
||||
@Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{file_metadata_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{file_metadata_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{file_metadata_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FileModule implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{file_module.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{file_module.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{file_module.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FileModuleBlob implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{file_module_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{file_module_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{file_module_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FunctionalCaseTemplate implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{functional_case_template.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_template.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{functional_case_template.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class FunctionalCaseTemplateExtend implements Serializable {
|
||||
@Schema(title = "模板ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{functional_case_template_extend.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_template_extend.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{functional_case_template_extend.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class IssueTemplate implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{issue_template.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{issue_template.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{issue_template.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class IssueTemplateExtend implements Serializable {
|
||||
@Schema(title = "缺陷模板ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{issue_template_extend.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{issue_template_extend.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{issue_template_extend.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Project implements Serializable {
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{project.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{project.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{project.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ProjectExtend implements Serializable {
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{project_extend.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{project_extend.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{project_extend.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ProjectVersion implements Serializable {
|
||||
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{project_version.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{project_version.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{project_version.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Environment implements Serializable {
|
||||
@Schema(title = "环境ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{environment.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class EnvironmentGroup implements Serializable {
|
||||
@Schema(title = "环境组id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{environment_group.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class EnvironmentGroupProject implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group_project.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{environment_group_project.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group_project.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ExecutionQueue implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{execution_queue.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ExecutionQueueDetail implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue_detail.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{execution_queue_detail.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue_detail.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ShareInfo implements Serializable {
|
||||
@Schema(title = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{share_info.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{share_info.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{share_info.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class AuthSource implements Serializable {
|
||||
@Schema(title = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{auth_source.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{auth_source.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{auth_source.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class License implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{license.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{license.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{license.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class MessageTask implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{message_task.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{message_task.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{message_task.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class MessageTaskBlob implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{message_task_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{message_task_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{message_task_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Notification implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{notification.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{notification.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 19, message = "{notification.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class NoviceStatistics implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{novice_statistics.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{novice_statistics.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{novice_statistics.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class OperatingLog implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{operating_log.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{operating_log.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{operating_log.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class OperatingLogResource implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{operating_log_resource.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{operating_log_resource.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{operating_log_resource.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Plugin implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{plugin.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{plugin.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{plugin.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class PluginBlob implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{plugin_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{plugin_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{plugin_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Quota implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{quota.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{quota.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{quota.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Schedule implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{schedule.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{schedule.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{schedule.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class ServiceIntegration implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{service_integration.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{service_integration.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{service_integration.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class TestResource implements Serializable {
|
||||
@Schema(title = "资源节点ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{test_resource.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_resource.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{test_resource.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class TestResourcePool implements Serializable {
|
||||
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{test_resource_pool.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_resource_pool.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{test_resource_pool.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UserExtend implements Serializable {
|
||||
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{user_extend.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{user_extend.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{user_extend.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UserKey implements Serializable {
|
||||
@Schema(title = "user_key ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{user_key.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{user_key.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{user_key.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UserRole implements Serializable {
|
||||
@Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{user_role.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{user_role.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{user_role.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UserRolePermission implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{user_role_permission.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{user_role_permission.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{user_role_permission.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UserRoleRelation implements Serializable {
|
||||
@Schema(title = "用户组关系ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{user_role_relation.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{user_role_relation.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{user_role_relation.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class Workspace implements Serializable {
|
||||
@Schema(title = "工作空间ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{workspace.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{workspace.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{workspace.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiCustomCommand implements Serializable {
|
||||
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_custom_command.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_custom_command.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_custom_command.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiCustomCommandModule implements Serializable {
|
||||
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_custom_command_module.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_custom_command_module.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_custom_command_module.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiElement implements Serializable {
|
||||
@Schema(title = "元素id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_element.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_element.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_element.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiElementScenarioReference implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_element_scenario_reference.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_element_scenario_reference.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_element_scenario_reference.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenario implements Serializable {
|
||||
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioBlob implements Serializable {
|
||||
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_blob.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioModule implements Serializable {
|
||||
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_module.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_module.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_module.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioReference implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_reference.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_reference.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_reference.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioReport implements Serializable {
|
||||
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_report.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_report.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_report.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioReportDetail implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_report_detail.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_report_detail.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_report_detail.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
|||
@Data
|
||||
public class UiScenarioReportStructure implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{ui_scenario_report_structure.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{ui_scenario_report_structure.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{ui_scenario_report_structure.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue