build: swagger v3
This commit is contained in:
parent
0b89e84917
commit
6bbe66a428
|
@ -19,7 +19,7 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -37,11 +37,11 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String deleteUser;
|
||||
|
||||
|
||||
|
@ -50,39 +50,39 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 1, message = "{api_definition.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{api_definition.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.method.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String method;
|
||||
|
||||
@Size(min = 1, max = 20, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String protocol;
|
||||
|
||||
|
||||
@Schema(title = "接口路径-只有HTTP协议有值", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "接口路径-只有HTTP协议有值", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String path;
|
||||
|
||||
|
||||
@Schema(title = "模块全路径-用于导入处理", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
|
||||
@Schema(title = "模块全路径-用于导入处理", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String modulePath;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
|
||||
@Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String moduleId;
|
||||
|
||||
|
||||
|
@ -90,7 +90,7 @@ public class ApiDefinition implements Serializable {
|
|||
private Integer num;
|
||||
|
||||
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 1, message = "{api_definition.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否启用同步", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否启用同步", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean syncEnable;
|
||||
|
||||
|
||||
|
@ -108,28 +108,28 @@ public class ApiDefinition implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentId;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_definition.latest.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition.latest.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean latest;
|
||||
|
||||
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
|
||||
@Schema(title = "版本引用fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本引用fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String refId;
|
||||
|
||||
|
||||
@Schema(title = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String description;
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ public class ApiDefinitionBlob implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_blob.api_definition_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -18,12 +18,12 @@ public class ApiDefinitionFollow implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_follow.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_follow.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiDefinitionId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String followId;
|
||||
|
||||
}
|
|
@ -19,13 +19,13 @@ public class ApiDefinitionMock implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_mock.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "接口路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "接口路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String apiPath;
|
||||
|
||||
@Schema(title = "接口类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String apiMethod;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -36,15 +36,15 @@ public class ApiDefinitionMock implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 200, message = "{api_definition_mock.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(title = "自定义标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "自定义标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
@Schema(title = "启用/禁用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
@ -52,17 +52,17 @@ public class ApiDefinitionMock implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.expect_num.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String expectNum;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_mock.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiDefinitionId;
|
||||
|
||||
|
||||
|
|
|
@ -19,13 +19,13 @@ public class ApiDefinitionMockConfig implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_mock_config.api_definition_mock_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private byte[] request;
|
||||
|
||||
@Schema(title = "响应内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "响应内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private byte[] response;
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiDefinitionModule implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_module.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -30,32 +30,32 @@ public class ApiDefinitionModule implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{api_definition_module.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{api_definition_module.protocol.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.protocol.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "协议", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "协议", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String protocol;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.parent_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String parentId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_module.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_module.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "树节点级别", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
|
|
@ -19,30 +19,30 @@ public class ApiDefinitionSwagger implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 500, message = "{api_definition_swagger.swagger_url.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_swagger.swagger_url.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "url地址", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "url地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String swaggerUrl;
|
||||
|
||||
@Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String moduleId;
|
||||
|
||||
@Schema(title = "模块路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "模块路径", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String modulePath;
|
||||
|
||||
@Schema(title = "鉴权配置信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "鉴权配置信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private byte[] config;
|
||||
|
||||
@Schema(title = "导入模式/覆盖/不覆盖", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "导入模式/覆盖/不覆盖", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Boolean mode;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "导入版本", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "导入版本", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiEnvironmentConfig implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_definition_env.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
|
||||
|
@ -31,11 +31,11 @@ public class ApiEnvironmentConfig implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_env.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_env.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_definition_env.environment_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_definition_env.environment_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String environmentId;
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiFakeErrorConfig implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_fake_error_config.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "误报pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "误报pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -30,33 +30,33 @@ public class ApiFakeErrorConfig implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_fake_error_config.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_fake_error_config.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_fake_error_config.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_fake_error_config.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{api_fake_error_config.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_fake_error_config.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "误报名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "误报名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{api_fake_error_config.match_type.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_fake_error_config.match_type.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "匹配类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "匹配类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String matchType;
|
||||
|
||||
@Schema(title = "状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Boolean status;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_fake_error_config.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_fake_error_config.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String description;
|
||||
|
||||
@Schema(title = "误报内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -19,17 +19,17 @@ public class ApiReport implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_report.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 200, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String resourceId;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -40,22 +40,22 @@ public class ApiReport implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_report.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
|
||||
|
@ -68,36 +68,36 @@ public class ApiReport implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 20, message = "{api_report.run_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String runMode;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String poolId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String triggerMode;
|
||||
|
||||
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_report.integrated_report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.integrated_report_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String integratedReportId;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_report.integrated.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_report.integrated.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean integrated;
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiReportBlob implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_report_blob.api_report_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "结果内容详情", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -19,17 +19,17 @@ public class ApiScenario implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 200, message = "{api_scenario.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -38,12 +38,12 @@ public class ApiScenario implements Serializable {
|
|||
@Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Long deleteTime;
|
||||
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String deleteUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
|
||||
|
@ -52,17 +52,17 @@ public class ApiScenario implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 10, message = "{api_scenario.level.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.level.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 10]")
|
||||
@Schema(title = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String level;
|
||||
|
||||
@Size(min = 1, max = 20, message = "{api_scenario.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.principal.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.principal.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String principal;
|
||||
|
||||
|
||||
|
@ -72,55 +72,55 @@ public class ApiScenario implements Serializable {
|
|||
@Schema(title = "通过率", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long passRate;
|
||||
|
||||
@Schema(title = "最后一次执行的结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "最后一次执行的结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String reportStatus;
|
||||
|
||||
@Schema(title = "编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Integer num;
|
||||
|
||||
@Schema(title = "自定义id", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "自定义id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String customNum;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_scenario.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_scenario.environment_group.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.environment_group.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean environmentGroup;
|
||||
|
||||
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long pos;
|
||||
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
@Schema(title = "引用资源fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "引用资源fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String refId;
|
||||
|
||||
@Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Boolean latest;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "场景模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景模块fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String apiScenarioModuleId;
|
||||
|
||||
@Schema(title = "最后一次执行的报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "最后一次执行的报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String reportId;
|
||||
|
||||
@Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "描述信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String description;
|
||||
|
||||
@Schema(title = "模块全路径/用于导入模块创建", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
|
||||
@Schema(title = "模块全路径/用于导入模块创建", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String modulePath;
|
||||
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiScenarioBlob implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_blob.api_scenario_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "场景步骤内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -19,23 +19,23 @@ public class ApiScenarioEnvironment implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_environment.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiScenarioId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_environment.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentId;
|
||||
|
||||
@Schema(title = "环境组fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentGroupId;
|
||||
|
||||
}
|
|
@ -18,12 +18,12 @@ public class ApiScenarioFollow implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_follow.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_follow.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiScenarioId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String followId;
|
||||
|
||||
}
|
|
@ -19,12 +19,12 @@ public class ApiScenarioModule implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_module.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{api_scenario_module.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(title = "模块级别", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -41,22 +41,22 @@ public class ApiScenarioModule implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_module.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_module.parent_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String parentId;
|
||||
|
||||
}
|
|
@ -19,12 +19,12 @@ public class ApiScenarioReference implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_reference.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiScenarioId;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -32,18 +32,18 @@ public class ApiScenarioReference implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_reference.reference_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String referenceId;
|
||||
|
||||
@Schema(title = "引用步骤类型/REF/COPY", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "引用步骤类型/REF/COPY", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String referenceType;
|
||||
|
||||
@Schema(title = "步骤类型/CASE/API", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "步骤类型/CASE/API", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String dataType;
|
||||
|
||||
}
|
|
@ -19,12 +19,12 @@ public class ApiScenarioReport implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_report.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 300, message = "{api_scenario_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 300]")
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -32,23 +32,23 @@ public class ApiScenarioReport implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Long deleteTime;
|
||||
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String deleteUser;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_scenario_report.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -59,41 +59,41 @@ public class ApiScenarioReport implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.trigger_mode.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String triggerMode;
|
||||
|
||||
@Size(min = 1, max = 20, message = "{api_scenario_report.run_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.run_mode.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String runMode;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String poolId;
|
||||
|
||||
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_scenario_report.integrated.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.integrated.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean integrated;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String scenarioId;
|
||||
|
||||
}
|
|
@ -21,23 +21,23 @@ public class ApiScenarioReportDetail implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_report_detail.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_detail.report_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reportId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String resourceId;
|
||||
|
||||
@Schema(title = "开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Long startTime;
|
||||
|
||||
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Schema(title = "单个请求步骤时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
@ -49,22 +49,22 @@ public class ApiScenarioReportDetail implements Serializable {
|
|||
@Schema(title = "失败断言数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Long passAssertionsTotal;
|
||||
|
||||
@Schema(title = "误报编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "误报编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String fakeCode;
|
||||
|
||||
@Schema(title = "请求名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "请求名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String requestName;
|
||||
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentId;
|
||||
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "失败总数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Integer errorTotal;
|
||||
|
||||
@Schema(title = "请求响应码", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "请求响应码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String code;
|
||||
|
||||
@Schema(title = "执行结果", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ public class ApiScenarioReportLog implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_report_log.report_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reportId;
|
||||
|
||||
@Schema(title = "执行日志", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ public class ApiScenarioReportStructure implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_scenario_report_structure.report_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reportId;
|
||||
|
||||
@Schema(title = "资源步骤结构树", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -19,43 +19,43 @@ public class ApiSyncConfig implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_sync_config.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_sync_config.resource_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.resource_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String resourceId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_sync_config.resource_type.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.resource_type.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String resourceType;
|
||||
|
||||
|
||||
@Schema(title = "是否隐藏", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否隐藏", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Boolean hide;
|
||||
|
||||
|
||||
@Schema(title = "同步规则", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "同步规则", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String ruleConfig;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.notify_case_creator.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.notify_case_creator.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean notifyCaseCreator;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.notify_scenario_creator.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.notify_scenario_creator.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean notifyScenarioCreator;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_sync_config.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_sync_config.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean syncEnable;
|
||||
|
||||
@Schema(title = "是否发送通知", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否发送通知", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Boolean noticeEnable;
|
||||
|
||||
}
|
|
@ -19,12 +19,12 @@ public class ApiTestCase implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_test_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 200, message = "{api_test_case.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -32,7 +32,7 @@ public class ApiTestCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -40,38 +40,38 @@ public class ApiTestCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.update_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.update_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String updateUser;
|
||||
|
||||
@Schema(title = "删除时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Long deleteTime;
|
||||
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String deleteUser;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{api_test_case.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.priority.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.priority.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String priority;
|
||||
|
||||
@Schema(title = "接口用例编号id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private Integer num;
|
||||
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 500]")
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
@Schema(title = "用例状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "用例状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Schema(title = "最新执行结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "最新执行结果状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String apiReportStatus;
|
||||
|
||||
@Schema(title = "最后执行结果报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "最后执行结果报告fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String apiReportId;
|
||||
|
||||
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -79,7 +79,7 @@ public class ApiTestCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 1, message = "{api_test_case.sync_enable.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.sync_enable.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean syncEnable;
|
||||
|
||||
@Schema(title = "需要同步的开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
@ -87,23 +87,23 @@ public class ApiTestCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.api_definition_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.api_definition_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiDefinitionId;
|
||||
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case.principal.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case.principal.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String principal;
|
||||
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境fk", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentId;
|
||||
|
||||
}
|
|
@ -19,7 +19,7 @@ public class ApiTestCaseBlob implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{api_test_case_blob.api_test_case_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Schema(title = "请求内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
|
|
|
@ -17,12 +17,12 @@ public class ApiTestCaseFollow implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Size(min = 1, max = 50, message = "{api_test_case_follow.case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case_follow.case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String caseId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{api_test_case_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{api_test_case_follow.follow_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String followId;
|
||||
|
||||
}
|
|
@ -19,17 +19,17 @@ public class CaseReview implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{case_review.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 200, message = "{case_review.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 200]")
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{case_review.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审状态:未开始/进行中/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评审状态:未开始/进行中/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
|
||||
|
@ -50,21 +50,21 @@ public class CaseReview implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{case_review.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
|
||||
@Schema(title = "标签", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{case_review.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{case_review.review_pass_rule.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review.review_pass_rule.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审规则:单人通过/全部通过", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评审规则:单人通过/全部通过", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewPassRule;
|
||||
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@ public class CaseReviewFollow implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{case_review_follow.review_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewId;
|
||||
|
||||
|
||||
@NotBlank(message = "{case_review_follow.follow_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "关注人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "关注人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String followId;
|
||||
|
||||
|
||||
|
|
|
@ -19,22 +19,22 @@ public class CaseReviewFunctionalCase implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{case_review_functional_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case.review_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case.review_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case.case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case.case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String caseId;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{case_review_functional_case.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审状态:进行中/通过/不通过/重新提审", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评审状态:进行中/通过/不通过/重新提审", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ public class CaseReviewFunctionalCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class CaseReviewFunctionalCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 1, message = "{case_review_functional_case.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "关联的用例是否放入回收站", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "关联的用例是否放入回收站", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@ public class CaseReviewFunctionalCaseUser implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case_user.case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "功能用例和评审中间表的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例和评审中间表的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String caseId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.review_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case_user.review_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{case_review_functional_case_user.user_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{case_review_functional_case_user.user_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String userId;
|
||||
|
||||
|
||||
|
|
|
@ -15,11 +15,11 @@ public class CaseReviewUser implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotBlank(message = "{case_review_user.review_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewId;
|
||||
|
||||
@NotBlank(message = "{case_review_user.user_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String userId;
|
||||
|
||||
|
||||
|
|
|
@ -15,19 +15,19 @@ public class CustomFieldTestCase implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotBlank(message = "{custom_field_test_case.resource_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String resourceId;
|
||||
|
||||
@NotBlank(message = "{custom_field_test_case.field_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String fieldId;
|
||||
|
||||
|
||||
@Schema(title = "字段值", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
|
||||
@Schema(title = "字段值", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String value;
|
||||
|
||||
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String textValue;
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ public class FunctionalCase implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{functional_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
|
||||
|
@ -30,36 +30,36 @@ public class FunctionalCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 64, message = "{functional_case.custom_num.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.custom_num.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "自定义业务ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "自定义业务ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String customNum;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case.module_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.module_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String moduleId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{functional_case.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{functional_case.review_status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.review_status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评审状态:未开始/进行中/已完成/已结束", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评审状态:未开始/进行中/已完成/已结束", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String reviewStatus;
|
||||
|
||||
|
||||
@Schema(title = "标签(JSON)", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 1000]")
|
||||
@Schema(title = "标签(JSON)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String tags;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{functional_case.step_model.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.step_model.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "编辑模式:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "编辑模式:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String stepModel;
|
||||
|
||||
|
||||
|
@ -68,41 +68,41 @@ public class FunctionalCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{functional_case.version_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.version_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String versionId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case.ref_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.ref_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String refId;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{functional_case.last_execute_result.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.last_execute_result.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "最近的执行结果:未执行/通过/失败/阻塞/跳过", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "最近的执行结果:未执行/通过/失败/阻塞/跳过", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String lastExecuteResult;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{functional_case.deleted.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.deleted.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否在回收站:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否在回收站:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean deleted;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{functional_case.public_case.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.public_case.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否是公共用例:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否是公共用例:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean publicCase;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{functional_case.latest.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.latest.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否为最新版本:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否为最新版本:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean latest;
|
||||
|
||||
@Size(min = 1, max = 100, message = "{functional_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "删除人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String deleteUser;
|
||||
|
||||
|
||||
|
|
|
@ -15,11 +15,11 @@ public class FunctionalCaseAttachment implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotBlank(message = "{functional_case_attachment.functional_case_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String functionalCaseId;
|
||||
|
||||
@NotBlank(message = "{functional_case_attachment.file_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String fileId;
|
||||
|
||||
}
|
||||
|
|
|
@ -19,32 +19,32 @@ public class FunctionalCaseComment implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{functional_case_comment.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_comment.case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_comment.case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String caseId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_comment.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_comment.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "评论人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "评论人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
@Schema(title = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{functional_case_comment.type.length_range}", groups = {Created.class, Updated.class})
|
||||
|
||||
@NotBlank(message = "{functional_case_comment.type.not_blank}", groups = {Created.class})
|
||||
|
||||
@Schema(title = "评论类型:用例评论/测试计划用例评论/评审用例评论", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "评论类型:用例评论/测试计划用例评论/评审用例评论", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String type;
|
||||
|
||||
|
||||
@Schema(title = "当前评审所属的测试计划ID或评审ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "当前评审所属的测试计划ID或评审ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String belongId;
|
||||
|
||||
|
||||
|
|
|
@ -15,11 +15,11 @@ public class FunctionalCaseFollow implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotBlank(message = "{functional_case_follow.case_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String caseId;
|
||||
|
||||
@NotBlank(message = "{functional_case_follow.follow_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String followId;
|
||||
|
||||
|
||||
|
|
|
@ -19,20 +19,20 @@ public class FunctionalCaseModule implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{functional_case_module.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_module.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_module.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 100, message = "{functional_case_module.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_module.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
|
||||
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(title = "父节点ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "父节点ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String parentId;
|
||||
|
||||
|
||||
|
@ -52,6 +52,6 @@ public class FunctionalCaseModule implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_module.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_module.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
}
|
||||
|
|
|
@ -18,27 +18,27 @@ public class FunctionalCaseRelationshipEdge implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{functional_case_relationship_edge.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.source_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_relationship_edge.source_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String sourceId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.target_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_relationship_edge.target_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String targetId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.graph_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_relationship_edge.graph_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String graphId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_relationship_edge.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_relationship_edge.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
|
|
@ -19,22 +19,22 @@ public class FunctionalCaseTest implements Serializable {
|
|||
|
||||
@Id
|
||||
@NotBlank(message = "{functional_case_test.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_test.functional_case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_test.functional_case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String functionalCaseId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{functional_case_test.test_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_test.test_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "其他类型用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "其他类型用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testId;
|
||||
|
||||
@Size(min = 1, max = 64, message = "{functional_case_test.test_type.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{functional_case_test.test_type.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "用例类型:接口用例/场景用例/性能用例/UI用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "用例类型:接口用例/场景用例/性能用例/UI用例", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testType;
|
||||
|
||||
|
||||
|
|
|
@ -18,26 +18,26 @@ public class MinderExtraNode implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{minder_extra_node.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{minder_extra_node.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{minder_extra_node.parent_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "父节点的ID,即模块ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "父节点的ID,即模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String parentId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{minder_extra_node.group_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{minder_extra_node.group_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "项目ID,可扩展为其他资源ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "项目ID,可扩展为其他资源ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String groupId;
|
||||
|
||||
@Size(min = 1, max = 30, message = "{minder_extra_node.type.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{minder_extra_node.type.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "类型,如:用例编辑脑图", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
|
||||
@Schema(title = "类型,如:用例编辑脑图", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String type;
|
||||
|
||||
|
||||
@Schema(title = "存储脑图节点额外信息", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "存储脑图节点额外信息", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String nodeData;
|
||||
|
||||
|
||||
|
|
|
@ -18,36 +18,36 @@ public class TestPlan implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.project_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String projectId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan.parent_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.parent_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划父ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划父ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String parentId;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{test_plan.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 20, message = "{test_plan.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "测试计划状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
@Size(min = 1, max = 30, message = "{test_plan.stage.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.stage.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 30]")
|
||||
@Schema(title = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String stage;
|
||||
|
||||
|
||||
@Schema(title = "标签", allowableValues = "range[1, 500]")
|
||||
@Schema(title = "标签")
|
||||
private String tags;
|
||||
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class TestPlan implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{test_plan.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -64,7 +64,7 @@ public class TestPlan implements Serializable {
|
|||
private Long updateTime;
|
||||
|
||||
|
||||
@Schema(title = "更新人", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "更新人")
|
||||
private String updateUser;
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class TestPlan implements Serializable {
|
|||
private Long actualEndTime;
|
||||
|
||||
|
||||
@Schema(title = "描述", allowableValues = "range[1, 2000]")
|
||||
@Schema(title = "描述")
|
||||
private String description;
|
||||
|
||||
|
||||
|
|
|
@ -18,21 +18,21 @@ public class TestPlanApiCase implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_api_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_api_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_case.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_api_case.api_case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_case.api_case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiCaseId;
|
||||
|
||||
|
||||
@Schema(title = "环境类型", allowableValues = "range[1, 20]")
|
||||
@Schema(title = "环境类型")
|
||||
private String environmentType;
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ public class TestPlanApiCase implements Serializable {
|
|||
private String environment;
|
||||
|
||||
|
||||
@Schema(title = "环境组ID", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组ID")
|
||||
private String environmentGroupId;
|
||||
|
||||
|
||||
|
@ -49,7 +49,7 @@ public class TestPlanApiCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 40, message = "{test_plan_api_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 40]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@ public class TestPlanApiScenario implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_api_scenario.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_api_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_scenario.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{test_plan_api_scenario.api_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_scenario.api_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String apiScenarioId;
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class TestPlanApiScenario implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 100, message = "{test_plan_api_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_api_scenario.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 100]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -45,15 +45,15 @@ public class TestPlanApiScenario implements Serializable {
|
|||
private Long pos;
|
||||
|
||||
|
||||
@Schema(title = "环境类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "环境类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentType;
|
||||
|
||||
|
||||
@Schema(title = "所属环境", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, ]")
|
||||
@Schema(title = "所属环境", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environment;
|
||||
|
||||
|
||||
@Schema(title = "环境组ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private String environmentGroupId;
|
||||
|
||||
}
|
|
@ -18,7 +18,7 @@ public class TestPlanConfig implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_config.test_plan_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
|
||||
|
@ -27,12 +27,12 @@ public class TestPlanConfig implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 1, message = "{test_plan_config.automatic_status_update.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_config.automatic_status_update.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean automaticStatusUpdate;
|
||||
|
||||
@Size(min = 1, max = 1, message = "{test_plan_config.repeat_case.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_config.repeat_case.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 1]")
|
||||
@Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Boolean repeatCase;
|
||||
|
||||
@Size(min = 1, max = 3, message = "{test_plan_config.pass_threshold.length_range}", groups = {Created.class, Updated.class})
|
||||
|
|
|
@ -18,30 +18,30 @@ public class TestPlanExecuteRecord implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_execute_record.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_execute_record.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_execute_record.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 255, message = "{test_plan_execute_record.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_execute_record.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 255]")
|
||||
@Schema(title = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_execute_record.status.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_execute_record.status.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "执行状态", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "执行状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String status;
|
||||
|
||||
|
||||
@Schema(title = "触发类型", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "触发类型")
|
||||
private String triggerMode;
|
||||
|
||||
|
||||
@Schema(title = "创建人(执行人/触发人)", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人(执行人/触发人)")
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -57,11 +57,11 @@ public class TestPlanExecuteRecord implements Serializable {
|
|||
private Integer caseCount;
|
||||
|
||||
|
||||
@Schema(title = "执行率", allowableValues = "range[1, 22]")
|
||||
@Schema(title = "执行率")
|
||||
private Double executeRate;
|
||||
|
||||
|
||||
@Schema(title = "通过率", allowableValues = "range[1, 22]")
|
||||
@Schema(title = "通过率")
|
||||
private Double passRate;
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public class TestPlanExecuteRecordBlob implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_execute_record_blob.test_plan_execute_record.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanExecuteRecord;
|
||||
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ import java.io.Serializable;
|
|||
public class TestPlanFollow implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String userId;
|
||||
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@ public class TestPlanFunctionCase implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_function_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_function_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_function_case.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_function_case.function_case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_function_case.function_case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String functionCaseId;
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class TestPlanFunctionCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_function_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_function_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@ public class TestPlanLoadCase implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_load_case.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_load_case.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_load_case.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_load_case.load_case_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_load_case.load_case_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String loadCaseId;
|
||||
|
||||
|
||||
|
@ -37,11 +37,11 @@ public class TestPlanLoadCase implements Serializable {
|
|||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_load_case.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_load_case.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
@Schema(title = "所用测试资源池ID", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "所用测试资源池ID")
|
||||
private String testResourcePoolId;
|
||||
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ import java.io.Serializable;
|
|||
public class TestPlanPrincipal implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String userId;
|
||||
|
||||
}
|
|
@ -18,22 +18,22 @@ public class TestPlanReport implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_report.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_report.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_report.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 128, message = "{test_plan_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_report.name.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 128]")
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_report.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -41,7 +41,7 @@ public class TestPlanReport implements Serializable {
|
|||
private Long createTime;
|
||||
|
||||
|
||||
@Schema(title = "修改人", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "修改人")
|
||||
private String updateUser;
|
||||
|
||||
|
||||
|
@ -61,11 +61,11 @@ public class TestPlanReport implements Serializable {
|
|||
private Long caseCount;
|
||||
|
||||
|
||||
@Schema(title = "执行率", allowableValues = "range[1, 22]")
|
||||
@Schema(title = "执行率")
|
||||
private Double executeRate;
|
||||
|
||||
|
||||
@Schema(title = "通过率", allowableValues = "range[1, 22]")
|
||||
@Schema(title = "通过率")
|
||||
private Double passRate;
|
||||
|
||||
|
||||
|
|
|
@ -18,16 +18,16 @@ public class TestPlanReportContent implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_report_content.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_report_content.test_plan_report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_report_content.test_plan_report_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanReportId;
|
||||
|
||||
|
||||
@Schema(title = "总结", allowableValues = "range[1, 2000]")
|
||||
@Schema(title = "总结")
|
||||
private String summary;
|
||||
|
||||
|
||||
|
|
|
@ -18,22 +18,22 @@ public class TestPlanUiScenario implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@NotBlank(message = "{test_plan_ui_scenario.id.not_blank}", groups = {Updated.class})
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String id;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_ui_scenario.test_plan_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String testPlanId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.ui_scenario_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_ui_scenario.ui_scenario_id.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String uiScenarioId;
|
||||
|
||||
@Size(min = 1, max = 50, message = "{test_plan_ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@NotBlank(message = "{test_plan_ui_scenario.create_user.not_blank}", groups = {Created.class})
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String createUser;
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class TestPlanUiScenario implements Serializable {
|
|||
private Long pos;
|
||||
|
||||
|
||||
@Schema(title = "环境类型", allowableValues = "range[1, 20]")
|
||||
@Schema(title = "环境类型")
|
||||
private String environmentType;
|
||||
|
||||
|
||||
|
@ -53,7 +53,7 @@ public class TestPlanUiScenario implements Serializable {
|
|||
private String environment;
|
||||
|
||||
|
||||
@Schema(title = "环境组ID", allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组ID")
|
||||
private String environmentGroupId;
|
||||
|
||||
|
||||
|
|
|
@ -10,17 +10,17 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class Environment implements Serializable {
|
||||
@Schema(title = "Api Test Environment ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "Api Test Environment ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "Api Test Environment Name", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "Api Test Environment Name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{environment.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "Project ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "Project ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.project_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
|
|
@ -10,17 +10,17 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class EnvironmentGroup implements Serializable {
|
||||
@Schema(title = "环境组id", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "所属工作空间", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 64]")
|
||||
@Schema(title = "所属工作空间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.workspace_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{environment_group.workspace_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String workspaceId;
|
||||
|
|
|
@ -10,7 +10,7 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class EnvironmentGroupProject implements Serializable {
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group_project.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group_project.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class ExecutionQueue implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class ExecutionQueueDetail implements Serializable {
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue_detail.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue_detail.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
|
|
@ -10,27 +10,27 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class RelationshipEdge implements Serializable {
|
||||
@Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.source_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.source_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String sourceId;
|
||||
|
||||
@Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.target_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.target_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String targetId;
|
||||
|
||||
@Schema(title = "边的分类", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 20]")
|
||||
@Schema(title = "边的分类", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.type.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 20, message = "{relationship_edge.type.length_range}", groups = {Created.class, Updated.class})
|
||||
private String type;
|
||||
|
||||
@Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.graph_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.graph_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String graphId;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.creator.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.creator.length_range}", groups = {Created.class, Updated.class})
|
||||
private String creator;
|
||||
|
|
|
@ -10,7 +10,7 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class ShareInfo implements Serializable {
|
||||
@Schema(title = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "range[1, 50]")
|
||||
@Schema(title = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{share_info.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{share_info.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
|
Loading…
Reference in New Issue