refactor(接口定义): 描述字段改为1000
This commit is contained in:
parent
6c59e7522c
commit
ef80edaf86
|
@ -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 '创建时间' ,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' ,
|
||||
|
|
|
@ -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=责任人不能为空
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=是否开启同步不能为空
|
||||
|
|
|
@ -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=責任人不能為空
|
||||
|
|
|
@ -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}之间
|
|
@ -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
|
||||
api_import_schedule=API import schedule
|
||||
|
||||
project.description.length_range=The description must be between {min} and {max} characters
|
|
@ -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=接口定义-定时导入任务
|
||||
api_import_schedule=接口定义-定时导入任务
|
||||
|
||||
project.description.length_range=项目描述长度必须在{min}和{max}之间
|
|
@ -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=接口導入定時任務
|
||||
api_import_schedule=接口導入定時任務
|
||||
|
||||
project.description.length_range=項目描述長度必須在{min}和{max}之間
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = "标签")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = "标签")
|
||||
|
|
|
@ -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<String> moduleIds;
|
||||
|
||||
@Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private List<String> userIds;
|
||||
|
||||
@Schema(description = "资源池", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@Schema(description = "资源池", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
private List<String> resourcePoolIds;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue