refactor(项目设置): 修改描述字段长度

This commit is contained in:
AgAngle 2024-02-29 17:36:19 +08:00 committed by 刘瑞斌
parent 87bfd38188
commit ba2701d7bd
7 changed files with 10 additions and 8 deletions

View File

@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS auth_source
`enable` BIT NOT NULL DEFAULT 0 COMMENT '是否启用', `enable` BIT NOT NULL DEFAULT 0 COMMENT '是否启用',
`create_time` BIGINT NOT NULL COMMENT '创建时间', `create_time` BIGINT NOT NULL COMMENT '创建时间',
`update_time` BIGINT NOT NULL COMMENT '更新时间', `update_time` BIGINT NOT NULL COMMENT '更新时间',
`description` VARCHAR(500) COMMENT '描述', `description` VARCHAR(1000) COMMENT '描述',
`name` VARCHAR(255) COMMENT '名称', `name` VARCHAR(255) COMMENT '名称',
`type` VARCHAR(30) COMMENT '类型', `type` VARCHAR(30) COMMENT '类型',
PRIMARY KEY (id) PRIMARY KEY (id)
@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS user_role
( (
`id` VARCHAR(50) NOT NULL COMMENT '组ID', `id` VARCHAR(50) NOT NULL COMMENT '组ID',
`name` VARCHAR(255) NOT NULL COMMENT '组名称', `name` VARCHAR(255) NOT NULL COMMENT '组名称',
`description` VARCHAR(500) COMMENT '描述', `description` VARCHAR(1000) COMMENT '描述',
`internal` BIT NOT NULL COMMENT '是否是内置用户组', `internal` BIT NOT NULL COMMENT '是否是内置用户组',
`type` VARCHAR(20) NOT NULL COMMENT '所属类型 SYSTEM ORGANIZATION PROJECT', `type` VARCHAR(20) NOT NULL COMMENT '所属类型 SYSTEM ORGANIZATION PROJECT',
`create_time` BIGINT NOT NULL COMMENT '创建时间', `create_time` BIGINT NOT NULL COMMENT '创建时间',
@ -381,7 +381,7 @@ CREATE TABLE IF NOT EXISTS custom_field_option(
CREATE TABLE IF NOT EXISTS template( CREATE TABLE IF NOT EXISTS template(
`id` VARCHAR(50) NOT NULL COMMENT 'ID' , `id` VARCHAR(50) NOT NULL COMMENT 'ID' ,
`name` VARCHAR(255) NOT NULL COMMENT '名称' , `name` VARCHAR(255) NOT NULL COMMENT '名称' ,
`remark` VARCHAR(500) COMMENT '备注' , `remark` VARCHAR(1000) COMMENT '备注' ,
`internal` BIT NOT NULL DEFAULT 0 COMMENT '是否是内置模板' , `internal` BIT NOT NULL DEFAULT 0 COMMENT '是否是内置模板' ,
`update_time` BIGINT NOT NULL COMMENT '创建时间' , `update_time` BIGINT NOT NULL COMMENT '创建时间' ,
`create_time` BIGINT NOT NULL COMMENT '创建时间' , `create_time` BIGINT NOT NULL COMMENT '创建时间' ,
@ -419,7 +419,7 @@ CREATE TABLE IF NOT EXISTS status_item(
`id` VARCHAR(50) NOT NULL COMMENT '状态ID' , `id` VARCHAR(50) NOT NULL COMMENT '状态ID' ,
`name` VARCHAR(255) NOT NULL COMMENT '状态名称' , `name` VARCHAR(255) NOT NULL COMMENT '状态名称' ,
`scene` VARCHAR(30) NOT NULL COMMENT '使用场景' , `scene` VARCHAR(30) NOT NULL COMMENT '使用场景' ,
`remark` VARCHAR(500) COMMENT '状态说明' , `remark` VARCHAR(1000) COMMENT '状态说明' ,
`internal` BIT NOT NULL DEFAULT 0 COMMENT '是否是内置字段' , `internal` BIT NOT NULL DEFAULT 0 COMMENT '是否是内置字段' ,
`scope_type` VARCHAR(50) NOT NULL DEFAULT 0 COMMENT '组织或项目级别字段PROJECT, ORGANIZATION' , `scope_type` VARCHAR(50) NOT NULL DEFAULT 0 COMMENT '组织或项目级别字段PROJECT, ORGANIZATION' ,
`ref_id` VARCHAR(50) COMMENT '项目状态所关联的组织状态ID' , `ref_id` VARCHAR(50) COMMENT '项目状态所关联的组织状态ID' ,

View File

@ -77,7 +77,7 @@ public class ApiDefinitionAddRequest implements Serializable {
@Schema(description = "响应内容") @Schema(description = "响应内容")
@NotNull @NotNull
private Object response; private List<HttpResponse> response;
/** /**
* 新上传的文件ID * 新上传的文件ID

View File

@ -195,7 +195,7 @@ public class ApiDefinitionService {
apiDefinitionBlob.setId(apiDefinition.getId()); apiDefinitionBlob.setId(apiDefinition.getId());
apiDefinitionBlob.setRequest(getMsTestElementStr(request.getRequest()).getBytes()); apiDefinitionBlob.setRequest(getMsTestElementStr(request.getRequest()).getBytes());
if (request.getResponse() != null) { if (request.getResponse() != null) {
List<HttpResponse> msHttpResponse = JSON.parseArray(JSON.toJSONString(request.getResponse()), HttpResponse.class); List<HttpResponse> msHttpResponse = request.getResponse();
msHttpResponse.forEach(item -> item.setId(IDGenerator.nextStr())); msHttpResponse.forEach(item -> item.setId(IDGenerator.nextStr()));
apiDefinitionBlob.setResponse(JSON.toJSONString(msHttpResponse).getBytes()); apiDefinitionBlob.setResponse(JSON.toJSONString(msHttpResponse).getBytes());
} }

View File

@ -29,7 +29,7 @@ public class StatusItemAddRequest implements Serializable {
private String scene; private String scene;
@Schema(description = "状态说明") @Schema(description = "状态说明")
@Size(max = 500) @Size(max = 1000)
private String remark; private String remark;
@Schema(description = "所有状态都可以流转到该状态") @Schema(description = "所有状态都可以流转到该状态")

View File

@ -21,6 +21,6 @@ public class StatusItemUpdateRequest implements Serializable {
private String name; private String name;
@Schema(description = "状态说明") @Schema(description = "状态说明")
@Size(max = 500) @Size(max = 1000)
private String remark; private String remark;
} }

View File

@ -25,6 +25,7 @@ public class TemplateUpdateRequest {
private String name; private String name;
@Schema(title = "备注") @Schema(title = "备注")
@Size(max = 1000, groups = {Created.class, Updated.class})
private String remark; private String remark;
@Schema(title = "组织或项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(title = "组织或项目ID", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -29,6 +29,7 @@ public class UserRoleUpdateRequest implements Serializable {
private String name; private String name;
@Schema(description = "描述") @Schema(description = "描述")
@Size(max = 1000, groups = {Created.class, Updated.class})
private String description; private String description;
@Schema(description = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED)