diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql index 7a208882d9..9c2986a84c 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql @@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS environment `create_time` BIGINT NOT NULL COMMENT '创建时间', `update_time` BIGINT NOT NULL COMMENT '更新时间', `mock` BIT NOT NULL DEFAULT 0 COMMENT '是否是mock环境', - `description` VARCHAR(255) COMMENT '描述' , + `description` VARCHAR(1000) COMMENT '描述' , `pos` BIGINT NOT NULL COMMENT '排序' , PRIMARY KEY (id) ) ENGINE = InnoDB @@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS environment_group( `id` VARCHAR(50) NOT NULL COMMENT '环境组id' , `name` VARCHAR(255) NOT NULL COMMENT '环境组名' , `project_id` VARCHAR(50) NOT NULL COMMENT '所属项目id' , - `description` VARCHAR(500) COMMENT '环境组描述' , + `description` VARCHAR(1000) COMMENT '环境组描述' , `create_user` VARCHAR(50) NOT NULL COMMENT '创建人' , `update_user` VARCHAR(50) NOT NULL COMMENT '修改人' , `create_time` BIGINT NOT NULL COMMENT '创建时间' , diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql index 50bc57b601..2cb69f66f8 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS custom_function `project_id` VARCHAR(50) NOT NULL COMMENT '项目ID' , `name` VARCHAR(255) NOT NULL COMMENT '函数名', `tags` VARCHAR(1000) COMMENT '标签', - `description` VARCHAR(500) COMMENT '函数描述', + `description` VARCHAR(1000) COMMENT '函数描述', `type` VARCHAR(50) DEFAULT NULL COMMENT '脚本语言类型', `status` VARCHAR(50) COMMENT '脚本状态(草稿/测试通过)' , `create_time` BIGINT COMMENT '创建时间' , @@ -101,7 +101,7 @@ CREATE TABLE IF NOT EXISTS file_metadata `create_user` VARCHAR(50) NOT NULL COMMENT '创建人', `update_user` VARCHAR(50) NOT NULL COMMENT '修改人', `tags` VARCHAR(1000) COMMENT '标签', - `description` VARCHAR(500) COMMENT '描述', + `description` VARCHAR(1000) COMMENT '描述', `module_id` VARCHAR(50) COMMENT '文件所属模块', `path` VARCHAR(1000) COMMENT '文件存储路径', `latest` BIT NOT NULL DEFAULT 1 COMMENT '是否是最新版', @@ -157,7 +157,7 @@ CREATE TABLE IF NOT EXISTS project `num` BIGINT NOT NULL AUTO_INCREMENT COMMENT '项目编号', `organization_id` VARCHAR(50) NOT NULL COMMENT '组织ID', `name` VARCHAR(255) NOT NULL COMMENT '项目名称', - `description` VARCHAR(500) COMMENT '项目描述', + `description` VARCHAR(1000) COMMENT '项目描述', `create_time` BIGINT NOT NULL COMMENT '创建时间', `update_time` BIGINT NOT NULL COMMENT '更新时间', `update_user` VARCHAR(50) NOT NULL COMMENT '修改人', @@ -200,7 +200,7 @@ CREATE TABLE IF NOT EXISTS project_version `id` VARCHAR(50) NOT NULL COMMENT '版本ID', `project_id` VARCHAR(50) NOT NULL COMMENT '项目ID', `name` VARCHAR(255) NOT NULL COMMENT '版本名称', - `description` VARCHAR(500) COMMENT '描述', + `description` VARCHAR(1000) COMMENT '描述', `status` VARCHAR(20) COMMENT '状态', `latest` BIT NOT NULL COMMENT '是否是最新版', `publish_time` BIGINT COMMENT '发布时间', @@ -332,7 +332,7 @@ CREATE TABLE IF NOT EXISTS project_robot( `create_time` BIGINT NOT NULL COMMENT '创建时间' , `update_user` VARCHAR(50) NOT NULL COMMENT '修改人' , `update_time` BIGINT NOT NULL COMMENT '更新时间' , - `description` VARCHAR(255) COMMENT '描述' , + `description` VARCHAR(1000) COMMENT '描述' , PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql index d342fb4740..1ff27520d5 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql @@ -243,7 +243,7 @@ CREATE TABLE IF NOT EXISTS api_scenario( `latest` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否为最新版本 0:否,1:是' , `project_id` VARCHAR(50) NOT NULL COMMENT '项目fk' , `module_id` VARCHAR(50) NOT NULL COMMENT '场景模块fk' , - `description` VARCHAR(500) COMMENT '描述信息' , + `description` VARCHAR(1000) COMMENT '描述信息' , `tags` VARCHAR(1000) COMMENT '标签' , `grouped` BIT(1) DEFAULT 0 COMMENT '是否为环境组' , `environment_id` VARCHAR(50) COMMENT '环境或者环境组ID' , diff --git a/backend/framework/sdk/src/main/resources/i18n/api.properties b/backend/framework/sdk/src/main/resources/i18n/api.properties index e43175c637..f9a4ff7765 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api.properties @@ -151,6 +151,7 @@ api_definition.version_id.not_blank=版本ID不能为空 api_definition.version_id.length_range=版本ID长度必须在1-50之间 api_definition.ref_id.not_blank=引用ID不能为空 api_definition.ref_id.length_range=引用ID必须在1-50之间 +api_definition.description.length_range=描述长度必须在0-1000之间 #module:ApiDefinitionFollow api_definition_follow.api_definition_id.length_range=接口ID长度必须在1-50之间 api_definition_follow.api_definition_id.not_blank=接口ID不能为空 @@ -200,7 +201,7 @@ api_test_case.sync_enable.not_blank=是否开启同步不能为空 api_test_case.project_id.length_range=项目ID长度必须在1-50之间 api_test_case.project_id.not_blank=项目ID不能为空 api_test_case.api_definition_id.length_range=接口ID长度必须在1-50之间 -api_test_case.tag.length_range=标签长度必须在1-50之间 +api_test_case.tag.length_range=标签长度必须在1-64之间 api_test_case.api_definition_id.not_blank=接口ID不能为空 api_test_case.principal.length_range=责任人长度必须在1-50之间 api_test_case.principal.not_blank=责任人不能为空 diff --git a/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties index 2631e83a08..aa47acac7e 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties @@ -151,6 +151,7 @@ api_definition.version_id.not_blank=Version fk cannot be empty api_definition.version_id.length_range=Version fk length must be between 1 and 50 api_definition.ref_id.not_blank=Reference fk cannot be empty api_definition.ref_id.length_range=Reference fk length must be between 1 and 50 +api_definition.description.length_range=Interface description length must be between 0-1000 #module:ApiDefinitionFollow api_definition_follow.api_definition_id.length_range=Interface fk length must be between 1-50 api_definition_follow.api_definition_id.not_blank=Interface fk cannot be empty @@ -199,7 +200,7 @@ api_test_case.priority.not_blank=Use case class cannot be empty api_test_case.sync_enable.length_range=Whether to enable synchronization length must be between 1-1 api_test_case.sync_enable.not_blank=Whether to enable synchronization can not be empty api_test_case.project_id.length_range=Item fk length must be between 1-50 -api_test_case.tag.length_range=Use case tag length must be between 1-50 +api_test_case.tag.length_range=Use case tag length must be between 1-64 api_test_case.project_id.not_blank=Item fk cannot be empty api_test_case.api_definition_id.length_range=Interface fk length must be between 1-50 api_test_case.api_definition_id.not_blank=Interface fk cannot be empty diff --git a/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties index 9e28aeaef3..39d9d820da 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties @@ -131,6 +131,7 @@ api_definition.version_id.not_blank=版本ID不能为空 api_definition.version_id.length_range=版本ID长度必须在1-50之间 api_definition.ref_id.not_blank=引用ID不能为空 api_definition.ref_id.length_range=引用ID必须在1-50之间 +api_definition.description.length_range=描述长度必须在0-1000之间 #module:ApiDefinitionFollow api_definition_follow.api_definition_id.length_range=接口ID长度必须在1-50之间 api_definition_follow.api_definition_id.not_blank=接口ID不能为空 @@ -174,7 +175,7 @@ api_test_case.update_user.not_blank=更新人不能为空 api_test_case.deleted.length_range=删除标识长度必须在1-1之间 api_test_case.deleted.not_blank=删除标识不能为空 api_test_case.priority.length_range=用例等级长度必须在1-50之间 -api_test_case.tag.length_range=标签长度必须在1-50之间 +api_test_case.tag.length_range=标签长度必须在1-64之间 api_test_case.priority.not_blank=用例等级不能为空 api_test_case.sync_enable.length_range=是否开启同步长度必须在1-1之间 api_test_case.sync_enable.not_blank=是否开启同步不能为空 diff --git a/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties index 08667bb846..08175e70f8 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties @@ -131,6 +131,7 @@ api_definition.version_id.not_blank=版本ID不能為空 api_definition.version_id.length_range=版本ID長度必須在1-50之間 api_definition.ref_id.not_blank=引用ID不能為空 api_definition.ref_id.length_range=引用ID必須在1-50之間 +api_definition.description.length_range=描述長度必須在0-1000之間 #module:ApiDefinitionFollow api_definition_follow.api_definition_id.length_range=接口ID長度必須在1-50之間 api_definition_follow.api_definition_id.not_blank=接口ID不能為空 @@ -181,7 +182,7 @@ api_test_case.sync_enable.not_blank=是否開啟同步不能為空 api_test_case.project_id.length_range=項目ID長度必須在1-50之間 api_test_case.project_id.not_blank=項目ID不能為空 api_test_case.api_definition_id.length_range=接口ID長度必須在1-50之間 -api_test_case.tag.length_range=標籤長度必須在1-50之間 +api_test_case.tag.length_range=標籤長度必須在1-64之間 api_test_case.api_definition_id.not_blank=接口ID不能為空 api_test_case.principal.length_range=責任人長度必須在1-50之間 api_test_case.principal.not_blank=責任人不能為空 diff --git a/backend/framework/sdk/src/main/resources/i18n/commons.properties b/backend/framework/sdk/src/main/resources/i18n/commons.properties index 36184580ee..521cce2210 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons.properties @@ -517,3 +517,4 @@ relate_source_id_length_range=关联来源ID必须在{min}和{max}之间 relate_source_type_not_blank=关联资源类型不能为空 api_import_schedule=接口定义-定时导入任务 +project.description.length_range=项目描述长度必须在{min}和{max}之间 \ No newline at end of file diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties index 2e43eb6d4d..7d01fe8e10 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties @@ -543,4 +543,6 @@ relate_source_id_not_blank=Source id cannot be empty relate_source_id_length_range=The association source ID must be between {min} and {max} relate_source_type_not_blank=The associated resource type cannot be empty -api_import_schedule=API import schedule \ No newline at end of file +api_import_schedule=API import schedule + +project.description.length_range=The description must be between {min} and {max} characters \ No newline at end of file diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties index cc901524bc..b76a84475c 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties @@ -539,4 +539,6 @@ relate_source_id_not_blank=关联来源ID不能为空 relate_source_id_length_range=关联来源ID必须在{min}和{max}之间 relate_source_type_not_blank=关联资源类型不能为空 -api_import_schedule=接口定义-定时导入任务 \ No newline at end of file +api_import_schedule=接口定义-定时导入任务 + +project.description.length_range=项目描述长度必须在{min}和{max}之间 \ No newline at end of file diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties index fe683c08e4..42e656974d 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties @@ -539,4 +539,6 @@ relate_source_id_not_blank=關聯來源ID不能為空 relate_source_id_length_range=關聯來源ID必須在{min}和{max}之間 relate_source_type_not_blank=關聯資源類型不能為空 -api_import_schedule=接口導入定時任務 \ No newline at end of file +api_import_schedule=接口導入定時任務 + +project.description.length_range=項目描述長度必須在{min}和{max}之間 \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiCaseBatchEditRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiCaseBatchEditRequest.java index 78d4035217..a0ea4dd565 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiCaseBatchEditRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiCaseBatchEditRequest.java @@ -20,7 +20,7 @@ public class ApiCaseBatchEditRequest extends ApiTestCaseBatchRequest implements @Schema(description = "标签") private LinkedHashSet< @NotBlank - @Size(min = 1, max = 50, message = "{api_test_case.tag.length_range}") + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") String> tags; @Schema(description = "批量编辑的类型 用例等级: Priority,状态 :Status,标签: Tags,用例环境: Environment") @NotBlank diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionAddRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionAddRequest.java index 3de6d00b6e..10bb23c03b 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionAddRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionAddRequest.java @@ -58,14 +58,18 @@ public class ApiDefinitionAddRequest implements Serializable { private String moduleId; @Schema(description = "版本fk") - @Size(min = 1, max = 50, message = "{api_definition.version_id.length_range}") + @Size(max = 50, message = "{api_definition.version_id.length_range}") private String versionId; @Schema(description = "描述") + @Size(max = 1000, message = "{api_definition.description.length_range}") private String description; @Schema(description = "标签") - private LinkedHashSet<@NotBlank String> tags; + private LinkedHashSet< + @NotBlank + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") + String> tags; @Schema(description = "请求内容") @NotNull diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionBatchUpdateRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionBatchUpdateRequest.java index 671c19fd16..ba5c734b47 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionBatchUpdateRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionBatchUpdateRequest.java @@ -36,7 +36,10 @@ public class ApiDefinitionBatchUpdateRequest extends ApiDefinitionBatchRequest { private String versionId; @Schema(description = "标签") - private LinkedHashSet<@NotBlank String> tags; + private LinkedHashSet< + @NotBlank + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") + String> tags; @Schema(description = "自定义字段") private ApiDefinitionCustomFieldDTO customField; diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseAddRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseAddRequest.java index 0350eb716f..22d01fb89e 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseAddRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseAddRequest.java @@ -44,7 +44,7 @@ public class ApiTestCaseAddRequest implements Serializable { @Schema(description = "标签") private LinkedHashSet< @NotBlank - @Size(min = 1, max = 50, message = "{api_test_case.tag.length_range}") + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") String> tags; @Schema(description = "环境fk") diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockAddRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockAddRequest.java index 7712145db6..b1f48e194f 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockAddRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/request/ApiDefinitionMockAddRequest.java @@ -31,7 +31,10 @@ public class ApiDefinitionMockAddRequest implements Serializable { private String name; @Schema(description = "标签") - private LinkedHashSet<@NotBlank String> tags; + private LinkedHashSet< + @NotBlank + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") + String> tags; @Schema(description = "请求内容") @NotBlank diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioAddRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioAddRequest.java index 61808cea58..be9f1c1f1c 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioAddRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioAddRequest.java @@ -44,6 +44,7 @@ public class ApiScenarioAddRequest { private String moduleId; @Schema(description = "描述信息") + @Size(max = 1000, message = "{api_definition.description.length_range}") private String description; @Schema(description = "标签") diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioBatchEditRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioBatchEditRequest.java index efa0fdea35..f24c0e57e7 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioBatchEditRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioBatchEditRequest.java @@ -20,7 +20,7 @@ public class ApiScenarioBatchEditRequest extends ApiScenarioBatchRequest impleme @Schema(description = "标签") private LinkedHashSet< @NotBlank - @Size(min = 1, max = 50, message = "{api_test_case.tag.length_range}") + @Size(min = 1, max = 64, message = "{api_test_case.tag.length_range}") String> tags; @Schema(description = "批量编辑的类型 用例等级: Priority,状态 :Status,标签: Tags,用例环境: Environment") @NotBlank diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioUpdateRequest.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioUpdateRequest.java index c68e327eae..a6b110ce93 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioUpdateRequest.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioUpdateRequest.java @@ -42,6 +42,7 @@ public class ApiScenarioUpdateRequest { private String moduleId; @Schema(description = "描述信息") + @Size(max = 1000, message = "{api_definition.description.length_range}") private String description; @Schema(description = "标签") diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/sdk/ProjectBaseRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/sdk/ProjectBaseRequest.java index 8b4f2ec062..e0ebd152b8 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/sdk/ProjectBaseRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/sdk/ProjectBaseRequest.java @@ -14,28 +14,29 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class ProjectBaseRequest { - @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.organization_id.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 50, message = "{project.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 255, message = "{project.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(description = "项目描述") + @Schema(description = "项目描述") + @Size(min = 0, max = 1000, message = "{project.description.length_range}", groups = {Created.class, Updated.class}) private String description; - @Schema(description = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(description = "模块设置", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "模块设置", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List moduleIds; - @Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List userIds; - @Schema(description = "资源池", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "资源池", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List resourcePoolIds; }