build: 分组校验

This commit is contained in:
CaptainB 2023-05-26 17:32:43 +08:00 committed by 刘瑞斌
parent 3c7f8409f9
commit abf9035fce
58 changed files with 260 additions and 255 deletions

View File

@ -16,12 +16,12 @@ public class LoadTest implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{load_test.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -35,42 +35,42 @@ public class LoadTest implements Serializable {
private Long updateTime;
@Schema(title = "状态: Starting, Running, Completed, Error, etc.", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{load_test.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.test_resource_pool_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.test_resource_pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
private String testResourcePoolId;
@Schema(title = "测试数字ID例如: 100001", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.num.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.num.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test.num.length_range}", groups = {Created.class, Updated.class})
private Integer num;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "自定义排序间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{load_test.pos.length_range}", groups = {Created.class, Updated.class})
private Long pos;
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.version_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;
@Schema(title = "基版本数据ID首条测试和测试ID相同", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.ref_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;
@Schema(title = "是否为最新版本 0:否1:是", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{load_test.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;

View File

@ -16,12 +16,12 @@ public class LoadTestApi implements Serializable {
private String id;
@Schema(title = "接口场景或用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_api.api_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_api.api_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_api.api_id.length_range}", groups = {Created.class, Updated.class})
private String apiId;
@Schema(title = "性能测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_api.load_test_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_api.load_test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_api.load_test_id.length_range}", groups = {Created.class, Updated.class})
private String loadTestId;
@ -29,7 +29,7 @@ public class LoadTestApi implements Serializable {
private String envId;
@Schema(title = "类型: SCENARIO, CASE", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_api.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_api.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{load_test_api.type.length_range}", groups = {Created.class, Updated.class})
private String type;

View File

@ -11,17 +11,17 @@ import lombok.Data;
@Data
public class LoadTestFile implements Serializable {
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_file.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId;
@Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_file.file_id.length_range}", groups = {Created.class, Updated.class})
private String fileId;
@Schema(title = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_file.sort.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_file.sort.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test_file.sort.length_range}", groups = {Created.class, Updated.class})
private Integer sort;

View File

@ -11,12 +11,12 @@ import lombok.Data;
@Data
public class LoadTestFollow implements Serializable {
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_follow.test_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_follow.test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_follow.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId;
@Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_follow.follow_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_follow.follow_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
private String followId;

View File

@ -16,12 +16,12 @@ public class LoadTestReport implements Serializable {
private String id;
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.test_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId;
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -35,17 +35,17 @@ public class LoadTestReport implements Serializable {
private Long updateTime;
@Schema(title = "状态: Starting, Running, Error,Completed etc.", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{load_test_report.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "创建人(执行人)ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.trigger_mode.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.trigger_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{load_test_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
private String triggerMode;
@ -59,17 +59,17 @@ public class LoadTestReport implements Serializable {
private String tps;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class})
private String testName;
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.test_resource_pool_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.test_resource_pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
private String testResourcePoolId;
@ -83,7 +83,7 @@ public class LoadTestReport implements Serializable {
private Long testDuration;
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report.version_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;

View File

@ -11,17 +11,17 @@ import lombok.Data;
@Data
public class LoadTestReportFile implements Serializable {
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_file.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_file.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_file.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_file.file_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_file.file_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_file.file_id.length_range}", groups = {Created.class, Updated.class})
private String fileId;
@Schema(title = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_file.sort.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_file.sort.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test_report_file.sort.length_range}", groups = {Created.class, Updated.class})
private Integer sort;

View File

@ -16,12 +16,12 @@ public class LoadTestReportLog implements Serializable {
private String id;
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_log.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_log.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_log.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@Schema(title = "资源节点ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_log.resource_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_log.resource_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_log.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;

View File

@ -16,7 +16,7 @@ public class LoadTestReportResult implements Serializable {
private String id;
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_result.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;

View File

@ -11,17 +11,17 @@ import lombok.Data;
@Data
public class LoadTestReportResultPart implements Serializable {
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_part.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_part.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_result_part.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@Schema(title = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_part.report_key.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_part.report_key.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{load_test_report_result_part.report_key.length_range}", groups = {Created.class, Updated.class})
private String reportKey;
@Schema(title = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_part.resource_index.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_part.resource_index.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test_report_result_part.resource_index.length_range}", groups = {Created.class, Updated.class})
private Integer resourceIndex;

View File

@ -11,22 +11,22 @@ import lombok.Data;
@Data
public class LoadTestReportResultRealtime implements Serializable {
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_realtime.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_realtime.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{load_test_report_result_realtime.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@Schema(title = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_realtime.report_key.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_realtime.report_key.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{load_test_report_result_realtime.report_key.length_range}", groups = {Created.class, Updated.class})
private String reportKey;
@Schema(title = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_realtime.resource_index.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_realtime.resource_index.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test_report_result_realtime.resource_index.length_range}", groups = {Created.class, Updated.class})
private Integer resourceIndex;
@Schema(title = "报告项目内容排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{load_test_report_result_realtime.sort.not_blank}", groups = {Updated.class})
@NotBlank(message = "{load_test_report_result_realtime.sort.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{load_test_report_result_realtime.sort.length_range}", groups = {Created.class, Updated.class})
private Integer sort;

View File

@ -16,7 +16,7 @@ public class ApiTemplate implements Serializable {
private String id;
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_template.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{api_template.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{api_template.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -24,7 +24,7 @@ public class ApiTemplate implements Serializable {
private String description;
@Schema(title = "是否是系统模板", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_template.system.not_blank}", groups = {Updated.class})
@NotBlank(message = "{api_template.system.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{api_template.system.length_range}", groups = {Created.class, Updated.class})
private Boolean system;
@ -32,12 +32,12 @@ public class ApiTemplate implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_template.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{api_template.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_template.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_template.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{api_template.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_template.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;

View File

@ -16,17 +16,17 @@ public class CustomField implements Serializable {
private String id;
@Schema(title = "自定义字段名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{custom_field.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "使用场景", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field.scene.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field.scene.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{custom_field.scene.length_range}", groups = {Created.class, Updated.class})
private String scene;
@Schema(title = "自定义字段类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{custom_field.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@ -52,7 +52,7 @@ public class CustomField implements Serializable {
private String projectId;
@Schema(title = "是否关联第三方", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field.third_part.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field.third_part.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{custom_field.third_part.length_range}", groups = {Created.class, Updated.class})
private Boolean thirdPart;

View File

@ -16,17 +16,17 @@ public class CustomFieldTemplate implements Serializable {
private String id;
@Schema(title = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field_template.field_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field_template.field_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{custom_field_template.field_id.length_range}", groups = {Created.class, Updated.class})
private String fieldId;
@Schema(title = "模版ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field_template.template_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field_template.template_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{custom_field_template.template_id.length_range}", groups = {Created.class, Updated.class})
private String templateId;
@Schema(title = "使用场景", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_field_template.scene.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_field_template.scene.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{custom_field_template.scene.length_range}", groups = {Created.class, Updated.class})
private String scene;

View File

@ -16,7 +16,7 @@ public class CustomFunction implements Serializable {
private String id;
@Schema(title = "函数名", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{custom_function.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{custom_function.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{custom_function.name.length_range}", groups = {Created.class, Updated.class})
private String name;

View File

@ -16,7 +16,7 @@ public class FakeError implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{fake_error.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{fake_error.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{fake_error.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@ -27,22 +27,22 @@ public class FakeError implements Serializable {
private Long updateTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{fake_error.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{fake_error.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{fake_error.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{fake_error.update_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{fake_error.update_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{fake_error.update_user.length_range}", groups = {Created.class, Updated.class})
private String updateUser;
@Schema(title = "错误码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{fake_error.error_code.not_blank}", groups = {Updated.class})
@NotBlank(message = "{fake_error.error_code.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{fake_error.error_code.length_range}", groups = {Created.class, Updated.class})
private String errorCode;
@Schema(title = "匹配类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{fake_error.match_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{fake_error.match_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{fake_error.match_type.length_range}", groups = {Created.class, Updated.class})
private String matchType;

View File

@ -16,7 +16,7 @@ public class FileMetadata implements Serializable {
private String id;
@Schema(title = "文件名", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{file_metadata.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -24,7 +24,7 @@ public class FileMetadata implements Serializable {
private String type;
@Schema(title = "文件大小", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.size.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.size.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{file_metadata.size.length_range}", groups = {Created.class, Updated.class})
private Long size;
@ -35,22 +35,22 @@ public class FileMetadata implements Serializable {
private Long updateTime;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_metadata.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "文件存储方式", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.storage.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.storage.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_metadata.storage.length_range}", groups = {Created.class, Updated.class})
private String storage;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_metadata.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.update_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.update_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_metadata.update_user.length_range}", groups = {Created.class, Updated.class})
private String updateUser;
@ -73,12 +73,12 @@ public class FileMetadata implements Serializable {
private String resourceType;
@Schema(title = "是否是最新版", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{file_metadata.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;
@Schema(title = "同版本数据关联的ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_metadata.ref_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_metadata.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_metadata.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;

View File

@ -16,12 +16,12 @@ public class FileModule implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_module.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_module.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{file_module.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{file_module.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{file_module.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{file_module.name.length_range}", groups = {Created.class, Updated.class})
private String name;

View File

@ -16,7 +16,7 @@ public class FunctionalCaseTemplate implements Serializable {
private String id;
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{functional_case_template.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{functional_case_template.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{functional_case_template.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -24,7 +24,7 @@ public class FunctionalCaseTemplate implements Serializable {
private String description;
@Schema(title = "是否是系统模板", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{functional_case_template.system.not_blank}", groups = {Updated.class})
@NotBlank(message = "{functional_case_template.system.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{functional_case_template.system.length_range}", groups = {Created.class, Updated.class})
private Boolean system;
@ -32,12 +32,12 @@ public class FunctionalCaseTemplate implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{functional_case_template.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{functional_case_template.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{functional_case_template.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{functional_case_template.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{functional_case_template.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{functional_case_template.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;

View File

@ -19,7 +19,7 @@ public class FunctionalCaseTemplateExtend implements Serializable {
private String caseName;
@Schema(title = "编辑模式模板:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{functional_case_template_extend.step_model.not_blank}", groups = {Updated.class})
@NotBlank(message = "{functional_case_template_extend.step_model.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{functional_case_template_extend.step_model.length_range}", groups = {Created.class, Updated.class})
private String stepModel;

View File

@ -16,7 +16,7 @@ public class IssueTemplate implements Serializable {
private String id;
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{issue_template.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{issue_template.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{issue_template.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -24,7 +24,7 @@ public class IssueTemplate implements Serializable {
private String description;
@Schema(title = "是否是系统模板", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{issue_template.system.not_blank}", groups = {Updated.class})
@NotBlank(message = "{issue_template.system.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{issue_template.system.length_range}", groups = {Created.class, Updated.class})
private Boolean system;
@ -32,12 +32,12 @@ public class IssueTemplate implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{issue_template.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{issue_template.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{issue_template.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{issue_template.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{issue_template.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{issue_template.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;

View File

@ -16,12 +16,12 @@ public class Project implements Serializable {
private String id;
@Schema(title = "工作空间ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project.workspace_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project.workspace_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{project.workspace_id.length_range}", groups = {Created.class, Updated.class})
private String workspaceId;
@Schema(title = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{project.name.length_range}", groups = {Created.class, Updated.class})
private String name;

View File

@ -11,12 +11,12 @@ import lombok.Data;
@Data
public class ProjectApplication implements Serializable {
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_application.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_application.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{project_application.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "配置项", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_application.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_application.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{project_application.type.length_range}", groups = {Created.class, Updated.class})
private String type;

View File

@ -34,7 +34,7 @@ public class ProjectExtend implements Serializable {
private String azureFilterId;
@Schema(title = "项目使用哪个平台的模板", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_extend.platform.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_extend.platform.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{project_extend.platform.length_range}", groups = {Created.class, Updated.class})
private String platform;

View File

@ -16,12 +16,12 @@ public class ProjectVersion implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_version.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_version.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{project_version.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_version.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_version.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{project_version.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -32,7 +32,7 @@ public class ProjectVersion implements Serializable {
private String status;
@Schema(title = "是否是最新版", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_version.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_version.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{project_version.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;
@ -49,7 +49,7 @@ public class ProjectVersion implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{project_version.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{project_version.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{project_version.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,12 +16,12 @@ public class Environment implements Serializable {
private String id;
@Schema(title = "环境名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{environment.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{environment.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@ -38,7 +38,7 @@ public class Environment implements Serializable {
private Integer port;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{environment.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,12 +16,12 @@ public class EnvironmentGroup implements Serializable {
private String id;
@Schema(title = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment_group.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment_group.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{environment_group.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "所属工作空间", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment_group.workspace_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment_group.workspace_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{environment_group.workspace_id.length_range}", groups = {Created.class, Updated.class})
private String workspaceId;
@ -29,7 +29,7 @@ public class EnvironmentGroup implements Serializable {
private String description;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{environment_group.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{environment_group.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{environment_group.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,22 +16,22 @@ public class ExecutionQueue implements Serializable {
private String id;
@Schema(title = "集合报告/测试计划报告", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{execution_queue.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{execution_queue.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{execution_queue.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@Schema(title = "报告类型/计划报告/单独报告", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{execution_queue.report_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{execution_queue.report_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{execution_queue.report_type.length_range}", groups = {Created.class, Updated.class})
private String reportType;
@Schema(title = "执行模式/scenario/api/test_paln_api/test_pan_scenario", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{execution_queue.run_mode.not_blank}", groups = {Updated.class})
@NotBlank(message = "{execution_queue.run_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{execution_queue.run_mode.length_range}", groups = {Created.class, Updated.class})
private String runMode;
@Schema(title = "执行资源池", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{execution_queue.pool_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{execution_queue.pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{execution_queue.pool_id.length_range}", groups = {Created.class, Updated.class})
private String poolId;

View File

@ -11,27 +11,27 @@ import lombok.Data;
@Data
public class RelationshipEdge implements Serializable {
@Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{relationship_edge.source_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{relationship_edge.source_id.not_blank}", groups = {Created.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)
@NotBlank(message = "{relationship_edge.target_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{relationship_edge.target_id.not_blank}", groups = {Created.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)
@NotBlank(message = "{relationship_edge.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{relationship_edge.type.not_blank}", groups = {Created.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)
@NotBlank(message = "{relationship_edge.graph_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{relationship_edge.graph_id.not_blank}", groups = {Created.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)
@NotBlank(message = "{relationship_edge.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{relationship_edge.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{relationship_edge.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -19,7 +19,7 @@ public class ShareInfo implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{share_info.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{share_info.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{share_info.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,7 +16,7 @@ public class AuthSource implements Serializable {
private String id;
@Schema(title = "状态 启用 禁用", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{auth_source.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{auth_source.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{auth_source.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@ -36,7 +36,7 @@ public class AuthSource implements Serializable {
private String type;
@Schema(title = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{auth_source.configuration.not_blank}", groups = {Updated.class})
@NotBlank(message = "{auth_source.configuration.not_blank}", groups = {Created.class})
@Size(min = 1, max = 65535, message = "{auth_source.configuration.length_range}", groups = {Created.class, Updated.class})
private byte[] configuration;

View File

@ -16,22 +16,22 @@ public class MessageTask implements Serializable {
private String id;
@Schema(title = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{message_task.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@Schema(title = "通知事件类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.event.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.event.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{message_task.event.length_range}", groups = {Created.class, Updated.class})
private String event;
@Schema(title = "接收人id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.receiver.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.receiver.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{message_task.receiver.length_range}", groups = {Created.class, Updated.class})
private String receiver;
@Schema(title = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.task_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.task_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{message_task.task_type.length_range}", groups = {Created.class, Updated.class})
private String taskType;
@ -39,7 +39,7 @@ public class MessageTask implements Serializable {
private String webhook;
@Schema(title = "具体测试的ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.test_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.test_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{message_task.test_id.length_range}", groups = {Created.class, Updated.class})
private String testId;
@ -47,7 +47,7 @@ public class MessageTask implements Serializable {
private Long createTime;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{message_task.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{message_task.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{message_task.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;

View File

@ -16,22 +16,22 @@ public class Notification implements Serializable {
private Long id;
@Schema(title = "通知类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{notification.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@Schema(title = "接收人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.receiver.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.receiver.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{notification.receiver.length_range}", groups = {Created.class, Updated.class})
private String receiver;
@Schema(title = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.title.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.title.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{notification.title.length_range}", groups = {Created.class, Updated.class})
private String title;
@Schema(title = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{notification.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@ -39,27 +39,27 @@ public class Notification implements Serializable {
private Long createTime;
@Schema(title = "操作人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.operator.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.operator.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{notification.operator.length_range}", groups = {Created.class, Updated.class})
private String operator;
@Schema(title = "操作", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.operation.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.operation.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{notification.operation.length_range}", groups = {Created.class, Updated.class})
private String operation;
@Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.resource_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.resource_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{notification.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;
@Schema(title = "资源类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.resource_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.resource_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{notification.resource_type.length_range}", groups = {Created.class, Updated.class})
private String resourceType;
@Schema(title = "资源名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{notification.resource_name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{notification.resource_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{notification.resource_name.length_range}", groups = {Created.class, Updated.class})
private String resourceName;

View File

@ -19,12 +19,12 @@ public class NoviceStatistics implements Serializable {
private String userId;
@Schema(title = "新手引导完成的步骤", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{novice_statistics.guide_step.not_blank}", groups = {Updated.class})
@NotBlank(message = "{novice_statistics.guide_step.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{novice_statistics.guide_step.length_range}", groups = {Created.class, Updated.class})
private Boolean guideStep;
@Schema(title = "新手引导的次数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{novice_statistics.guide_num.not_blank}", groups = {Updated.class})
@NotBlank(message = "{novice_statistics.guide_num.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{novice_statistics.guide_num.length_range}", groups = {Created.class, Updated.class})
private Integer guideNum;

View File

@ -16,7 +16,7 @@ public class OperatingLog implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{operating_log.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{operating_log.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{operating_log.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@ -45,7 +45,7 @@ public class OperatingLog implements Serializable {
private String operPath;
@Schema(title = "操作时间", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{operating_log.oper_time.not_blank}", groups = {Updated.class})
@NotBlank(message = "{operating_log.oper_time.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{operating_log.oper_time.length_range}", groups = {Created.class, Updated.class})
private Long operTime;

View File

@ -16,12 +16,12 @@ public class OperatingLogResource implements Serializable {
private String id;
@Schema(title = "Operating log ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{operating_log_resource.operating_log_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{operating_log_resource.operating_log_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{operating_log_resource.operating_log_id.length_range}", groups = {Created.class, Updated.class})
private String operatingLogId;
@Schema(title = "operating source id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{operating_log_resource.source_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{operating_log_resource.source_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{operating_log_resource.source_id.length_range}", groups = {Created.class, Updated.class})
private String sourceId;

View File

@ -19,32 +19,32 @@ public class Plugin implements Serializable {
private String name;
@Schema(title = "Plugin id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.plugin_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.plugin_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{plugin.plugin_id.length_range}", groups = {Created.class, Updated.class})
private String pluginId;
@Schema(title = "Ui script id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.script_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.script_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{plugin.script_id.length_range}", groups = {Created.class, Updated.class})
private String scriptId;
@Schema(title = "Plugin clazzName", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.clazz_name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.clazz_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 500, message = "{plugin.clazz_name.length_range}", groups = {Created.class, Updated.class})
private String clazzName;
@Schema(title = "Jmeter base clazzName", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.jmeter_clazz.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.jmeter_clazz.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{plugin.jmeter_clazz.length_range}", groups = {Created.class, Updated.class})
private String jmeterClazz;
@Schema(title = "Plugin jar path", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.source_path.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.source_path.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{plugin.source_path.length_range}", groups = {Created.class, Updated.class})
private String sourcePath;
@Schema(title = "Plugin jar name", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.source_name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.source_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{plugin.source_name.length_range}", groups = {Created.class, Updated.class})
private String sourceName;
@ -64,7 +64,7 @@ public class Plugin implements Serializable {
private Boolean xpack;
@Schema(title = "Plugin usage scenarios", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{plugin.scenario.not_blank}", groups = {Updated.class})
@NotBlank(message = "{plugin.scenario.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{plugin.scenario.length_range}", groups = {Created.class, Updated.class})
private String scenario;

View File

@ -19,17 +19,17 @@ public class Schedule implements Serializable {
private String key;
@Schema(title = "资源类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{schedule.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{schedule.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{schedule.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@Schema(title = "Schedule value", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{schedule.value.not_blank}", groups = {Updated.class})
@NotBlank(message = "{schedule.value.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{schedule.value.length_range}", groups = {Created.class, Updated.class})
private String value;
@Schema(title = "Schedule Job Class Name", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{schedule.job.not_blank}", groups = {Updated.class})
@NotBlank(message = "{schedule.job.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{schedule.job.length_range}", groups = {Created.class, Updated.class})
private String job;
@ -40,7 +40,7 @@ public class Schedule implements Serializable {
private String resourceId;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{schedule.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{schedule.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{schedule.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,7 +16,7 @@ public class ServiceIntegration implements Serializable {
private String id;
@Schema(title = "平台", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{service_integration.platform.not_blank}", groups = {Updated.class})
@NotBlank(message = "{service_integration.platform.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{service_integration.platform.length_range}", groups = {Created.class, Updated.class})
private String platform;
@ -24,7 +24,7 @@ public class ServiceIntegration implements Serializable {
private String workspaceId;
@Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{service_integration.configuration.not_blank}", groups = {Updated.class})
@NotBlank(message = "{service_integration.configuration.not_blank}", groups = {Created.class})
@Size(min = 1, max = 65535, message = "{service_integration.configuration.length_range}", groups = {Created.class, Updated.class})
private byte[] configuration;

View File

@ -11,7 +11,7 @@ import lombok.Data;
@Data
public class SystemParameter implements Serializable {
@Schema(title = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{system_parameter.param_key.not_blank}", groups = {Updated.class})
@NotBlank(message = "{system_parameter.param_key.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{system_parameter.param_key.length_range}", groups = {Created.class, Updated.class})
private String paramKey;
@ -19,7 +19,7 @@ public class SystemParameter implements Serializable {
private String paramValue;
@Schema(title = "类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{system_parameter.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{system_parameter.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{system_parameter.type.length_range}", groups = {Created.class, Updated.class})
private String type;

View File

@ -16,12 +16,12 @@ public class TestResource implements Serializable {
private String id;
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_resource.test_resource_pool_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{test_resource.test_resource_pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{test_resource.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class})
private String testResourcePoolId;
@Schema(title = "资源节点状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_resource.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{test_resource.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{test_resource.status.length_range}", groups = {Created.class, Updated.class})
private String status;

View File

@ -16,12 +16,12 @@ public class TestResourcePool implements Serializable {
private String id;
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_resource_pool.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{test_resource_pool.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{test_resource_pool.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_resource_pool.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{test_resource_pool.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{test_resource_pool.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@ -29,7 +29,7 @@ public class TestResourcePool implements Serializable {
private String description;
@Schema(title = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_resource_pool.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{test_resource_pool.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{test_resource_pool.status.length_range}", groups = {Created.class, Updated.class})
private String status;

View File

@ -16,12 +16,12 @@ public class User implements Serializable {
private String id;
@Schema(title = "用户名", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{user.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "用户邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user.email.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user.email.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{user.email.length_range}", groups = {Created.class, Updated.class})
private String email;
@ -29,7 +29,7 @@ public class User implements Serializable {
private String password;
@Schema(title = "用户状态,启用或禁用", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@ -49,7 +49,7 @@ public class User implements Serializable {
private String phone;
@Schema(title = "来源LOCAL OIDC CAS", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user.source.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user.source.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user.source.length_range}", groups = {Created.class, Updated.class})
private String source;
@ -57,7 +57,7 @@ public class User implements Serializable {
private String lastProjectId;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,17 +16,17 @@ public class UserKey implements Serializable {
private String id;
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_key.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_key.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_key.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "access_key", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_key.access_key.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_key.access_key.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_key.access_key.length_range}", groups = {Created.class, Updated.class})
private String accessKey;
@Schema(title = "secret key", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_key.secret_key.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_key.secret_key.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_key.secret_key.length_range}", groups = {Created.class, Updated.class})
private String secretKey;

View File

@ -16,7 +16,7 @@ public class UserRole implements Serializable {
private String id;
@Schema(title = "组名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{user_role.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -24,12 +24,12 @@ public class UserRole implements Serializable {
private String description;
@Schema(title = "是否是系统用户组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role.system.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role.system.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{user_role.system.length_range}", groups = {Created.class, Updated.class})
private Boolean system;
@Schema(title = "所属类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role.type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role.type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{user_role.type.length_range}", groups = {Created.class, Updated.class})
private String type;
@ -40,12 +40,12 @@ public class UserRole implements Serializable {
private Long updateTime;
@Schema(title = "创建人(操作人)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_role.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "应用范围", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role.scope_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role.scope_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_role.scope_id.length_range}", groups = {Created.class, Updated.class})
private String scopeId;

View File

@ -16,17 +16,17 @@ public class UserRolePermission implements Serializable {
private String id;
@Schema(title = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_permission.role_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_permission.role_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{user_role_permission.role_id.length_range}", groups = {Created.class, Updated.class})
private String roleId;
@Schema(title = "权限ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_permission.permission_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_permission.permission_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 128, message = "{user_role_permission.permission_id.length_range}", groups = {Created.class, Updated.class})
private String permissionId;
@Schema(title = "功能菜单", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_permission.module_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_permission.module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{user_role_permission.module_id.length_range}", groups = {Created.class, Updated.class})
private String moduleId;

View File

@ -16,17 +16,17 @@ public class UserRoleRelation implements Serializable {
private String id;
@Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_relation.user_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_relation.user_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_role_relation.user_id.length_range}", groups = {Created.class, Updated.class})
private String userId;
@Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_relation.role_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_relation.role_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_role_relation.role_id.length_range}", groups = {Created.class, Updated.class})
private String roleId;
@Schema(title = "工作空间或项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{user_role_relation.source_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{user_role_relation.source_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{user_role_relation.source_id.length_range}", groups = {Created.class, Updated.class})
private String sourceId;

View File

@ -16,7 +16,7 @@ public class Workspace implements Serializable {
private String id;
@Schema(title = "工作空间名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{workspace.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{workspace.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{workspace.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -30,7 +30,7 @@ public class Workspace implements Serializable {
private Long updateTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{workspace.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{workspace.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{workspace.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,7 +16,7 @@ public class UiCustomCommand implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@ -24,32 +24,32 @@ public class UiCustomCommand implements Serializable {
private String tags;
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.module_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.module_id.length_range}", groups = {Created.class, Updated.class})
private String moduleId;
@Schema(title = "模块路径", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.module_path.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.module_path.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1000, message = "{ui_custom_command.module_path.length_range}", groups = {Created.class, Updated.class})
private String modulePath;
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_custom_command.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.level.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.level.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{ui_custom_command.level.length_range}", groups = {Created.class, Updated.class})
private String level;
@Schema(title = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{ui_custom_command.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.principal.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.principal.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.principal.length_range}", groups = {Created.class, Updated.class})
private String principal;
@ -63,12 +63,12 @@ public class UiCustomCommand implements Serializable {
private String lastResult;
@Schema(title = "num", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.num.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.num.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_custom_command.num.length_range}", groups = {Created.class, Updated.class})
private Integer num;
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.deleted.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.deleted.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_custom_command.deleted.length_range}", groups = {Created.class, Updated.class})
private Boolean deleted;
@ -76,7 +76,7 @@ public class UiCustomCommand implements Serializable {
private String customNum;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@ -87,22 +87,22 @@ public class UiCustomCommand implements Serializable {
private String deleteUser;
@Schema(title = "自定义排序间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{ui_custom_command.pos.length_range}", groups = {Created.class, Updated.class})
private Long pos;
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.version_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;
@Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.ref_id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{ui_custom_command.ref_id.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{ui_custom_command.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_custom_command.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;
@Schema(title = "是否为最新版本 0:否1:是", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_custom_command.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;

View File

@ -16,22 +16,22 @@ public class UiCustomCommandModule implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command_module.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command_module.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.name.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 255, message = "{ui_custom_command_module.name.length_range}", groups = {Created.class, Updated.class})
@NotBlank(message = "{ui_custom_command_module.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{ui_custom_command_module.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "父级ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.parent_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command_module.parent_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command_module.parent_id.length_range}", groups = {Created.class, Updated.class})
private String parentId;
@Schema(title = "模块等级", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.level.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command_module.level.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_custom_command_module.level.length_range}", groups = {Created.class, Updated.class})
private Integer level;
@ -42,12 +42,12 @@ public class UiCustomCommandModule implements Serializable {
private Long updateTime;
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command_module.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 22, message = "{ui_custom_command_module.pos.length_range}", groups = {Created.class, Updated.class})
private Double pos;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_custom_command_module.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_custom_command_module.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_custom_command_module.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,62 +16,62 @@ public class UiElement implements Serializable {
private String id;
@Schema(title = "元素num", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.num.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.num.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_element.num.length_range}", groups = {Created.class, Updated.class})
private Integer num;
@Schema(title = "元素所属模块id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.module_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.module_id.length_range}", groups = {Created.class, Updated.class})
private String moduleId;
@Schema(title = "项目id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_element.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "定位类型", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.location_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.location_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 30, message = "{ui_element.location_type.length_range}", groups = {Created.class, Updated.class})
private String locationType;
@Schema(title = "元素定位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.location.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.location.not_blank}", groups = {Created.class})
@Size(min = 1, max = 300, message = "{ui_element.location.length_range}", groups = {Created.class, Updated.class})
private String location;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.update_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.update_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.update_user.length_range}", groups = {Created.class, Updated.class})
private String updateUser;
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.version_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;
@Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.ref_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;
@Schema(title = "自定义排序间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{ui_element.pos.length_range}", groups = {Created.class, Updated.class})
private Long pos;
@Schema(title = "是否为最新版本 0:否1:是", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_element.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;

View File

@ -16,22 +16,22 @@ public class UiElementScenarioReference implements Serializable {
private String id;
@Schema(title = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element_scenario_reference.element_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element_scenario_reference.element_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element_scenario_reference.element_id.length_range}", groups = {Created.class, Updated.class})
private String elementId;
@Schema(title = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element_scenario_reference.element_module_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element_scenario_reference.element_module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element_scenario_reference.element_module_id.length_range}", groups = {Created.class, Updated.class})
private String elementModuleId;
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element_scenario_reference.scenario_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element_scenario_reference.scenario_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element_scenario_reference.scenario_id.length_range}", groups = {Created.class, Updated.class})
private String scenarioId;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_element_scenario_reference.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_element_scenario_reference.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_element_scenario_reference.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;

View File

@ -16,7 +16,7 @@ public class UiScenario implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@ -24,32 +24,32 @@ public class UiScenario implements Serializable {
private String tags;
@Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.module_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.module_id.length_range}", groups = {Created.class, Updated.class})
private String moduleId;
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_scenario.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.level.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.level.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{ui_scenario.level.length_range}", groups = {Created.class, Updated.class})
private String level;
@Schema(title = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{ui_scenario.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.principal.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.principal.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.principal.length_range}", groups = {Created.class, Updated.class})
private String principal;
@Schema(title = "步骤总数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.step_total.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.step_total.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_scenario.step_total.length_range}", groups = {Created.class, Updated.class})
private Integer stepTotal;
@ -66,12 +66,12 @@ public class UiScenario implements Serializable {
private String reportId;
@Schema(title = "num", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.num.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.num.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_scenario.num.length_range}", groups = {Created.class, Updated.class})
private Integer num;
@Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.deleted.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.deleted.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_scenario.deleted.length_range}", groups = {Created.class, Updated.class})
private Boolean deleted;
@ -79,7 +79,7 @@ public class UiScenario implements Serializable {
private String customNum;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@ -90,22 +90,22 @@ public class UiScenario implements Serializable {
private String deleteUser;
@Schema(title = "自定义排序间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{ui_scenario.pos.length_range}", groups = {Created.class, Updated.class})
private Long pos;
@Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.version_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;
@Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.ref_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;
@Schema(title = "是否为最新版本 0:否1:是", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario.latest.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario.latest.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_scenario.latest.length_range}", groups = {Created.class, Updated.class})
private Boolean latest;

View File

@ -16,22 +16,22 @@ public class UiScenarioModule implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_scenario_module.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(title = "父级ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.parent_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.parent_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_module.parent_id.length_range}", groups = {Created.class, Updated.class})
private String parentId;
@Schema(title = "模块等级", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.level.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.level.not_blank}", groups = {Created.class})
@Size(min = 1, max = 10, message = "{ui_scenario_module.level.length_range}", groups = {Created.class, Updated.class})
private Integer level;
@ -42,12 +42,12 @@ public class UiScenarioModule implements Serializable {
private Long updateTime;
@Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.pos.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.pos.not_blank}", groups = {Created.class})
@Size(min = 1, max = 22, message = "{ui_scenario_module.pos.length_range}", groups = {Created.class, Updated.class})
private Double pos;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_module.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_module.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_module.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;

View File

@ -16,7 +16,7 @@ public class UiScenarioReference implements Serializable {
private String id;
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_reference.ui_scenario_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_reference.ui_scenario_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_reference.ui_scenario_id.length_range}", groups = {Created.class, Updated.class})
private String uiScenarioId;
@ -24,17 +24,17 @@ public class UiScenarioReference implements Serializable {
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_reference.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_reference.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_reference.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "被引用的ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_reference.reference_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_reference.reference_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class})
private String referenceId;
@Schema(title = "引用的数据类型(场景,指令)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_reference.data_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_reference.data_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{ui_scenario_reference.data_type.length_range}", groups = {Created.class, Updated.class})
private String dataType;

View File

@ -16,12 +16,12 @@ public class UiScenarioReport implements Serializable {
private String id;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.project_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_scenario_report.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@ -32,47 +32,47 @@ public class UiScenarioReport implements Serializable {
private Long updateTime;
@Schema(title = "报告状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{ui_scenario_report.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "触发模式(手动,定时,批量,测试计划)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.trigger_mode.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.trigger_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 64, message = "{ui_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
private String triggerMode;
@Schema(title = "执行类型(并行,串行)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.execute_type.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.execute_type.not_blank}", groups = {Created.class})
@Size(min = 1, max = 200, message = "{ui_scenario_report.execute_type.length_range}", groups = {Created.class, Updated.class})
private String executeType;
@Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.scenario_name.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.scenario_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{ui_scenario_report.scenario_name.length_range}", groups = {Created.class, Updated.class})
private String scenarioName;
@Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.scenario_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.scenario_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
private String scenarioId;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.create_user.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.create_user.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report.create_user.length_range}", groups = {Created.class, Updated.class})
private String createUser;
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.pool_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class})
private String poolId;
@Schema(title = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.end_time.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.end_time.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{ui_scenario_report.end_time.length_range}", groups = {Created.class, Updated.class})
private Long endTime;
@Schema(title = "报告类型(集合,独立)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report.integrated.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report.integrated.not_blank}", groups = {Created.class})
@Size(min = 1, max = 1, message = "{ui_scenario_report.integrated.length_range}", groups = {Created.class, Updated.class})
private Boolean integrated;

View File

@ -16,12 +16,12 @@ public class UiScenarioReportDetail implements Serializable {
private String id;
@Schema(title = "资源id场景接口", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_detail.resource_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_detail.resource_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;
@Schema(title = "报告 id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_detail.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_detail.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@ -29,12 +29,12 @@ public class UiScenarioReportDetail implements Serializable {
private Long createTime;
@Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_detail.status.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_detail.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 100, message = "{ui_scenario_report_detail.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(title = "请求时间", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_detail.request_time.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_detail.request_time.not_blank}", groups = {Created.class})
@Size(min = 1, max = 19, message = "{ui_scenario_report_detail.request_time.length_range}", groups = {Created.class, Updated.class})
private Long requestTime;
@ -45,7 +45,7 @@ public class UiScenarioReportDetail implements Serializable {
private Long passAssertions;
@Schema(title = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_detail.content.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_detail.content.not_blank}", groups = {Created.class})
@Size(min = 1, max = 2147483647, message = "{ui_scenario_report_detail.content.length_range}", groups = {Created.class, Updated.class})
private byte[] content;

View File

@ -16,7 +16,7 @@ public class UiScenarioReportStructure implements Serializable {
private String id;
@Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_structure.report_id.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_structure.report_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{ui_scenario_report_structure.report_id.length_range}", groups = {Created.class, Updated.class})
private String reportId;
@ -24,7 +24,7 @@ public class UiScenarioReportStructure implements Serializable {
private Long createTime;
@Schema(title = "资源步骤结构树", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{ui_scenario_report_structure.resource_tree.not_blank}", groups = {Updated.class})
@NotBlank(message = "{ui_scenario_report_structure.resource_tree.not_blank}", groups = {Created.class})
@Size(min = 1, max = 2147483647, message = "{ui_scenario_report_structure.resource_tree.length_range}", groups = {Created.class, Updated.class})
private byte[] resourceTree;

View File

@ -53,28 +53,33 @@
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<!-- 模型对象 -->
<javaModelGenerator targetPackage="io.metersphere.sdk.domain" targetProject="src/main/java">
<javaModelGenerator targetPackage="io.metersphere.ui.domain" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- XML映射文件 -->
<sqlMapGenerator targetPackage="io.metersphere.sdk.mapper" targetProject="src/main/java">
<sqlMapGenerator targetPackage="io.metersphere.ui.mapper" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<!-- 接口 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.sdk.mapper"
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.ui.mapper"
targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!--要生成的数据库表 -->
<table tableName="execution_queue"/>
<table tableName="execution_queue_detail"/>
<table tableName="environment"/>
<table tableName="relationship_edge"/>
<table tableName="share_info"/>
<table tableName="environment_group_project"/>
<table tableName="environment_group"/>
<table tableName="ui_element"/>
<table tableName="ui_element_module"/>
<table tableName="ui_element_scenario_reference"/>
<table tableName="ui_scenario"/>
<table tableName="ui_scenario_reference"/>
<table tableName="ui_scenario_report"/>
<table tableName="ui_scenario_report_detail"/>
<table tableName="ui_scenario_report_structure"/>
<table tableName="ui_custom_command"/>
<table tableName="ui_scenario_module"/>
<table tableName="ui_custom_command_module"/>
<table tableName="ui_scenario_blob"/>
<!-- 要忽略的字段-->
<!-- <table tableName="test_case">