From e2d6d3e4bef3b6eeb8874cec5a6e047fc4733ecd Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 26 May 2023 22:24:46 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=88=9B=E5=BB=BA=E4=BA=BA=E4=B8=8D?= =?UTF-8?q?=E7=94=A8=E4=BB=8E=E5=89=8D=E5=8F=B0=E4=BC=A0=E5=85=A5=EF=BC=8C?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=9B=B4=E6=8E=A5=E7=BB=99=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/api/domain/ApiDefinition.java | 4 ---- .../java/io/metersphere/api/domain/ApiDefinitionMock.java | 2 -- .../java/io/metersphere/api/domain/ApiDefinitionModule.java | 4 ---- .../java/io/metersphere/api/domain/ApiEnvironmentConfig.java | 2 -- .../src/main/java/io/metersphere/api/domain/ApiReport.java | 4 ---- .../src/main/java/io/metersphere/api/domain/ApiScenario.java | 4 ---- .../java/io/metersphere/api/domain/ApiScenarioModule.java | 4 ---- .../java/io/metersphere/api/domain/ApiScenarioReference.java | 2 -- .../java/io/metersphere/api/domain/ApiScenarioReport.java | 4 ---- .../src/main/java/io/metersphere/api/domain/ApiTestCase.java | 4 ---- .../src/main/java/io/metersphere/load/domain/LoadTest.java | 2 -- .../main/java/io/metersphere/load/domain/LoadTestReport.java | 2 -- .../src/main/java/io/metersphere/plan/domain/TestPlan.java | 2 -- .../main/java/io/metersphere/plan/domain/TestPlanApiCase.java | 2 -- .../java/io/metersphere/plan/domain/TestPlanApiScenario.java | 2 -- .../java/io/metersphere/plan/domain/TestPlanFunctionCase.java | 2 -- .../metersphere/plan/domain/TestPlanFunctionCaseResult.java | 2 -- .../java/io/metersphere/plan/domain/TestPlanLoadCase.java | 2 -- .../main/java/io/metersphere/plan/domain/TestPlanReport.java | 2 -- .../java/io/metersphere/plan/domain/TestPlanUiScenario.java | 2 -- .../main/java/io/metersphere/project/domain/ApiTemplate.java | 2 -- .../main/java/io/metersphere/project/domain/FakeError.java | 4 ---- .../main/java/io/metersphere/project/domain/FileMetadata.java | 4 ---- .../io/metersphere/project/domain/FunctionalCaseTemplate.java | 2 -- .../java/io/metersphere/project/domain/IssueTemplate.java | 2 -- .../java/io/metersphere/project/domain/ProjectVersion.java | 2 -- .../src/main/java/io/metersphere/sdk/domain/Environment.java | 2 -- .../main/java/io/metersphere/sdk/domain/EnvironmentGroup.java | 2 -- .../main/java/io/metersphere/sdk/domain/RelationshipEdge.java | 2 -- .../src/main/java/io/metersphere/sdk/domain/ShareInfo.java | 2 -- .../src/main/java/io/metersphere/system/domain/Schedule.java | 2 -- .../src/main/java/io/metersphere/system/domain/User.java | 2 -- .../src/main/java/io/metersphere/system/domain/UserKey.java | 2 -- .../src/main/java/io/metersphere/system/domain/UserRole.java | 2 -- .../src/main/java/io/metersphere/system/domain/Workspace.java | 2 -- .../main/java/io/metersphere/ui/domain/UiCustomCommand.java | 2 -- .../java/io/metersphere/ui/domain/UiCustomCommandModule.java | 2 -- .../src/main/java/io/metersphere/ui/domain/UiElement.java | 4 ---- .../main/java/io/metersphere/ui/domain/UiElementModule.java | 2 -- .../src/main/java/io/metersphere/ui/domain/UiScenario.java | 2 -- .../main/java/io/metersphere/ui/domain/UiScenarioModule.java | 2 -- .../java/io/metersphere/ui/domain/UiScenarioReference.java | 2 -- .../main/java/io/metersphere/ui/domain/UiScenarioReport.java | 2 -- 43 files changed, 106 deletions(-) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java index d6a8a80671..8318a4c9d6 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinition.java @@ -19,16 +19,12 @@ public class ApiDefinition implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "修改时间") private Long updateTime; @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "删除人") diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java index f3df564155..0bedf6b569 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMock.java @@ -28,8 +28,6 @@ public class ApiDefinitionMock implements Serializable { private Long updateTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java index 7081f4d1eb..8510bf9bf9 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionModule.java @@ -22,13 +22,9 @@ public class ApiDefinitionModule implements Serializable { private Long updateTime; @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition_module.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_definition_module.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_definition_module.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_definition_module.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java index 68ce7f9cf2..1cd1110815 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java @@ -22,8 +22,6 @@ public class ApiEnvironmentConfig implements Serializable { private Long updateTime; @Schema(title = "用户fk", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_environment_config.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_environment_config.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java index f0f132fd1c..1d24d13ba0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReport.java @@ -32,13 +32,9 @@ public class ApiReport implements Serializable { private Long updateTime; @Schema(title = "创建人fk", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_report.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_report.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_report.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_report.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java index 139cfc96a9..b945f4ba8c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenario.java @@ -21,8 +21,6 @@ public class ApiScenario implements Serializable { private String name; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "创建时间") @@ -35,8 +33,6 @@ public class ApiScenario implements Serializable { private String deleteUser; @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "更新时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java index 9ff9d5fd21..bcfafaf39e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioModule.java @@ -37,13 +37,9 @@ public class ApiScenarioModule implements Serializable { private Long updateTime; @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario_module.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario_module.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario_module.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario_module.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java index d9f4de201f..027f32d7d1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReference.java @@ -24,8 +24,6 @@ public class ApiScenarioReference implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario_reference.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario_reference.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java index 6d2a2063fb..48987cc637 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReport.java @@ -24,8 +24,6 @@ public class ApiScenarioReport implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario_report.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario_report.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "删除时间") @@ -40,8 +38,6 @@ public class ApiScenarioReport implements Serializable { private Boolean deleted; @Schema(title = "修改人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_scenario_report.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_scenario_report.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "更新时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java index b5777aad76..d936e4bdfe 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCase.java @@ -24,16 +24,12 @@ public class ApiTestCase implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_test_case.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_test_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "更新时间") private Long updateTime; @Schema(title = "更新人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{api_test_case.update_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{api_test_case.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "删除时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java index de13e41a79..28b2ab3a65 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java @@ -50,8 +50,6 @@ public class LoadTest implements Serializable { private Integer num; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java index f16eb21d1b..94e8e04439 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java @@ -40,8 +40,6 @@ public class LoadTestReport implements Serializable { private String status; @Schema(title = "创建人(执行人)ID", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java index 1af918f32f..fd86858a8e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java @@ -47,8 +47,6 @@ public class TestPlan implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "更新时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java index 73c4f58d76..b0359d707e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java @@ -35,8 +35,6 @@ public class TestPlanApiCase implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_api_case.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 40, message = "{test_plan_api_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java index 5be699b2be..0e98aeed3d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java @@ -27,8 +27,6 @@ public class TestPlanApiScenario implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_api_scenario.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 100, message = "{test_plan_api_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java index 82d2145c5e..29647b799b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java @@ -29,8 +29,6 @@ public class TestPlanFunctionCase implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_function_case.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan_function_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java index 980e14cf03..2627b4e69f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java @@ -31,8 +31,6 @@ public class TestPlanFunctionCaseResult implements Serializable { private String result; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_function_case_result.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan_function_case_result.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "创建时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java index 16d9dfffc8..b6bef24758 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java @@ -29,8 +29,6 @@ public class TestPlanLoadCase implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_load_case.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan_load_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "所用测试资源池ID") diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java index b33011745c..a1e588e4fc 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java @@ -26,8 +26,6 @@ public class TestPlanReport implements Serializable { private String name; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_report.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan_report.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "创建时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java index b899bf423e..971c42fb60 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java @@ -26,8 +26,6 @@ public class TestPlanUiScenario implements Serializable { private String uiScenarioId; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{test_plan_ui_scenario.create_user.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; @Schema(title = "创建时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java index 3069ba5e64..3d42a69e35 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ApiTemplate.java @@ -32,8 +32,6 @@ public class ApiTemplate implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeError.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeError.java index 54695ffc7a..fb612ff08a 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeError.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeError.java @@ -27,13 +27,9 @@ public class FakeError implements Serializable { private Long updateTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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 = {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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadata.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadata.java index 4bd0d4b2b7..b6aa249df7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadata.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadata.java @@ -45,13 +45,9 @@ public class FileMetadata implements Serializable { private String storage; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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 = {Created.class}) - @Size(min = 1, max = 50, message = "{file_metadata.update_user.length_range}", groups = {Created.class, Updated.class}) private String updateUser; @Schema(title = "标签") diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplate.java index 61b7e37c0c..d01810e876 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplate.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplate.java @@ -32,8 +32,6 @@ public class FunctionalCaseTemplate implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/IssueTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/IssueTemplate.java index c1e4e51c1a..8b9ea1c746 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/IssueTemplate.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/IssueTemplate.java @@ -32,8 +32,6 @@ public class IssueTemplate implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectVersion.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectVersion.java index d0625902ef..99ff6ee420 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectVersion.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectVersion.java @@ -49,8 +49,6 @@ public class ProjectVersion implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/Environment.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/Environment.java index b5b3496674..5dcc0fabf0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/Environment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/Environment.java @@ -38,8 +38,6 @@ public class Environment implements Serializable { private Integer port; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "创建时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroup.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroup.java index cfe7dce741..283a66b289 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroup.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroup.java @@ -29,8 +29,6 @@ public class EnvironmentGroup implements Serializable { private String description; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "创建时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/RelationshipEdge.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/RelationshipEdge.java index 0d652fdf33..5b6a6bd694 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/RelationshipEdge.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/RelationshipEdge.java @@ -31,8 +31,6 @@ public class RelationshipEdge implements Serializable { private String graphId; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "") diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ShareInfo.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ShareInfo.java index 4c953cf6e6..2fb19e310f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ShareInfo.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ShareInfo.java @@ -19,8 +19,6 @@ public class ShareInfo implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "更新时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Schedule.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Schedule.java index a1fefadc53..385bc57fe6 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Schedule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Schedule.java @@ -40,8 +40,6 @@ public class Schedule implements Serializable { private String resourceId; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "Create timestamp") diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/User.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/User.java index 561d137e9d..f8623c4495 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/User.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/User.java @@ -57,8 +57,6 @@ public class User implements Serializable { private String lastProjectId; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserKey.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserKey.java index a81c6182fa..00ad1f8ec9 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserKey.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserKey.java @@ -16,8 +16,6 @@ public class UserKey implements Serializable { private String id; @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRole.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRole.java index 48a0d9d52d..5f115b910f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRole.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRole.java @@ -40,8 +40,6 @@ public class UserRole implements Serializable { private Long updateTime; @Schema(title = "创建人(操作人)", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Workspace.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Workspace.java index 9f26745a8f..6a09a0b30f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Workspace.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Workspace.java @@ -30,8 +30,6 @@ public class Workspace implements Serializable { private Long updateTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java index 3f9f8edf96..04821f4f42 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java @@ -76,8 +76,6 @@ public class UiCustomCommand implements Serializable { private String customNum; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "删除时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java index be8db60d51..8b34844eaf 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java @@ -47,8 +47,6 @@ public class UiCustomCommandModule implements Serializable { private Double pos; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java index f816bc9549..be73e4342c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java @@ -46,13 +46,9 @@ public class UiElement implements Serializable { private String location; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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 = {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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java index bbf5141d78..38c05355e3 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java @@ -47,8 +47,6 @@ public class UiElementModule implements Serializable { private Double pos; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_module.create_user.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_element_module.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java index 745cd46399..8346cfc6c5 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java @@ -79,8 +79,6 @@ public class UiScenario implements Serializable { private String customNum; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; @Schema(title = "删除时间") diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java index e90c50c328..3ddb6fba2f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java @@ -47,8 +47,6 @@ public class UiScenarioModule implements Serializable { private Double pos; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java index 4a513a6e94..fbc892fac7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java @@ -24,8 +24,6 @@ public class UiScenarioReference implements Serializable { private Long createTime; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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) diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java index d1b14f6e38..1c9cc3e4c6 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java @@ -57,8 +57,6 @@ public class UiScenarioReport implements Serializable { private String scenarioId; @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - @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)