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 db0febf8c5..ac3ffeb215 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 @@ -10,95 +10,95 @@ import lombok.Data; @Data public class ApiDefinition implements Serializable { - @Schema(title = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "修改时间") + @Schema(description = "修改时间") private Long updateTime; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除状态") + @Schema(description = "删除状态") private Boolean deleted; - @Schema(title = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_definition.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.method.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class}) private String method; - @Schema(title = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口协议", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class}) private String protocol; - @Schema(title = "接口路径-只有HTTP协议有值") + @Schema(description = "接口路径-只有HTTP协议有值") private String path; - @Schema(title = "模块全路径-用于导入处理") + @Schema(description = "模块全路径-用于导入处理") private String modulePath; - @Schema(title = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口状态/进行中/已完成", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "模块fk") + @Schema(description = "模块fk") private String moduleId; - @Schema(title = "自定义id") + @Schema(description = "自定义id") private Integer num; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_definition.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "是否启用同步") + @Schema(description = "是否启用同步") private Boolean syncEnable; - @Schema(title = "同步开始时间") + @Schema(description = "同步开始时间") private Long syncTime; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "环境fk") + @Schema(description = "环境fk") private String environmentId; - @Schema(title = "是否为最新版本 0:否,1:是") + @Schema(description = "是否为最新版本 0:否,1:是") private Boolean latest; - @Schema(title = "版本fk") + @Schema(description = "版本fk") private String versionId; - @Schema(title = "版本引用fk") + @Schema(description = "版本引用fk") private String refId; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java index 0ecc290690..a5674cccf2 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java @@ -10,18 +10,18 @@ import lombok.Data; @Data public class ApiDefinitionBlob implements Serializable { - @Schema(title = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口fk/ 一对一关系", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "请求内容") + @Schema(description = "请求内容") private byte[] request; - @Schema(title = "响应内容") + @Schema(description = "响应内容") private byte[] response; - @Schema(title = "备注") + @Schema(description = "备注") private byte[] remark; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollower.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollower.java index 718ebb14df..e14ad6a035 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiDefinitionFollower implements Serializable { - @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_follower.api_definition_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_follower.api_definition_id.length_range}", groups = {Created.class, Updated.class}) private String apiDefinitionId; - @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; 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 df320bb14d..c0c3898b94 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 @@ -12,49 +12,49 @@ import java.io.Serializable; @Data public class ApiDefinitionMock implements Serializable { - @Schema(title = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "mock pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition_mock.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "接口路径") + @Schema(description = "接口路径") private String apiPath; - @Schema(title = "接口类型") + @Schema(description = "接口类型") private String apiMethod; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "修改时间") + @Schema(description = "修改时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "mock 名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 200, message = "{api_definition_mock.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "自定义标签") + @Schema(description = "自定义标签") private String tags; - @Schema(title = "启用/禁用", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "启用/禁用", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_definition_mock.enable.not_blank}", groups = {Created.class}) private Boolean enable; - @Schema(title = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "mock编号", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_mock.expect_num.length_range}", groups = {Created.class, Updated.class}) private String expectNum; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_mock.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock.api_definition_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_mock.api_definition_id.length_range}", groups = {Created.class, Updated.class}) private String apiDefinitionId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java index 348ec45d76..5a3742a900 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionMockConfig.java @@ -11,15 +11,15 @@ import java.io.Serializable; @Data public class ApiDefinitionMockConfig implements Serializable { - @Schema(title = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口mock pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_mock_config.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition_mock_config.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "请求内容") + @Schema(description = "请求内容") private byte[] request; - @Schema(title = "响应内容") + @Schema(description = "响应内容") private byte[] response; private static final long serialVersionUID = 1L; 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 e0f120b363..09292264c8 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 @@ -12,48 +12,48 @@ import java.io.Serializable; @Data public class ApiDefinitionModule implements Serializable { - @Schema(title = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口模块pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "修改时间") + @Schema(description = "修改时间") private Long updateTime; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_module.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_definition_module.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "协议", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "协议", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_module.protocol.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{api_definition_module.protocol.length_range}", groups = {Created.class, Updated.class}) private String protocol; - @Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_module.parent_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_module.parent_id.length_range}", groups = {Created.class, Updated.class}) private String parentId; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_module.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_definition_module.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "树节点级别", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "树节点级别", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_definition_module.level.not_blank}", groups = {Created.class}) private Integer level; - @Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_definition_module.pos.not_blank}", groups = {Created.class}) private Integer pos; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java index e51d27f3f6..8e41e4333c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionSwagger.java @@ -8,32 +8,32 @@ import lombok.Data; @Data public class ApiDefinitionSwagger implements Serializable { - @Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_definition_swagger.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "url地址", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "url地址", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_definition_swagger.swagger_url.not_blank}", groups = {Created.class}) @Size(min = 1, max = 500, message = "{api_definition_swagger.swagger_url.length_range}", groups = {Created.class, Updated.class}) private String swaggerUrl; - @Schema(title = "模块fk") + @Schema(description = "模块fk") private String moduleId; - @Schema(title = "模块路径") + @Schema(description = "模块路径") private String modulePath; - @Schema(title = "导入模式/覆盖/不覆盖") + @Schema(description = "导入模式/覆盖/不覆盖") private Boolean mode; - @Schema(title = "项目fk") + @Schema(description = "项目fk") private String projectId; - @Schema(title = "导入版本") + @Schema(description = "导入版本") private String versionId; - @Schema(title = "鉴权配置信息") + @Schema(description = "鉴权配置信息") private byte[] config; private static final long serialVersionUID = 1L; 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 8401059b92..390f5d3ba8 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 @@ -8,21 +8,21 @@ import lombok.Data; @Data public class ApiEnvironmentConfig implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_environment_config.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_environment_config.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "修改时间") + @Schema(description = "修改时间") private Long updateTime; - @Schema(title = "用户fk") + @Schema(description = "用户fk") private String createUser; - @Schema(title = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "环境fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_environment_config.environment_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_environment_config.environment_id.length_range}", groups = {Created.class, Updated.class}) private String environmentId; 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 c12d4fc79b..5043f6a306 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 @@ -8,77 +8,77 @@ import lombok.Data; @Data public class ApiReport implements Serializable { - @Schema(title = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 200, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "修改时间") + @Schema(description = "修改时间") private Long updateTime; - @Schema(title = "创建人fk") + @Schema(description = "创建人fk") private String createUser; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_report.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; - @Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "接口开始执行时间") + @Schema(description = "接口开始执行时间") private Long startTime; - @Schema(title = "接口执行结束时间") + @Schema(description = "接口执行结束时间") private Long endTime; - @Schema(title = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_report.run_mode.length_range}", groups = {Created.class, Updated.class}) private String runMode; - @Schema(title = "资源池fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class}) private String poolId; - @Schema(title = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class}) private String triggerMode; - @Schema(title = "版本fk") + @Schema(description = "版本fk") private String versionId; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "集成报告id/api_scenario_report_id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report.integrated_report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_report.integrated_report_id.length_range}", groups = {Created.class, Updated.class}) private String integratedReportId; - @Schema(title = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_report.integrated.not_blank}", groups = {Created.class}) private Boolean integrated; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java index f980865eda..46a10d495d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java @@ -8,18 +8,18 @@ import lombok.Data; @Data public class ApiReportBlob implements Serializable { - @Schema(title = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口报告fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_report_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_report_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "结果内容详情") + @Schema(description = "结果内容详情") private byte[] content; - @Schema(title = "执行环境配置") + @Schema(description = "执行环境配置") private byte[] config; - @Schema(title = "执行过程日志") + @Schema(description = "执行过程日志") private byte[] console; private static final long serialVersionUID = 1L; 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 639f560ee5..170d8979b8 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 @@ -8,104 +8,104 @@ import lombok.Data; @Data public class ApiScenario implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_scenario.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景级别/P0/P1等", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.level.not_blank}", groups = {Created.class}) @Size(min = 1, max = 10, message = "{api_scenario.level.length_range}", groups = {Created.class, Updated.class}) private String level; - @Schema(title = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景状态/未规划/已完成 等", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_scenario.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "责任人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.principal.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario.principal.length_range}", groups = {Created.class, Updated.class}) private String principal; - @Schema(title = "场景步骤总数", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景步骤总数", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario.step_total.not_blank}", groups = {Created.class}) private Integer stepTotal; - @Schema(title = "通过率", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "通过率", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario.pass_rate.not_blank}", groups = {Created.class}) private Long passRate; - @Schema(title = "最后一次执行的结果状态") + @Schema(description = "最后一次执行的结果状态") private String reportStatus; - @Schema(title = "编号") + @Schema(description = "编号") private Integer num; - @Schema(title = "自定义id") + @Schema(description = "自定义id") private String customNum; - @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "版本fk") + @Schema(description = "版本fk") private String versionId; - @Schema(title = "引用资源fk") + @Schema(description = "引用资源fk") private String refId; - @Schema(title = "是否为最新版本 0:否,1:是") + @Schema(description = "是否为最新版本 0:否,1:是") private Boolean latest; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "场景模块fk") + @Schema(description = "场景模块fk") private String apiScenarioModuleId; - @Schema(title = "最后一次执行的报告fk") + @Schema(description = "最后一次执行的报告fk") private String reportId; - @Schema(title = "描述信息") + @Schema(description = "描述信息") private String description; - @Schema(title = "模块全路径/用于导入模块创建") + @Schema(description = "模块全路径/用于导入模块创建") private String modulePath; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否为环境组", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario.grouped.not_blank}", groups = {Created.class}) private Boolean grouped; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java index fc90a836e4..f4c6320d69 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiScenarioBlob implements Serializable { - @Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景步骤内容") + @Schema(description = "场景步骤内容") private byte[] content; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java index 83c80264c0..7b2a6309d5 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java @@ -8,25 +8,25 @@ import lombok.Data; @Data public class ApiScenarioEnvironment implements Serializable { - @Schema(title = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景环境pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_environment.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_environment.api_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String apiScenarioId; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_environment.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "环境fk") + @Schema(description = "环境fk") private String environmentId; - @Schema(title = "环境组fk") + @Schema(description = "环境组fk") private String environmentGroupId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollower.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollower.java index 395b37d906..3edcb74bd1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiScenarioFollower implements Serializable { - @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_follower.api_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_follower.api_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String apiScenarioId; - @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; 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 d2c6e4f84a..6200406045 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 @@ -8,42 +8,42 @@ import lombok.Data; @Data public class ApiScenarioModule implements Serializable { - @Schema(title = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景模块pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_module.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_scenario_module.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "模块级别", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块级别", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario_module.level.not_blank}", groups = {Created.class}) private Integer level; - @Schema(title = "排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario_module.pos.not_blank}", groups = {Created.class}) private Integer pos; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_module.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "父级fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_module.parent_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_module.parent_id.length_range}", groups = {Created.class, Updated.class}) private String parentId; 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 1b699f5f4d..facc3fc9fa 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 @@ -8,31 +8,31 @@ import lombok.Data; @Data public class ApiScenarioReference implements Serializable { - @Schema(title = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "引用关系pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_reference.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_reference.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_reference.api_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_reference.api_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String apiScenarioId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "引用步骤fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_reference.reference_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class}) private String referenceId; - @Schema(title = "引用步骤类型/REF/COPY") + @Schema(description = "引用步骤类型/REF/COPY") private String referenceType; - @Schema(title = "步骤类型/CASE/API") + @Schema(description = "步骤类型/CASE/API") private String dataType; private static final long serialVersionUID = 1L; 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 ee31361df8..63c5606c7b 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 @@ -8,74 +8,74 @@ import lombok.Data; @Data public class ApiScenarioReport implements Serializable { - @Schema(title = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_scenario_report.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario_report.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "通过率") + @Schema(description = "通过率") private Long passRate; - @Schema(title = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_scenario_report.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.trigger_mode.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class}) private String triggerMode; - @Schema(title = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.run_mode.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_scenario_report.run_mode.length_range}", groups = {Created.class, Updated.class}) private String runMode; - @Schema(title = "资源池", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class}) private String poolId; - @Schema(title = "版本fk") + @Schema(description = "版本fk") private String versionId; - @Schema(title = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_scenario_report.integrated.not_blank}", groups = {Created.class}) private Boolean integrated; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class}) private String scenarioId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java index 88fd36ce05..78531b78f4 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java @@ -8,55 +8,55 @@ import lombok.Data; @Data public class ApiScenarioReportDetail implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report_detail.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_report_detail.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report_detail.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; - @Schema(title = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "开始时间") + @Schema(description = "开始时间") private Long startTime; - @Schema(title = "结果状态") + @Schema(description = "结果状态") private String status; - @Schema(title = "单个请求步骤时间") + @Schema(description = "单个请求步骤时间") private Long requestTime; - @Schema(title = "总断言数") + @Schema(description = "总断言数") private Long assertionsTotal; - @Schema(title = "失败断言数") + @Schema(description = "失败断言数") private Long passAssertionsTotal; - @Schema(title = "误报编号") + @Schema(description = "误报编号") private String fakeCode; - @Schema(title = "请求名称") + @Schema(description = "请求名称") private String requestName; - @Schema(title = "环境fk") + @Schema(description = "环境fk") private String environmentId; - @Schema(title = "项目fk") + @Schema(description = "项目fk") private String projectId; - @Schema(title = "失败总数") + @Schema(description = "失败总数") private Integer errorTotal; - @Schema(title = "请求响应码") + @Schema(description = "请求响应码") private String code; - @Schema(title = "执行结果") + @Schema(description = "执行结果") private byte[] content; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java index 70a78d7a20..92b49a30eb 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportLog.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiScenarioReportLog implements Serializable { - @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report_log.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report_log.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; - @Schema(title = "执行日志") + @Schema(description = "执行日志") private byte[] console; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java index 72bbc9da43..627d3a4a12 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportStructure.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiScenarioReportStructure implements Serializable { - @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_report_structure.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_scenario_report_structure.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; - @Schema(title = "资源步骤结构树") + @Schema(description = "资源步骤结构树") private byte[] resourceTree; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java index 54bc062788..83b7c16b46 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiSyncConfig.java @@ -8,40 +8,40 @@ import lombok.Data; @Data public class ApiSyncConfig implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_sync_config.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_sync_config.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "API/CASE 来源fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_sync_config.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_sync_config.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "来源类型/API/CASE", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_sync_config.resource_type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_sync_config.resource_type.length_range}", groups = {Created.class, Updated.class}) private String resourceType; - @Schema(title = "是否隐藏") + @Schema(description = "是否隐藏") private Boolean hide; - @Schema(title = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否通知用例创建人", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_sync_config.notify_case_creator.not_blank}", groups = {Created.class}) private Boolean notifyCaseCreator; - @Schema(title = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否通知场景创建人", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_sync_config.notify_scenario_creator.not_blank}", groups = {Created.class}) private Boolean notifyScenarioCreator; - @Schema(title = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否同步用例", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_sync_config.sync_enable.not_blank}", groups = {Created.class}) private Boolean syncEnable; - @Schema(title = "是否发送通知") + @Schema(description = "是否发送通知") private Boolean noticeEnable; - @Schema(title = "同步规则") + @Schema(description = "同步规则") private String ruleConfig; private static final long serialVersionUID = 1L; 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 bc3553967c..efc5494975 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 @@ -8,90 +8,90 @@ import lombok.Data; @Data public class ApiTestCase implements Serializable { - @Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_test_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口用例名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{api_test_case.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_test_case.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; - @Schema(title = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.priority.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case.priority.length_range}", groups = {Created.class, Updated.class}) private String priority; - @Schema(title = "接口用例编号id") + @Schema(description = "接口用例编号id") private Integer num; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "用例状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用例状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{api_test_case.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "最新执行结果状态") + @Schema(description = "最新执行结果状态") private String apiReportStatus; - @Schema(title = "最后执行结果报告fk") + @Schema(description = "最后执行结果报告fk") private String apiReportId; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_test_case.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否开启同步", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{api_test_case.sync_enable.not_blank}", groups = {Created.class}) private Boolean syncEnable; - @Schema(title = "需要同步的开始时间") + @Schema(description = "需要同步的开始时间") private Long syncTime; - @Schema(title = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.api_definition_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case.api_definition_id.length_range}", groups = {Created.class, Updated.class}) private String apiDefinitionId; - @Schema(title = "版本fk") + @Schema(description = "版本fk") private String versionId; - @Schema(title = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case.principal.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case.principal.length_range}", groups = {Created.class, Updated.class}) private String principal; - @Schema(title = "环境fk") + @Schema(description = "环境fk") private String environmentId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java index b8da95cc4e..d8a3737521 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiTestCaseBlob implements Serializable { - @Schema(title = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口用例pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_test_case_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "请求内容") + @Schema(description = "请求内容") private byte[] request; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollower.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollower.java index 6cc80f4ef0..46d9c133f8 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class ApiTestCaseFollower implements Serializable { - @Schema(title = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用例fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case_follower.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case_follower.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人/用户fk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_test_case_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{api_test_case_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java index 62456c42b8..2c9aea3fd0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java @@ -10,45 +10,45 @@ import lombok.Data; @Data public class Bug implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{bug.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "业务ID") + @Schema(description = "业务ID") private Integer num; - @Schema(title = "缺陷标题", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷标题", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug.title.not_blank}", groups = {Created.class}) @Size(min = 1, max = 300, message = "{bug.title.length_range}", groups = {Created.class, Updated.class}) private String title; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "缺陷平台", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷平台", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug.platform.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug.platform.length_range}", groups = {Created.class, Updated.class}) private String platform; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "缺陷来源,记录创建该缺陷的测试计划的ID") + @Schema(description = "缺陷来源,记录创建该缺陷的测试计划的ID") private String sourceId; - @Schema(title = "第三方平台状态") + @Schema(description = "第三方平台状态") private String platformStatus; - @Schema(title = "第三方平台缺陷ID") + @Schema(description = "第三方平台缺陷ID") private String platformId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java index f4eee92952..1dc20d6b83 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class BugAttachment implements Serializable { - @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_attachment.bug_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_attachment.bug_id.length_range}", groups = {Created.class, Updated.class}) private String bugId; - @Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_attachment.file_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_attachment.file_id.length_range}", groups = {Created.class, Updated.class}) private String fileId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java index cb0a81aacd..b045ed93ef 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class BugBlob implements Serializable { - @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{bug_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "缺陷描述") + @Schema(description = "缺陷描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java index 4a3768c330..b10770310f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java @@ -8,26 +8,26 @@ import lombok.Data; @Data public class BugComment implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_comment.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 64, message = "{bug_comment.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_comment.bug_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{bug_comment.bug_id.length_range}", groups = {Created.class, Updated.class}) private String bugId; - @Schema(title = "评论人") + @Schema(description = "评论人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "内容", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_comment.description.not_blank}", groups = {Created.class}) @Size(min = 1, max = 65535, message = "{bug_comment.description.length_range}", groups = {Created.class, Updated.class}) private String description; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java index e5636e4f51..6af10a11d3 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java @@ -8,20 +8,20 @@ import lombok.Data; @Data public class BugCustomField implements Serializable { - @Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_custom_field.bug_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_custom_field.bug_id.length_range}", groups = {Created.class, Updated.class}) private String bugId; - @Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_custom_field.field_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_custom_field.field_id.length_range}", groups = {Created.class, Updated.class}) private String fieldId; - @Schema(title = "字段值") + @Schema(description = "字段值") private String value; - @Schema(title = "文本类型字段值") + @Schema(description = "文本类型字段值") private byte[] textValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java index 8fd88e8154..1bff933796 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class BugFollower implements Serializable { - @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_follower.bug_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_follower.bug_id.length_range}", groups = {Created.class, Updated.class}) private String bugId; - @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java index 2edf0736a9..ca9c38e76d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java @@ -8,35 +8,35 @@ import lombok.Data; @Data public class BugFunctionalCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_functional_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{bug_functional_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "功能用例或测试计划功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例或测试计划功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_functional_case.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_functional_case.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_functional_case.bug_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_functional_case.bug_id.length_range}", groups = {Created.class, Updated.class}) private String bugId; - @Schema(title = "关联的类型:关联功能用例/关联测试计划功能用例", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关联的类型:关联功能用例/关联测试计划功能用例", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_functional_case.ref_type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{bug_functional_case.ref_type.length_range}", groups = {Created.class, Updated.class}) private String refType; - @Schema(title = "测试计划的用例所指向的用例的id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划的用例所指向的用例的id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_functional_case.ref_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_functional_case.ref_id.length_range}", groups = {Created.class, Updated.class}) private String refId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java index 92493c47d7..649ee35e07 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReview.java @@ -10,44 +10,44 @@ import lombok.Data; @Data public class CaseReview implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{case_review.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 200, message = "{case_review.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "评审状态:未开始/进行中/已完成/已结束/已归档") + @Schema(description = "评审状态:未开始/进行中/已完成/已结束/已归档") private String status; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "评审结束时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审结束时间", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{case_review.end_time.not_blank}", groups = {Created.class}) private Long endTime; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "评审规则:单人通过/全部通过") + @Schema(description = "评审规则:单人通过/全部通过") private String reviewPassRule; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollower.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollower.java index d0afe0922b..390270aef2 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class CaseReviewFollower implements Serializable { - @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_follower.review_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_follower.review_id.length_range}", groups = {Created.class, Updated.class}) private String reviewId; - @Schema(title = "关注人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java index 3b07eee796..5aa9414ee1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCase.java @@ -8,40 +8,40 @@ import lombok.Data; @Data public class CaseReviewFunctionalCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case.review_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case.review_id.length_range}", groups = {Created.class, Updated.class}) private String reviewId; - @Schema(title = "用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "评审状态:进行中/通过/不通过/重新提审", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审状态:进行中/通过/不通过/重新提审", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{case_review_functional_case.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{case_review_functional_case.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "关联的用例是否放入回收站", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关联的用例是否放入回收站", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{case_review_functional_case.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java index 17bc3a3c55..8d44e72c14 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewFunctionalCaseUser.java @@ -8,17 +8,17 @@ import lombok.Data; @Data public class CaseReviewFunctionalCaseUser implements Serializable { - @Schema(title = "功能用例和评审中间表的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例和评审中间表的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case_user.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case_user.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case_user.review_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case_user.review_id.length_range}", groups = {Created.class, Updated.class}) private String reviewId; - @Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_functional_case_user.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_functional_case_user.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java index f769712ca8..320b93676d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/CaseReviewUser.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class CaseReviewUser implements Serializable { - @Schema(title = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_user.review_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_user.review_id.length_range}", groups = {Created.class, Updated.class}) private String reviewId; - @Schema(title = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{case_review_user.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{case_review_user.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java index 5fecb983e2..0d2f0bf57f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCase.java @@ -8,92 +8,92 @@ import lombok.Data; @Data public class FunctionalCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "业务ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "业务ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case.num.not_blank}", groups = {Created.class}) private Integer num; - @Schema(title = "自定义业务ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义业务ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.custom_num.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{functional_case.custom_num.length_range}", groups = {Created.class, Updated.class}) private String customNum; - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.module_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.module_id.length_range}", groups = {Created.class, Updated.class}) private String moduleId; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{functional_case.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "评审状态:未开始/进行中/已完成/已结束", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评审状态:未开始/进行中/已完成/已结束", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.review_status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{functional_case.review_status.length_range}", groups = {Created.class, Updated.class}) private String reviewStatus; - @Schema(title = "标签(JSON)") + @Schema(description = "标签(JSON)") private String tags; - @Schema(title = "编辑模式:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "编辑模式:步骤模式/文本模式", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.step_model.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.step_model.length_range}", groups = {Created.class, Updated.class}) private String stepModel; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.version_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.version_id.length_range}", groups = {Created.class, Updated.class}) private String versionId; - @Schema(title = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.ref_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.ref_id.length_range}", groups = {Created.class, Updated.class}) private String refId; - @Schema(title = "最近的执行结果:未执行/通过/失败/阻塞/跳过", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "最近的执行结果:未执行/通过/失败/阻塞/跳过", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.last_execute_result.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{functional_case.last_execute_result.length_range}", groups = {Created.class, Updated.class}) private String lastExecuteResult; - @Schema(title = "是否在回收站:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否在回收站:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case.deleted.not_blank}", groups = {Created.class}) private Boolean deleted; - @Schema(title = "是否是公共用例:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否是公共用例:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case.public_case.not_blank}", groups = {Created.class}) private Boolean publicCase; - @Schema(title = "是否为最新版本:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否为最新版本:0-否,1-是", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case.latest.not_blank}", groups = {Created.class}) private Boolean latest; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java index 63f53924dc..e4eb04b338 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseAttachment.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class FunctionalCaseAttachment implements Serializable { - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_attachment.functional_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_attachment.functional_case_id.length_range}", groups = {Created.class, Updated.class}) private String functionalCaseId; - @Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_attachment.file_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_attachment.file_id.length_range}", groups = {Created.class, Updated.class}) private String fileId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java index 5a5df7f109..3115eb2f35 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseBlob.java @@ -8,24 +8,24 @@ import lombok.Data; @Data public class FunctionalCaseBlob implements Serializable { - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用例步骤(JSON),step_model 为 Step 时启用") + @Schema(description = "用例步骤(JSON),step_model 为 Step 时启用") private String steps; - @Schema(title = "步骤描述,step_model 为 Text 时启用") + @Schema(description = "步骤描述,step_model 为 Text 时启用") private String stepDescription; - @Schema(title = "预期结果,step_model 为 Text 时启用") + @Schema(description = "预期结果,step_model 为 Text 时启用") private String expectedResult; - @Schema(title = "前置条件") + @Schema(description = "前置条件") private String prerequisite; - @Schema(title = "备注") + @Schema(description = "备注") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java index c88edbe72b..3d1f8d6ddd 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseComment.java @@ -8,37 +8,37 @@ import lombok.Data; @Data public class FunctionalCaseComment implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_comment.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_comment.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_comment.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_comment.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "评论人") + @Schema(description = "评论人") private String createUser; - @Schema(title = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记") + @Schema(description = "评论时添加的状态:通过/不通过/重新提审/通过标准变更标记/强制通过标记/强制不通过标记/状态变更标记") private String status; - @Schema(title = "评论类型:用例评论/测试计划用例评论/评审用例评论", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "评论类型:用例评论/测试计划用例评论/评审用例评论", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_comment.type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{functional_case_comment.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "当前评审所属的测试计划ID或评审ID") + @Schema(description = "当前评审所属的测试计划ID或评审ID") private String belongId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseCustomField.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseCustomField.java index 4eeae4c817..f538bbf18b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseCustomField.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseCustomField.java @@ -8,20 +8,20 @@ import lombok.Data; @Data public class FunctionalCaseCustomField implements Serializable { - @Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_custom_field.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_custom_field.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_custom_field.field_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_custom_field.field_id.length_range}", groups = {Created.class, Updated.class}) private String fieldId; - @Schema(title = "字段值") + @Schema(description = "字段值") private String value; - @Schema(title = "") + @Schema(description = "") private String textValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollower.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollower.java index aa063c4019..8d50e19008 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class FunctionalCaseFollower implements Serializable { - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_follower.case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_follower.case_id.length_range}", groups = {Created.class, Updated.class}) private String caseId; - @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java index 9c708f330f..a912b1d9a0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseModule.java @@ -8,39 +8,39 @@ import lombok.Data; @Data public class FunctionalCaseModule implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_module.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_module.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_module.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 100, message = "{functional_case_module.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "父节点ID") + @Schema(description = "父节点ID") private String parentId; - @Schema(title = "节点的层级", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "节点的层级", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case_module.level.not_blank}", groups = {Created.class}) private Integer level; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "同一节点下的顺序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "同一节点下的顺序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{functional_case_module.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java index 1fb192f6ff..961b850d99 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseRelationshipEdge.java @@ -8,33 +8,33 @@ import lombok.Data; @Data public class FunctionalCaseRelationshipEdge implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_relationship_edge.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_relationship_edge.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_relationship_edge.source_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_relationship_edge.source_id.length_range}", groups = {Created.class, Updated.class}) private String sourceId; - @Schema(title = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_relationship_edge.target_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_relationship_edge.target_id.length_range}", groups = {Created.class, Updated.class}) private String targetId; - @Schema(title = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_relationship_edge.graph_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_relationship_edge.graph_id.length_range}", groups = {Created.class, Updated.class}) private String graphId; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java index 4e9a7be189..83f5abf96f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalCaseTest.java @@ -8,30 +8,30 @@ import lombok.Data; @Data public class FunctionalCaseTest implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_test.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_test.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_test.functional_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_test.functional_case_id.length_range}", groups = {Created.class, Updated.class}) private String functionalCaseId; - @Schema(title = "其他类型用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "其他类型用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_test.test_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case_test.test_id.length_range}", groups = {Created.class, Updated.class}) private String testId; - @Schema(title = "用例类型:接口用例/场景用例/性能用例/UI用例", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用例类型:接口用例/场景用例/性能用例/UI用例", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_test.test_type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{functional_case_test.test_type.length_range}", groups = {Created.class, Updated.class}) private String testType; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalMinderExtraNode.java b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalMinderExtraNode.java index ef46bfd294..d62479e25b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalMinderExtraNode.java +++ b/backend/framework/domain/src/main/java/io/metersphere/functional/domain/FunctionalMinderExtraNode.java @@ -8,22 +8,22 @@ import lombok.Data; @Data public class FunctionalMinderExtraNode implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_minder_extra_node.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_minder_extra_node.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "父节点的ID,即模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "父节点的ID,即模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_minder_extra_node.parent_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_minder_extra_node.parent_id.length_range}", groups = {Created.class, Updated.class}) private String parentId; - @Schema(title = "项目ID,可扩展为其他资源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID,可扩展为其他资源ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_minder_extra_node.group_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_minder_extra_node.group_id.length_range}", groups = {Created.class, Updated.class}) private String groupId; - @Schema(title = "存储脑图节点额外信息", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "存储脑图节点额外信息", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_minder_extra_node.node_data.not_blank}", groups = {Created.class}) @Size(min = 1, max = 2147483647, message = "{functional_minder_extra_node.node_data.length_range}", groups = {Created.class, Updated.class}) private String nodeData; 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 59d24a4d73..0a8c7994de 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 @@ -8,62 +8,62 @@ import lombok.Data; @Data public class LoadTest implements Serializable { - @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "状态为Error时表示错误信息") + @Schema(description = "状态为Error时表示错误信息") private String description; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "状态: Starting, Running, Completed, Error, etc.", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "状态: Starting, Running, Completed, Error, etc.", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "测试数字ID,例如: 100001", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test.num.not_blank}", groups = {Created.class}) private Integer num; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "基版本数据ID,首条测试和测试ID相同", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test.latest.not_blank}", groups = {Created.class}) private Boolean latest; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java index 1d82b5cc79..cfd9c97715 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java @@ -8,30 +8,30 @@ import lombok.Data; @Data public class LoadTestApi implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_api.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_api.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "接口场景或用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口场景或用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "性能测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "环境ID") + @Schema(description = "环境ID") private String envId; - @Schema(title = "类型: SCENARIO, CASE", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "类型: SCENARIO, CASE", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "关联版本") + @Schema(description = "关联版本") private Integer apiVersion; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java index 224e320699..1093f75953 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java @@ -8,18 +8,18 @@ import lombok.Data; @Data public class LoadTestBlob implements Serializable { - @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "压力配置") + @Schema(description = "压力配置") private byte[] loadConfiguration; - @Schema(title = "高级配置") + @Schema(description = "高级配置") private byte[] advancedConfiguration; - @Schema(title = "环境信息 (JSON format)") + @Schema(description = "环境信息 (JSON format)") private byte[] envInfo; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java index 96853d349b..fcd261b82a 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java @@ -8,17 +8,17 @@ import lombok.Data; @Data public class LoadTestFile implements Serializable { - @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test_file.sort.not_blank}", groups = {Created.class}) private Integer sort; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java index 742407a7ed..3055fc6e1f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class LoadTestFollower implements Serializable { - @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_follower.test_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{load_test_follower.test_id.length_range}", groups = {Created.class, Updated.class}) private String testId; - @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{load_test_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; 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 8b518af386..9714d78f81 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 @@ -8,82 +8,82 @@ import lombok.Data; @Data public class LoadTestReport implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_report.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "报告描述") + @Schema(description = "报告描述") private String description; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "状态: Starting, Running, Error,Completed etc.", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "状态: Starting, Running, Error,Completed etc.", requiredMode = Schema.RequiredMode.REQUIRED) @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") + @Schema(description = "创建人(执行人)ID") private String createUser; - @Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "最大并发数") + @Schema(description = "最大并发数") private String maxUsers; - @Schema(title = "平均响应时间") + @Schema(description = "平均响应时间") private String avgResponseTime; - @Schema(title = "每秒事务数") + @Schema(description = "每秒事务数") private String tps; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "测试开始时间") + @Schema(description = "测试开始时间") private Long testStartTime; - @Schema(title = "测试结束时间") + @Schema(description = "测试结束时间") private Long testEndTime; - @Schema(title = "执行时长") + @Schema(description = "执行时长") private Long testDuration; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "关联的测试计划报告ID(可以为空)") + @Schema(description = "关联的测试计划报告ID(可以为空)") private String relevanceTestPlanReportId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java index d4cbebaafe..3c4ec24758 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java @@ -8,21 +8,21 @@ import lombok.Data; @Data public class LoadTestReportBlob implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_report_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_report_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "压力配置") + @Schema(description = "压力配置") private byte[] loadConfiguration; - @Schema(title = "JMX内容") + @Schema(description = "JMX内容") private byte[] jmxContent; - @Schema(title = "高级配置") + @Schema(description = "高级配置") private byte[] advancedConfiguration; - @Schema(title = "环境信息 (JSON format)") + @Schema(description = "环境信息 (JSON format)") private byte[] envInfo; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java index ca619a58f3..1a1519609a 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java @@ -8,17 +8,17 @@ import lombok.Data; @Data public class LoadTestReportFile implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test_report_file.sort.not_blank}", groups = {Created.class}) private Integer sort; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java index 79ffdbcad9..c2706ca6e1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java @@ -8,25 +8,25 @@ import lombok.Data; @Data public class LoadTestReportLog implements Serializable { - @Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_report_log.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源节点ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "日志内容分段") + @Schema(description = "日志内容分段") private Long part; - @Schema(title = "jmeter.log 内容") + @Schema(description = "jmeter.log 内容") private byte[] content; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java index 94b2d2f22c..5b0e5ceb04 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java @@ -8,20 +8,20 @@ import lombok.Data; @Data public class LoadTestReportResult implements Serializable { - @Schema(title = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{load_test_report_result.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "报告项目key") + @Schema(description = "报告项目key") private String reportKey; - @Schema(title = "报告项目内容") + @Schema(description = "报告项目内容") private byte[] reportValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java index ef7a3cda1c..acca0c4627 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java @@ -8,21 +8,21 @@ import lombok.Data; @Data public class LoadTestReportResultPart implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test_report_result_part.resource_index.not_blank}", groups = {Created.class}) private Integer resourceIndex; - @Schema(title = "报告项目内容") + @Schema(description = "报告项目内容") private byte[] reportValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java index 19897cacad..81e3cbab75 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java +++ b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java @@ -8,25 +8,25 @@ import lombok.Data; @Data public class LoadTestReportResultRealtime implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test_report_result_realtime.resource_index.not_blank}", groups = {Created.class}) private Integer resourceIndex; - @Schema(title = "报告项目内容排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告项目内容排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{load_test_report_result_realtime.sort.not_blank}", groups = {Created.class}) private Integer sort; - @Schema(title = "报告项目内容") + @Schema(description = "报告项目内容") private byte[] reportValue; private static final long serialVersionUID = 1L; 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 589ab79d84..8c2d36df0b 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 @@ -11,64 +11,64 @@ import java.io.Serializable; @Data public class TestPlan implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "测试计划父ID;测试计划要改为树结构。最上层的为root,其余则是父节点ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划父ID;测试计划要改为树结构。最上层的为root,其余则是父节点ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.parent_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan.parent_id.length_range}", groups = {Created.class, Updated.class}) private String parentId; - @Schema(title = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{test_plan.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "测试计划状态;进行中/未开始/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划状态;进行中/未开始/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{test_plan.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.stage.not_blank}", groups = {Created.class}) @Size(min = 1, max = 30, message = "{test_plan.stage.length_range}", groups = {Created.class, Updated.class}) private String stage; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "计划开始时间") + @Schema(description = "计划开始时间") private Long plannedStartTime; - @Schema(title = "计划结束时间") + @Schema(description = "计划结束时间") private Long plannedEndTime; - @Schema(title = "实际开始时间") + @Schema(description = "实际开始时间") private Long actualStartTime; - @Schema(title = "实际结束时间") + @Schema(description = "实际结束时间") private Long actualEndTime; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; 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 8ec8ca00a3..9f06126775 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 @@ -12,38 +12,38 @@ import java.io.Serializable; @Data public class TestPlanApiCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_api_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_api_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_api_case.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_api_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_api_case.api_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_api_case.api_case_id.length_range}", groups = {Created.class, Updated.class}) private String apiCaseId; - @Schema(title = "环境类型") + @Schema(description = "环境类型") private String environmentType; - @Schema(title = "环境组ID") + @Schema(description = "环境组ID") private String environmentGroupId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_api_case.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "所属环境") + @Schema(description = "所属环境") private String environment; private static final long serialVersionUID = 1L; 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 db81ffd6d9..84098bace1 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 @@ -12,36 +12,36 @@ import java.io.Serializable; @Data public class TestPlanApiScenario implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_api_scenario.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_api_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_api_scenario.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_api_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "场景ID") + @Schema(description = "场景ID") private String apiScenarioId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_api_scenario.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "环境类型") + @Schema(description = "环境类型") private String environmentType; - @Schema(title = "环境组ID") + @Schema(description = "环境组ID") private String environmentGroupId; - @Schema(title = "所属环境") + @Schema(description = "所属环境") private String environment; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java index 25bf408f8c..312a4d1bad 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java @@ -12,24 +12,24 @@ import java.io.Serializable; @Data public class TestPlanConfig implements Serializable { - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_config.test_plan_id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_config.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_config.automatic_status_update.not_blank}", groups = {Created.class}) private Boolean automaticStatusUpdate; - @Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_config.repeat_case.not_blank}", groups = {Created.class}) private Boolean repeatCase; - @Schema(title = "测试计划通过阈值;0-100", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划通过阈值;0-100", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_config.pass_threshold.not_blank}", groups = {Created.class}) private Integer passThreshold; - @Schema(title = "运行模式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "运行模式", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_config.run_mode_config.not_blank}", groups = {Created.class}) @Size(min = 1, max = 65535, message = "{test_plan_config.run_mode_config.length_range}", groups = {Created.class, Updated.class}) private String runModeConfig; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java index bbbf104b6b..b9ac44cd65 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java @@ -11,48 +11,48 @@ import java.io.Serializable; @Data public class TestPlanExecuteRecord implements Serializable { - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execute_record.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_execute_record.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execute_record.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_execute_record.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execute_record.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{test_plan_execute_record.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "执行状态;RUNNING/SUCCESS/ERROR/UNEXECUTE", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行状态;RUNNING/SUCCESS/ERROR/UNEXECUTE", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execute_record.status.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_execute_record.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Schema(title = "触发类型;触发类型:SINGLE/BATCH/SCHEDULE/JENKINS") + @Schema(description = "触发类型;触发类型:SINGLE/BATCH/SCHEDULE/JENKINS") private String triggerMode; - @Schema(title = "创建人(执行人/触发人)") + @Schema(description = "创建人(执行人/触发人)") private String createUser; - @Schema(title = "创建时间(开始时间)") + @Schema(description = "创建时间(开始时间)") private Long createTime; - @Schema(title = "结束时间") + @Schema(description = "结束时间") private Long endTime; - @Schema(title = "用例总数量") + @Schema(description = "用例总数量") private Integer caseCount; - @Schema(title = "执行率") + @Schema(description = "执行率") private Double executeRate; - @Schema(title = "通过率") + @Schema(description = "通过率") private Double passRate; - @Schema(title = "执行配置") + @Schema(description = "执行配置") private String runConfig; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java index 7bdec53df4..0fe574fba7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java @@ -11,35 +11,35 @@ import java.io.Serializable; @Data public class TestPlanExecutionQueue implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execution_queue.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_execution_queue.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "执行批次;随机生成UUID作为执行批次", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行批次;随机生成UUID作为执行批次", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execution_queue.execute_batch.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_execution_queue.execute_batch.length_range}", groups = {Created.class, Updated.class}) private String executeBatch; - @Schema(title = "testPlanId", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "testPlanId", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execution_queue.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_execution_queue.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execution_queue.test_plan_execute_record_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_execution_queue.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanExecuteRecordId; - @Schema(title = "执行模式;并行/串行", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行模式;并行/串行", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execution_queue.run_mode.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{test_plan_execution_queue.run_mode.length_range}", groups = {Created.class, Updated.class}) private String runMode; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "排序") + @Schema(description = "排序") private Integer pos; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollower.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollower.java index c208293235..e753867db1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollower.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class TestPlanFollower implements Serializable { - @Schema(title = "测试计划ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_follower.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_follower.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "用户ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; 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 db1f36a2f9..ef45b79f33 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 @@ -12,28 +12,28 @@ import java.io.Serializable; @Data public class TestPlanFunctionCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case.function_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case.function_case_id.length_range}", groups = {Created.class, Updated.class}) private String functionCaseId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_function_case.pos.not_blank}", groups = {Created.class}) private Long pos; 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 2a17a3a351..db7742b70d 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 @@ -11,36 +11,36 @@ import java.io.Serializable; @Data public class TestPlanFunctionCaseResult implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case_result.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case_result.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划功能用例关联表ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划功能用例关联表ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case_result.test_plan_function_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case_result.test_plan_function_case_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanFunctionCaseId; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case_result.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case_result.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case_result.result.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case_result.result.length_range}", groups = {Created.class, Updated.class}) private String result; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "评论") + @Schema(description = "评论") private String comment; - @Schema(title = "所属版本", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "所属版本", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_function_case_result.version.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_function_case_result.version.length_range}", groups = {Created.class, Updated.class}) private String version; 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 75ed3a9e3a..a2f9c73489 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 @@ -12,38 +12,38 @@ import java.io.Serializable; @Data public class TestPlanLoadCase implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_load_case.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_load_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_load_case.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_load_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_load_case.load_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_load_case.load_case_id.length_range}", groups = {Created.class, Updated.class}) private String loadCaseId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "所用测试资源池ID") + @Schema(description = "所用测试资源池ID") private String testResourcePoolId; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_load_case.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "压力配置") + @Schema(description = "压力配置") private String loadConfiguration; - @Schema(title = "高级配置") + @Schema(description = "高级配置") private String advancedConfiguration; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java index 7cceb8cbfa..93a370529d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class TestPlanPrincipal implements Serializable { - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_principal.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_principal.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java index b5511303c7..44fcdd5025 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java @@ -11,22 +11,22 @@ import java.io.Serializable; @Data public class TestPlanRecordApiCaseInfo implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_case_info.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_case_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanExecuteRecordId; - @Schema(title = "测试计划接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_case_info.test_plan_api_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.test_plan_api_case_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanApiCaseId; - @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_case_info.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java index e73ae137c0..8bba467456 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java @@ -11,22 +11,22 @@ import java.io.Serializable; @Data public class TestPlanRecordApiScenarioInfo implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_scenario_info.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_scenario_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanExecuteRecordId; - @Schema(title = "测试计划接口场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划接口场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_scenario_info.test_plan_api_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.test_plan_api_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanApiScenarioId; - @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_api_scenario_info.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java index 6f3811beae..f00677fe07 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java @@ -11,22 +11,22 @@ import java.io.Serializable; @Data public class TestPlanRecordLoadCaseInfo implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_load_case_info.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_load_case_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanExecuteRecordId; - @Schema(title = "测试计划性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_load_case_info.test_plan_load_case_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.test_plan_load_case_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanLoadCaseId; - @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_load_case_info.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java index 91d518bfef..9d7cf895cb 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java @@ -11,22 +11,22 @@ import java.io.Serializable; @Data public class TestPlanRecordUiScenarioInfo implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_ui_scenario_info.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_ui_scenario_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanExecuteRecordId; - @Schema(title = "测试计划UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_ui_scenario_info.test_plan_ui_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.test_plan_ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanUiScenarioId; - @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_record_ui_scenario_info.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; 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 9769b4725f..c435334f3b 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 @@ -11,46 +11,46 @@ import java.io.Serializable; @Data public class TestPlanReport implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_report.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_report.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_report.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_report.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{test_plan_report.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "开始时间") + @Schema(description = "开始时间") private Long startTime; - @Schema(title = "结束时间") + @Schema(description = "结束时间") private Long endTime; - @Schema(title = "用例数量") + @Schema(description = "用例数量") private Long caseCount; - @Schema(title = "执行率") + @Schema(description = "执行率") private Double executeRate; - @Schema(title = "通过率") + @Schema(description = "通过率") private Double passRate; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java index 7056dfdbc7..976f0dcd09 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java @@ -11,20 +11,20 @@ import java.io.Serializable; @Data public class TestPlanReportContent implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_report_content.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_report_content.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_report_content.test_plan_report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_report_content.test_plan_report_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanReportId; - @Schema(title = "总结") + @Schema(description = "总结") private String summary; - @Schema(title = "报告内容") + @Schema(description = "报告内容") private byte[] content; private static final long serialVersionUID = 1L; 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 ef7afc256d..35bcc6250a 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 @@ -12,38 +12,38 @@ import java.io.Serializable; @Data public class TestPlanUiScenario implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_ui_scenario.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_ui_scenario.test_plan_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Schema(title = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_ui_scenario.ui_scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String uiScenarioId; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "排序,默认值5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "排序,默认值5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_plan_ui_scenario.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "环境类型") + @Schema(description = "环境类型") private String environmentType; - @Schema(title = "环境组ID") + @Schema(description = "环境组ID") private String environmentGroupId; - @Schema(title = "所属环境") + @Schema(description = "所属环境") private String environment; private static final long serialVersionUID = 1L; 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 49496ef6ef..379b562157 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 @@ -10,29 +10,29 @@ import lombok.Data; @Data public class ApiTemplate implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_template.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_template.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "是否是内置模板") + @Schema(description = "是否是内置模板") private Boolean internal; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplate.java index e67306a5b8..c6d07ed1cd 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplate.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplate.java @@ -10,29 +10,29 @@ import lombok.Data; @Data public class BugTemplate implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_template.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{bug_template.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_template.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{bug_template.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "是否是内置模板") + @Schema(description = "是否是内置模板") private Boolean internal; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_template.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{bug_template.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplateExtend.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplateExtend.java index 033a55271d..db434d967c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplateExtend.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/BugTemplateExtend.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class BugTemplateExtend implements Serializable { - @Schema(title = "缺陷模板ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "缺陷模板ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_template_extend.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{bug_template_extend.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "缺陷标题模板") + @Schema(description = "缺陷标题模板") private String title; - @Schema(title = "缺陷内容模板") + @Schema(description = "缺陷内容模板") private String content; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java index 5f9829ba19..74cd5e28c1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomField.java @@ -10,51 +10,51 @@ import lombok.Data; @Data public class CustomField implements Serializable { - @Schema(title = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{custom_field.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{custom_field.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "自定义字段名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义字段名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "使用场景", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "自定义字段类型", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "自定义字段备注") + @Schema(description = "自定义字段备注") private String remark; - @Schema(title = "是否是系统字段") + @Schema(description = "是否是系统字段") private Boolean system; - @Schema(title = "是否是全局字段") + @Schema(description = "是否是全局字段") private Boolean global; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "项目ID") + @Schema(description = "项目ID") private String projectId; - @Schema(title = "是否关联第三方") + @Schema(description = "是否关联第三方") private Boolean thirdPart; - @Schema(title = "自定义字段选项") + @Schema(description = "自定义字段选项") private String options; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldTemplate.java index ade5a43027..d828f1cf56 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldTemplate.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFieldTemplate.java @@ -10,39 +10,39 @@ import lombok.Data; @Data public class CustomFieldTemplate implements Serializable { - @Schema(title = "自定义模版ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义模版ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{custom_field_template.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{custom_field_template.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义字段ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "模版ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "使用场景", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "是否必填") + @Schema(description = "是否必填") private Boolean required; - @Schema(title = "排序字段") + @Schema(description = "排序字段") private Integer pos; - @Schema(title = "自定义数据") + @Schema(description = "自定义数据") private String customData; - @Schema(title = "自定义表头") + @Schema(description = "自定义表头") private String key; - @Schema(title = "默认值") + @Schema(description = "默认值") private byte[] defaultValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunction.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunction.java index 94aec77667..69681481ef 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunction.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunction.java @@ -10,20 +10,20 @@ import lombok.Data; @Data public class CustomFunction implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{custom_function.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{custom_function.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "函数名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "函数名", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "函数描述") + @Schema(description = "函数描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunctionBlob.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunctionBlob.java index b941199f63..705dbcd1a7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunctionBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/CustomFunctionBlob.java @@ -10,18 +10,18 @@ import lombok.Data; @Data public class CustomFunctionBlob implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{custom_function_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{custom_function_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "参数列表") + @Schema(description = "参数列表") private byte[] params; - @Schema(title = "函数体") + @Schema(description = "函数体") private byte[] script; - @Schema(title = "执行结果") + @Schema(description = "执行结果") private byte[] result; private static final long serialVersionUID = 1L; 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 9aea125767..6ebbd1038c 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 @@ -10,39 +10,39 @@ import lombok.Data; @Data public class FakeError implements Serializable { - @Schema(title = "误报ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "误报ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{fake_error.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{fake_error.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "错误码", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "错误码", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "匹配类型", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "状态") + @Schema(description = "状态") private Boolean status; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeErrorBlob.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeErrorBlob.java index e6432757d7..c1ee558f72 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeErrorBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FakeErrorBlob.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class FakeErrorBlob implements Serializable { - @Schema(title = "Test ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "Test ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{fake_error_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{fake_error_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "内容") + @Schema(description = "内容") private byte[] content; - @Schema(title = "报告内容") + @Schema(description = "报告内容") private byte[] description; private static final long serialVersionUID = 1L; 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 3bb6d7a2cf..7cdb43f685 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 @@ -10,65 +10,65 @@ import lombok.Data; @Data public class FileMetadata implements Serializable { - @Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{file_metadata.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{file_metadata.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "文件名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件名", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "文件类型") + @Schema(description = "文件类型") private String type; - @Schema(title = "文件大小", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件大小", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{file_metadata.size.not_blank}", groups = {Created.class}) private Long size; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "文件存储方式") + @Schema(description = "文件存储方式") private String storage; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "文件所属模块") + @Schema(description = "文件所属模块") private String moduleId; - @Schema(title = "是否加载jar(开启后用于接口测试执行时使用)") + @Schema(description = "是否加载jar(开启后用于接口测试执行时使用)") private Boolean loadJar; - @Schema(title = "文件存储路径") + @Schema(description = "文件存储路径") private String path; - @Schema(title = "资源作用范围,主要兼容2.1版本前的历史数据,后续版本不再产生数据") + @Schema(description = "资源作用范围,主要兼容2.1版本前的历史数据,后续版本不再产生数据") private String resourceType; - @Schema(title = "是否是最新版") + @Schema(description = "是否是最新版") private Boolean latest; - @Schema(title = "同版本数据关联的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "同版本数据关联的ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadataBlob.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadataBlob.java index 856d3bc4ae..83621e2268 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadataBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileMetadataBlob.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class FileMetadataBlob implements Serializable { - @Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{file_metadata_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{file_metadata_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "储存库") + @Schema(description = "储存库") private byte[] gitInfo; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModule.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModule.java index 7c624d2684..1175969e8e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModule.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModule.java @@ -10,40 +10,40 @@ import lombok.Data; @Data public class FileModule implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{file_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{file_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "父级ID") + @Schema(description = "父级ID") private String parentId; - @Schema(title = "层数") + @Schema(description = "层数") private Integer level; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "排序用的标识") + @Schema(description = "排序用的标识") private Double pos; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "模块类型: module/repository") + @Schema(description = "模块类型: module/repository") private String moduleType; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModuleBlob.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModuleBlob.java index 1306632321..a9dc6072b7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModuleBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FileModuleBlob.java @@ -10,21 +10,21 @@ import lombok.Data; @Data public class FileModuleBlob implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{file_module_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{file_module_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "存储库路径") + @Schema(description = "存储库路径") private String repositoryPath; - @Schema(title = "存储库Token") + @Schema(description = "存储库Token") private String repositoryUserName; - @Schema(title = "存储库Token") + @Schema(description = "存储库Token") private String repositoryToken; - @Schema(title = "存储库描述") + @Schema(description = "存储库描述") private byte[] repositoryDesc; private static final long serialVersionUID = 1L; 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 0473b9fc13..a5a81a2228 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 @@ -10,29 +10,29 @@ import lombok.Data; @Data public class FunctionalCaseTemplate implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_template.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_template.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "是否是内置模板") + @Schema(description = "是否是内置模板") private Boolean internal; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplateExtend.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplateExtend.java index e31c494ec4..521d5a5f63 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplateExtend.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/FunctionalCaseTemplateExtend.java @@ -10,30 +10,30 @@ import lombok.Data; @Data public class FunctionalCaseTemplateExtend implements Serializable { - @Schema(title = "模板ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模板ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case_template_extend.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{functional_case_template_extend.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用例名称模板") + @Schema(description = "用例名称模板") private String caseName; - @Schema(title = "编辑模式模板:步骤模式/文本模式") + @Schema(description = "编辑模式模板:步骤模式/文本模式") private String stepModel; - @Schema(title = "前置条件模板") + @Schema(description = "前置条件模板") private String prerequisite; - @Schema(title = "步骤描述模板") + @Schema(description = "步骤描述模板") private String stepDescription; - @Schema(title = "预期结果模板") + @Schema(description = "预期结果模板") private String expectedResult; - @Schema(title = "实际结果模板") + @Schema(description = "实际结果模板") private String actualResult; - @Schema(title = "用例步骤") + @Schema(description = "用例步骤") private String steps; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/Project.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/Project.java index 2d2d3cb277..3f3b58406b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/Project.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/Project.java @@ -10,49 +10,49 @@ import lombok.Data; @Data public class Project implements Serializable { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{project.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目编号") + @Schema(description = "项目编号") private Long num; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{project.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "项目描述") + @Schema(description = "项目描述") private String description; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "是否删除") + @Schema(description = "是否删除") private Boolean deleted; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectApplication.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectApplication.java index eddbcca4ea..4b5639a3a5 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectApplication.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectApplication.java @@ -10,17 +10,17 @@ import lombok.Data; @Data public class ProjectApplication implements Serializable { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "配置项", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "配置值") + @Schema(description = "配置值") private String typeValue; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectExtend.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectExtend.java index 8d8e915221..93d786be3d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectExtend.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/ProjectExtend.java @@ -10,42 +10,42 @@ import lombok.Data; @Data public class ProjectExtend implements Serializable { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project_extend.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{project_extend.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "") + @Schema(description = "") private String tapdId; - @Schema(title = "") + @Schema(description = "") private String jiraKey; - @Schema(title = "") + @Schema(description = "") private String zentaoId; - @Schema(title = "") + @Schema(description = "") private String azureDevopsId; - @Schema(title = "用例模版ID") + @Schema(description = "用例模版ID") private String caseTemplateId; - @Schema(title = "azure 过滤需求的 parent workItem ID") + @Schema(description = "azure 过滤需求的 parent workItem ID") private String azureFilterId; - @Schema(title = "项目使用哪个平台的模板") + @Schema(description = "项目使用哪个平台的模板") private String platform; - @Schema(title = "是否使用第三方平台缺陷模板") + @Schema(description = "是否使用第三方平台缺陷模板") private Boolean thirdPartTemplate; - @Schema(title = "是否开启版本管理") + @Schema(description = "是否开启版本管理") private Boolean versionEnable; - @Schema(title = "") + @Schema(description = "") private String issueConfig; - @Schema(title = "") + @Schema(description = "") private String apiTemplateId; private static final long serialVersionUID = 1L; 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 b748255d88..d1df28c932 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 @@ -10,44 +10,44 @@ import lombok.Data; @Data public class ProjectVersion implements Serializable { - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project_version.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{project_version.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "状态") + @Schema(description = "状态") private String status; - @Schema(title = "是否是最新版", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否是最新版", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{project_version.latest.not_blank}", groups = {Created.class}) private Boolean latest; - @Schema(title = "发布时间") + @Schema(description = "发布时间") private Long publishTime; - @Schema(title = "开始时间") + @Schema(description = "开始时间") private Long startTime; - @Schema(title = "结束时间") + @Schema(description = "结束时间") private Long endTime; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") 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 e04da3429b..b6adf863df 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 @@ -8,52 +8,52 @@ import lombok.Data; @Data public class Environment implements Serializable { - @Schema(title = "环境ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "环境ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{environment.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{environment.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "环境名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "环境名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "协议") + @Schema(description = "协议") private String protocol; - @Schema(title = "") + @Schema(description = "") private String socket; - @Schema(title = "域名/IP") + @Schema(description = "域名/IP") private String domain; - @Schema(title = "端口") + @Schema(description = "端口") private Integer port; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "全局变量") + @Schema(description = "全局变量") private String variables; - @Schema(title = "请求头") + @Schema(description = "请求头") private String headers; - @Schema(title = "Config Data (JSON format)") + @Schema(description = "Config Data (JSON format)") private String config; - @Schema(title = "hosts") + @Schema(description = "hosts") private String hosts; private static final long serialVersionUID = 1L; 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 7772de8fbb..1f635cf59a 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 @@ -8,31 +8,31 @@ import lombok.Data; @Data public class EnvironmentGroup implements Serializable { - @Schema(title = "环境组id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "环境组id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{environment_group.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{environment_group.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "所属组织", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{environment_group.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{environment_group.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "环境组描述") + @Schema(description = "环境组描述") private String description; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroupProject.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroupProject.java index c6ce757057..32b3963eba 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroupProject.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/EnvironmentGroupProject.java @@ -8,18 +8,18 @@ import lombok.Data; @Data public class EnvironmentGroupProject implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{environment_group_project.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{environment_group_project.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "环境组id") + @Schema(description = "环境组id") private String environmentGroupId; - @Schema(title = "环境ID") + @Schema(description = "环境ID") private String environmentId; - @Schema(title = "项目id") + @Schema(description = "项目id") private String projectId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueue.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueue.java index f41694f4d4..c15b28fa63 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueue.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueue.java @@ -8,35 +8,35 @@ import lombok.Data; @Data public class ExecutionQueue implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{execution_queue.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{execution_queue.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "集合报告/测试计划报告", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "集合报告/测试计划报告", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告类型/计划报告/单独报告", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "执行模式/scenario/api/test_paln_api/test_pan_scenario", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "执行资源池", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "") + @Schema(description = "") private Boolean failure; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueueDetail.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueueDetail.java index 5dc5812d94..e67c42943b 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueueDetail.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/ExecutionQueueDetail.java @@ -8,39 +8,39 @@ import lombok.Data; @Data public class ExecutionQueueDetail implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{execution_queue_detail.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{execution_queue_detail.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "队列id") + @Schema(description = "队列id") private String queueId; - @Schema(title = "排序") + @Schema(description = "排序") private Integer sort; - @Schema(title = "报告id") + @Schema(description = "报告id") private String reportId; - @Schema(title = "资源id") + @Schema(description = "资源id") private String testId; - @Schema(title = "资源类型") + @Schema(description = "资源类型") private String type; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "是否开启失败重试") + @Schema(description = "是否开启失败重试") private Boolean retryEnable; - @Schema(title = "失败重试次数") + @Schema(description = "失败重试次数") private Long retryNumber; - @Schema(title = "项目ID集合") + @Schema(description = "项目ID集合") private String projectIds; - @Schema(title = "环境") + @Schema(description = "环境") private String evnMap; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLog.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLog.java index d78acd3d77..2125b41995 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLog.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLog.java @@ -10,47 +10,47 @@ import lombok.Data; @Data public class OperationLog implements Serializable { - @Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{operation_log.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{operation_log.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "组织id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{operation_log.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "操作时间") + @Schema(description = "操作时间") private Long createTime; - @Schema(title = "操作人") + @Schema(description = "操作人") private String createUser; - @Schema(title = "资源id") + @Schema(description = "资源id") private String sourceId; - @Schema(title = "操作方法", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "操作方法", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log.method.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{operation_log.method.length_range}", groups = {Created.class, Updated.class}) private String method; - @Schema(title = "操作类型/add/update/delete", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "操作类型/add/update/delete", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log.type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 20, message = "{operation_log.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "操作模块/api/case/scenario/ui") + @Schema(description = "操作模块/api/case/scenario/ui") private String module; - @Schema(title = "操作详情") + @Schema(description = "操作详情") private String content; - @Schema(title = "操作路径") + @Schema(description = "操作路径") private String path; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLogBlob.java b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLogBlob.java index a7e57b2033..c8f60e8db7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLogBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/sdk/domain/OperationLogBlob.java @@ -11,15 +11,15 @@ import java.io.Serializable; @Data public class OperationLogBlob implements Serializable { - @Schema(title = "主键", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{operation_log_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{operation_log_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "变更前内容") + @Schema(description = "变更前内容") private byte[] originalValue; - @Schema(title = "变更后内容") + @Schema(description = "变更后内容") private byte[] modifiedValue; private static final long serialVersionUID = 1L; 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 3bc908311d..3e3d1afb43 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 @@ -8,30 +8,30 @@ import lombok.Data; @Data public class RelationshipEdge implements Serializable { - @Schema(title = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "源节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "目标节点的ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "边的分类", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "所属关系图的ID", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "") + @Schema(description = "") private Long createTime; private static final long serialVersionUID = 1L; 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 d9126ce696..3c26f1bf52 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 @@ -8,27 +8,27 @@ import lombok.Data; @Data public class ShareInfo implements Serializable { - @Schema(title = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{share_info.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{share_info.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "分享类型single batch") + @Schema(description = "分享类型single batch") private String shareType; - @Schema(title = "语言") + @Schema(description = "语言") private String lang; - @Schema(title = "分享扩展数据") + @Schema(description = "分享扩展数据") private byte[] customData; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/AuthSource.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/AuthSource.java index 5caec1dad8..0157b4f6ef 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/AuthSource.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/AuthSource.java @@ -10,30 +10,30 @@ import lombok.Data; @Data public class AuthSource implements Serializable { - @Schema(title = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{auth_source.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{auth_source.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "名称") + @Schema(description = "名称") private String name; - @Schema(title = "类型") + @Schema(description = "类型") private String type; - @Schema(title = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{auth_source.configuration.not_blank}", groups = {Created.class}) private byte[] configuration; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/License.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/License.java index bd35280f03..3136f686f9 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/License.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/License.java @@ -10,18 +10,18 @@ import lombok.Data; @Data public class License implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{license.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{license.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "Create timestamp") + @Schema(description = "Create timestamp") private Long createTime; - @Schema(title = "Update timestamp") + @Schema(description = "Update timestamp") private Long updateTime; - @Schema(title = "license_code") + @Schema(description = "license_code") private String licenseCode; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTask.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTask.java index 409b9df99c..1d3ce60a8c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTask.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTask.java @@ -10,41 +10,41 @@ import lombok.Data; @Data public class MessageTask implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{message_task.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "通知事件类型", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "接收人id", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "webhook地址") + @Schema(description = "webhook地址") private String webhook; - @Schema(title = "具体测试的ID") + @Schema(description = "具体测试的ID") private String testId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTaskBlob.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTaskBlob.java index 14266d495d..e374847ca9 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTaskBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/MessageTaskBlob.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class MessageTaskBlob implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{message_task_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "消息模版") + @Schema(description = "消息模版") private String template; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Notification.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Notification.java index 41c1f8e3ea..83e80dda90 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Notification.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Notification.java @@ -10,54 +10,54 @@ import lombok.Data; @Data public class Notification implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{notification.id.not_blank}", groups = {Updated.class}) private Long id; - @Schema(title = "通知类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "通知类型", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "接收人", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "操作人", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "操作人", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "操作", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源类型", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "资源名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/NoviceStatistics.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/NoviceStatistics.java index a2b782bc09..8f8f9063b9 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/NoviceStatistics.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/NoviceStatistics.java @@ -10,27 +10,27 @@ import lombok.Data; @Data public class NoviceStatistics implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{novice_statistics.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{novice_statistics.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用户id") + @Schema(description = "用户id") private String userId; - @Schema(title = "新手引导完成的步骤") + @Schema(description = "新手引导完成的步骤") private Boolean guideStep; - @Schema(title = "新手引导的次数") + @Schema(description = "新手引导的次数") private Integer guideNum; - @Schema(title = "") + @Schema(description = "") private Long createTime; - @Schema(title = "") + @Schema(description = "") private Long updateTime; - @Schema(title = "data option (JSON format)") + @Schema(description = "data option (JSON format)") private byte[] dataOption; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Organization.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Organization.java index f28418a17d..7649fd2464 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Organization.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Organization.java @@ -10,44 +10,44 @@ import lombok.Data; @Data public class Organization implements Serializable { - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{organization.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "组织编号") + @Schema(description = "组织编号") private Long num; - @Schema(title = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 100, message = "{organization.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "是否删除") + @Schema(description = "是否删除") private Boolean deleted; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Plugin.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Plugin.java index 3a5d9f81e8..a6b0068cf0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/Plugin.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/Plugin.java @@ -10,48 +10,48 @@ import lombok.Data; @Data public class Plugin implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{plugin.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "插件名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{plugin.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "插件ID(名称加版本号)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件ID(名称加版本号)", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "文件名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "文件名", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin.file_name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 300, message = "{plugin.file_name.length_range}", groups = {Created.class, Updated.class}) private String fileName; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "是否启用插件") + @Schema(description = "是否启用插件") private Boolean enable; - @Schema(title = "是否是全局插件") + @Schema(description = "是否是全局插件") private Boolean global; - @Schema(title = "是否是企业版插件") + @Schema(description = "是否是企业版插件") private Boolean xpack; - @Schema(title = "插件描述") + @Schema(description = "插件描述") private String description; - @Schema(title = "插件使用场景PAI/PLATFORM", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件使用场景PAI/PLATFORM", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginOrganization.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginOrganization.java index 9a2eac776a..3a2c7d8864 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginOrganization.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginOrganization.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class PluginOrganization implements Serializable { - @Schema(title = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin_organization.plugin_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{plugin_organization.plugin_id.length_range}", groups = {Created.class, Updated.class}) private String pluginId; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin_organization.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{plugin_organization.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginScript.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginScript.java index 2641defa96..7924880f18 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginScript.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/PluginScript.java @@ -10,20 +10,20 @@ import lombok.Data; @Data public class PluginScript implements Serializable { - @Schema(title = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin_script.plugin_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{plugin_script.plugin_id.length_range}", groups = {Created.class, Updated.class}) private String pluginId; - @Schema(title = "插件中对应表单配置的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件中对应表单配置的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin_script.script_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{plugin_script.script_id.length_range}", groups = {Created.class, Updated.class}) private String scriptId; - @Schema(title = "插件中对应表单配置的名称") + @Schema(description = "插件中对应表单配置的名称") private String name; - @Schema(title = "脚本内容") + @Schema(description = "脚本内容") private byte[] script; private static final long serialVersionUID = 1L; 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 fafa40b81c..2aaccae04a 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 @@ -10,51 +10,51 @@ import lombok.Data; @Data public class Schedule implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{schedule.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{schedule.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "qrtz UUID") + @Schema(description = "qrtz UUID") private String key; - @Schema(title = "资源类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源类型", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "cron 表达式", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "cron 表达式", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "Schedule Job Class Name", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "是否开启") + @Schema(description = "是否开启") private Boolean enable; - @Schema(title = "资源ID,api_scenario ui_scenario load_test") + @Schema(description = "资源ID,api_scenario ui_scenario load_test") private String resourceId; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "项目ID") + @Schema(description = "项目ID") private String projectId; - @Schema(title = "名称") + @Schema(description = "名称") private String name; - @Schema(title = "配置") + @Schema(description = "配置") private String config; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/ServiceIntegration.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/ServiceIntegration.java index bb0abf4107..51d796c2dd 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/ServiceIntegration.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/ServiceIntegration.java @@ -10,25 +10,25 @@ import lombok.Data; @Data public class ServiceIntegration implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{service_integration.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.plugin_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{service_integration.plugin_id.length_range}", groups = {Created.class, Updated.class}) private String pluginId; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{service_integration.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "配置内容", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "配置内容", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{service_integration.configuration.not_blank}", groups = {Created.class}) private byte[] configuration; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/SystemParameter.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/SystemParameter.java index 65c76ac131..b87d518156 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/SystemParameter.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/SystemParameter.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class SystemParameter implements Serializable { - @Schema(title = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "参数值") + @Schema(description = "参数值") private String paramValue; - @Schema(title = "类型") + @Schema(description = "类型") private String type; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePool.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePool.java index 7de50715c8..87e8342524 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePool.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePool.java @@ -1,61 +1,64 @@ package io.metersphere.system.domain; -import io.metersphere.validation.groups.*; +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import lombok.Data; + import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; -import lombok.Data; @Data public class TestResourcePool implements Serializable { - @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_resource_pool.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "是否用于接口测试") + @Schema(description = "是否用于接口测试") private Boolean apiTest; - @Schema(title = "是否用于性能测试") + @Schema(description = "是否用于性能测试") private Boolean loadTest; - @Schema(title = "是否用于ui测试") + @Schema(description = "是否用于ui测试") private Boolean uiTest; - @Schema(title = "ms部署地址") + @Schema(description = "ms部署地址") private String serverUrl; - @Schema(title = "资源池应用类型(组织/全部)") + @Schema(description = "资源池应用类型(组织/全部)") private Boolean allOrg; - @Schema(title = "是否删除") + @Schema(description = "是否删除") private Boolean deleted; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolBlob.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolBlob.java index e3341b4434..00e99ee3f1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolBlob.java @@ -8,12 +8,12 @@ import lombok.Data; @Data public class TestResourcePoolBlob implements Serializable { - @Schema(title = "id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_resource_pool_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "资源节点配置") + @Schema(description = "资源节点配置") private byte[] configuration; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolOrganization.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolOrganization.java index 5eb10867d3..fe871a90be 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolOrganization.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/TestResourcePoolOrganization.java @@ -8,17 +8,17 @@ import lombok.Data; @Data public class TestResourcePoolOrganization implements Serializable { - @Schema(title = "测试资源池项目关系ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试资源池项目关系ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool_organization.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_resource_pool_organization.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool_organization.test_resource_pool_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_resource_pool_organization.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class}) private String testResourcePoolId; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool_organization.org_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{test_resource_pool_organization.org_id.length_range}", groups = {Created.class, Updated.class}) private String orgId; 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 18101eb407..e86ce38e8f 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 @@ -10,57 +10,57 @@ import lombok.Data; @Data public class User implements Serializable { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用户名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "用户邮箱", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "用户密码") + @Schema(description = "用户密码") private String password; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "语言") + @Schema(description = "语言") private String language; - @Schema(title = "当前组织ID") + @Schema(description = "当前组织ID") private String lastOrganizationId; - @Schema(title = "手机号") + @Schema(description = "手机号") private String phone; - @Schema(title = "来源:LOCAL OIDC CAS OAUTH2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "来源:LOCAL OIDC CAS OAUTH2", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "当前项目ID") + @Schema(description = "当前项目ID") private String lastProjectId; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "修改人") + @Schema(description = "修改人") private String updateUser; - @Schema(title = "是否删除") + @Schema(description = "是否删除") private Boolean deleted; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserExtend.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserExtend.java index 92618effb5..8a5528ab30 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserExtend.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserExtend.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class UserExtend implements Serializable { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_extend.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_extend.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "UI本地调试地址") + @Schema(description = "UI本地调试地址") private String seleniumServer; - @Schema(title = "其他平台对接信息") + @Schema(description = "其他平台对接信息") private byte[] platformInfo; 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 f17aa63d1d..99922261a7 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 @@ -10,28 +10,28 @@ import lombok.Data; @Data public class UserKey implements Serializable { - @Schema(title = "user_key ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "user_key ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_key.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_key.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用户ID") + @Schema(description = "用户ID") private String createUser; - @Schema(title = "access_key", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "access_key", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "secret key", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "状态") + @Schema(description = "状态") private Boolean enable; private static final long serialVersionUID = 1L; 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 7df5e641e3..3bc67ce3de 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 @@ -10,38 +10,38 @@ import lombok.Data; @Data public class UserRole implements Serializable { - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_role.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "是否是内置用户组", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否是内置用户组", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{user_role.internal.not_blank}", groups = {Created.class}) private Boolean internal; - @Schema(title = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "创建人(操作人)") + @Schema(description = "创建人(操作人)") private String createUser; - @Schema(title = "应用范围", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "应用范围", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRolePermission.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRolePermission.java index 1c4ddd3cd3..3186a752d4 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRolePermission.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRolePermission.java @@ -10,17 +10,17 @@ import lombok.Data; @Data public class UserRolePermission implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role_permission.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 64, message = "{user_role_permission.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "权限ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRoleRelation.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRoleRelation.java index a341ae5564..0939261654 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRoleRelation.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserRoleRelation.java @@ -10,30 +10,30 @@ import lombok.Data; @Data public class UserRoleRelation implements Serializable { - @Schema(title = "用户组关系ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组关系ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role_relation.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_role_relation.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "组织或项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") 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 8b52f1019f..09ed222138 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 @@ -10,92 +10,92 @@ import lombok.Data; @Data public class UiCustomCommand implements Serializable { - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_command.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_custom_command.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "模块路径", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "用例等级") + @Schema(description = "用例等级") private String level; - @Schema(title = "状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "最后执行结果") + @Schema(description = "最后执行结果") private String lastResult; - @Schema(title = "num") + @Schema(description = "num") private Integer num; - @Schema(title = "删除状态") + @Schema(description = "删除状态") private Boolean deleted; - @Schema(title = "自定义num") + @Schema(description = "自定义num") private String customNum; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_custom_command.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_command.ref_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_custom_command.ref_id.length_range}", groups = {Created.class, Updated.class}) private String refId; - @Schema(title = "是否为最新版本 0:否,1:是") + @Schema(description = "是否为最新版本 0:否,1:是") private Boolean latest; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java index 33d40aaefc..57371ea28d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class UiCustomCommandBlob implements Serializable { - @Schema(title = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_command_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_custom_command_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景定义") + @Schema(description = "场景定义") private byte[] scenarioDefinition; - @Schema(title = "自定义结构") + @Schema(description = "自定义结构") private byte[] commandViewStruct; private static final long serialVersionUID = 1L; 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 d5fa2e0e34..7c50e8bc39 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 @@ -10,38 +10,38 @@ import lombok.Data; @Data public class UiCustomCommandModule implements Serializable { - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_command_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_custom_command_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_command_module.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{ui_custom_command_module.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "父级ID") + @Schema(description = "父级ID") private String parentId; - @Schema(title = "模块等级") + @Schema(description = "模块等级") private Integer level; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_custom_command_module.pos.not_blank}", groups = {Created.class}) private Double pos; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java index 18fb2dad74..f3be07743e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java @@ -10,38 +10,38 @@ import lombok.Data; @Data public class UiCustomVariable implements Serializable { - @Schema(title = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_variable.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_custom_variable.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_variable.type.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 100, message = "{ui_custom_variable.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_variable.value.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 1000, message = "{ui_custom_variable.value.length_range}", groups = {Created.class, Updated.class}) private String value; - @Schema(title = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_custom_variable.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 255, message = "{ui_custom_variable.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_custom_variable.deleted.not_blank}", groups = {Created.class, Updated.class}) private Boolean deleted; - @Schema(title = "是否是出参", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否是出参", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_custom_variable.out_put.not_blank}", groups = {Created.class, Updated.class}) private Boolean outPut; - @Schema(title = "启用禁用") + @Schema(description = "启用禁用") @NotNull(message = "{ui_custom_variable.enable.not_blank}", groups = {Created.class, Updated.class}) private Boolean enable; 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 5e7d195ade..a3e16b013e 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 @@ -10,69 +10,69 @@ import lombok.Data; @Data public class UiElement implements Serializable { - @Schema(title = "元素id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "元素id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_element.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "元素num") + @Schema(description = "元素num") private Integer num; - @Schema(title = "元素所属模块id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "元素所属模块id", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "定位类型", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "元素定位", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "更新人") + @Schema(description = "更新人") private String updateUser; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_element.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "是否为最新版本 0:否,1:是") + @Schema(description = "是否为最新版本 0:否,1:是") private Boolean latest; - @Schema(title = "元素描述") + @Schema(description = "元素描述") private String description; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java index c5542d2063..4104758300 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java @@ -10,27 +10,27 @@ import lombok.Data; @Data public class UiElementCommandReference implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_command_reference.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_element_command_reference.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_command_reference.element_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_element_command_reference.element_id.length_range}", groups = {Created.class, Updated.class}) private String elementId; - @Schema(title = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_command_reference.element_module_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_element_command_reference.element_module_id.length_range}", groups = {Created.class, Updated.class}) private String elementModuleId; - @Schema(title = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_command_reference.command_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_element_command_reference.command_id.length_range}", groups = {Created.class, Updated.class}) private String commandId; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_command_reference.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_element_command_reference.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; 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 d853321e35..c2c17d0795 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 @@ -10,38 +10,38 @@ import lombok.Data; @Data public class UiElementModule implements Serializable { - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_element_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_module.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_element_module.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_module.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{ui_element_module.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "父级ID") + @Schema(description = "父级ID") private String parentId; - @Schema(title = "模块等级") + @Schema(description = "模块等级") private Integer level; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_element_module.pos.not_blank}", groups = {Created.class}) private Double pos; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java index 2c0e7dad11..9e13c9e10f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java @@ -10,27 +10,27 @@ import lombok.Data; @Data public class UiElementScenarioReference implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_element_scenario_reference.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; 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 3150987282..325a1192cd 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 @@ -10,95 +10,95 @@ import lombok.Data; @Data public class UiScenario implements Serializable { - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "标签") + @Schema(description = "标签") private String tags; - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "步骤总数") + @Schema(description = "步骤总数") private Integer stepTotal; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "最后执行结果") + @Schema(description = "最后执行结果") private String lastResult; - @Schema(title = "最后执行结果的报告ID") + @Schema(description = "最后执行结果的报告ID") private String reportId; - @Schema(title = "num") + @Schema(description = "num") private Integer num; - @Schema(title = "删除状态") + @Schema(description = "删除状态") private Boolean deleted; - @Schema(title = "自定义num") + @Schema(description = "自定义num") private String customNum; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "删除时间") + @Schema(description = "删除时间") private Long deleteTime; - @Schema(title = "删除人") + @Schema(description = "删除人") private String deleteUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario.pos.not_blank}", groups = {Created.class}) private Long pos; - @Schema(title = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) @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:是") + @Schema(description = "是否为最新版本 0:否,1:是") private Boolean latest; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java index 4cd01b6aaa..67b8fd65b0 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class UiScenarioBlob implements Serializable { - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景定义") + @Schema(description = "场景定义") private byte[] scenarioDefinition; - @Schema(title = "环境") + @Schema(description = "环境") private byte[] environmentJson; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java index 3ada181b93..4f2bc6358a 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java @@ -10,12 +10,12 @@ import lombok.Data; @Data public class UiScenarioFollower implements Serializable { - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_follower.scenario_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_scenario_follower.scenario_id.length_range}", groups = {Created.class, Updated.class}) private String scenarioId; - @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_follower.user_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_scenario_follower.user_id.length_range}", groups = {Created.class, Updated.class}) private String userId; 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 fe1196b087..8493f7c501 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 @@ -10,38 +10,38 @@ import lombok.Data; @Data public class UiScenarioModule implements Serializable { - @Schema(title = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_module.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_module.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) @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") + @Schema(description = "父级ID") private String parentId; - @Schema(title = "模块等级") + @Schema(description = "模块等级") private Integer level; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_module.pos.not_blank}", groups = {Created.class}) private Double pos; - @Schema(title = "创建人") + @Schema(description = "创建人") 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 6d498f1c33..2671b0cb3b 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 @@ -10,28 +10,28 @@ import lombok.Data; @Data public class UiScenarioReference implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_reference.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_reference.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "被引用的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "被引用的ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "引用的数据类型(场景,指令)", requiredMode = Schema.RequiredMode.REQUIRED) @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; 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 56329d0cb8..20dec0f7e7 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 @@ -10,69 +10,69 @@ import lombok.Data; @Data public class UiScenarioReport implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "更新时间") + @Schema(description = "更新时间") private Long updateTime; - @Schema(title = "报告状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告状态", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "触发模式(手动,定时,批量,测试计划)", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "执行类型(并行,串行)") + @Schema(description = "执行类型(并行,串行)") private String executeType; - @Schema(title = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @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 = "创建人") + @Schema(description = "创建人") private String createUser; - @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_report.end_time.not_blank}", groups = {Created.class}) private Long endTime; - @Schema(title = "报告类型(集合,独立)") + @Schema(description = "报告类型(集合,独立)") private Boolean integrated; - @Schema(title = "关联的测试计划报告ID(可以为空)") + @Schema(description = "关联的测试计划报告ID(可以为空)") private String relevanceTestPlanReportId; - @Schema(title = "报告生成来源(生成报告,后端调试,本地调试)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告生成来源(生成报告,后端调试,本地调试)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report.report_source.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{ui_scenario_report.report_source.length_range}", groups = {Created.class, Updated.class}) private String reportSource; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java index 6384a495ae..28712041d2 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java @@ -10,44 +10,44 @@ import lombok.Data; @Data public class UiScenarioReportDetail implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report_detail.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report_detail.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "资源id(场景,接口)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源id(场景,接口)", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "报告 id", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "请求时间", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_report_detail.request_time.not_blank}", groups = {Created.class}) private Long requestTime; - @Schema(title = "总断言数") + @Schema(description = "总断言数") private Long totalAssertions; - @Schema(title = "失败断言数") + @Schema(description = "失败断言数") private Long passAssertions; - @Schema(title = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_report_detail.content.not_blank}", groups = {Created.class}) private byte[] content; - @Schema(title = "记录截图断言等结果") + @Schema(description = "记录截图断言等结果") private byte[] baseInfo; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java index 603d64cc35..db6e06ec08 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java @@ -10,15 +10,15 @@ import lombok.Data; @Data public class UiScenarioReportEnvironment implements Serializable { - @Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report_environment.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report_environment.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; - @Schema(title = "项目ID") + @Schema(description = "项目ID") private String projectId; - @Schema(title = "环境ID") + @Schema(description = "环境ID") private String environmentId; private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java index a44aa1ac6d..d5afc0755d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java @@ -10,20 +10,20 @@ import lombok.Data; @Data public class UiScenarioReportLog implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report_log.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report_log.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report_log.report_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report_log.report_id.length_range}", groups = {Created.class, Updated.class}) private String reportId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "执行日志", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "执行日志", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_report_log.console.not_blank}", groups = {Created.class}) private byte[] console; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java index 50a4fb0ed5..e3ec3e97b7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java @@ -10,20 +10,20 @@ import lombok.Data; @Data public class UiScenarioReportStructure implements Serializable { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_report_structure.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{ui_scenario_report_structure.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "资源步骤结构树", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源步骤结构树", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{ui_scenario_report_structure.resource_tree.not_blank}", groups = {Created.class}) private byte[] resourceTree; diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java index d157ea802d..2585f0e971 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java +++ b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java @@ -10,27 +10,27 @@ import lombok.Data; @Data public class UiScenarioVariable implements Serializable { - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_variable.resource_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{ui_scenario_variable.resource_id.length_range}", groups = {Created.class, Updated.class}) private String resourceId; - @Schema(title = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_variable.type.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 100, message = "{ui_scenario_variable.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_variable.value.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 1000, message = "{ui_scenario_variable.value.length_range}", groups = {Created.class, Updated.class}) private String value; - @Schema(title = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{ui_scenario_variable.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 255, message = "{ui_scenario_variable.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; private static final long serialVersionUID = 1L; diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/AddProjectRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/AddProjectRequest.java index 0e5a9781b0..53f6f27300 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/AddProjectRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/AddProjectRequest.java @@ -11,10 +11,10 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class AddProjectRequest extends ProjectBaseRequest { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @Size(min = 1, max = 50, message = "{project.id.length_range}") private String id; - @Schema(title = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List userIds; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/BasePageRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/BasePageRequest.java index f58582c996..53df4c831d 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/BasePageRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/BasePageRequest.java @@ -15,25 +15,25 @@ import java.util.Map; @Data public class BasePageRequest { - @Schema(title = "关键字") + @Schema(description = "关键字") private String keyword; @Min(value = 1, message = "当前页码必须大于0") - @Schema(title = "当前页码") + @Schema(description = "当前页码") private int current; @Min(value = 5, message = "每页显示条数必须不小于5") @Max(value = 100, message = "每页显示条数不能大于100") - @Schema(title = "每页显示条数") + @Schema(description = "每页显示条数") private int pageSize; - @Schema(title = "排序字段(model中的字段 : asc/desc)") + @Schema(description = "排序字段(model中的字段 : asc/desc)") private Map<@Valid @Pattern(regexp = "^[A-Za-z]+$") String, @Valid @NotBlank String> sort; - @Schema(title = "过滤字段") + @Schema(description = "过滤字段") private Map> filter; - @Schema(title = "高级搜索") + @Schema(description = "高级搜索") private Map combine; public String getSortString() { diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/LogDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/LogDTO.java index cc435d4e6d..760e1c161f 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/LogDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/LogDTO.java @@ -10,10 +10,10 @@ import java.util.UUID; @Data @EqualsAndHashCode(callSuper = false) public class LogDTO extends OperationLog { - @Schema(title = "变更前内容") + @Schema(description = "变更前内容") private byte[] originalValue; - @Schema(title = "变更后内容") + @Schema(description = "变更后内容") private byte[] modifiedValue; public LogDTO() { diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/OrgIdNameDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/OrgIdNameDTO.java index ece1a97c28..1da9b8a9e0 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/OrgIdNameDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/OrgIdNameDTO.java @@ -6,10 +6,10 @@ import lombok.Data; @Data public class OrgIdNameDTO { - @Schema(title = "关联的组织id") + @Schema(description = "关联的组织id") private String id; - @Schema(title = "关联的组织名称") + @Schema(description = "关联的组织名称") private String name; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/Permission.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/Permission.java index f139fe3750..3cca13034f 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/Permission.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/Permission.java @@ -10,17 +10,17 @@ import java.io.Serializable; * @author jianxing */ @Data -@Schema(title = "权限信息") +@Schema(description = "权限信息") public class Permission implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "权限ID") + @Schema(description = "权限ID") private String id; - @Schema(title = "权限名称") + @Schema(description = "权限名称") private String name; - @Schema(title = "是否启用该权限") + @Schema(description = "是否启用该权限") private Boolean enable = false; - @Schema(title = "是否是企业权限") + @Schema(description = "是否是企业权限") private Boolean license = false; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/PermissionDefinitionItem.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/PermissionDefinitionItem.java index 00340c1e2c..adbbd963e0 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/PermissionDefinitionItem.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/PermissionDefinitionItem.java @@ -9,20 +9,20 @@ import java.util.List; * @author jianxing */ @Data -@Schema(title = "权限设置菜单项") +@Schema(description = "权限设置菜单项") public class PermissionDefinitionItem { - @Schema(title = "菜单项ID") + @Schema(description = "菜单项ID") private String id; - @Schema(title = "菜单所属类型 SYSTEM ORGANIZATION PROJECT") + @Schema(description = "菜单所属类型 SYSTEM ORGANIZATION PROJECT") private String type; - @Schema(title = "菜单项名称") + @Schema(description = "菜单项名称") private String name; - @Schema(title = "是否是企业版菜单") + @Schema(description = "是否是企业版菜单") private Boolean license = false; - @Schema(title = "菜单是否全选") + @Schema(description = "菜单是否全选") private Boolean enable = false; - @Schema(title = "菜单下的权限列表") + @Schema(description = "菜单下的权限列表") private List permissions; - @Schema(title = "子菜单") + @Schema(description = "子菜单") private List children; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectBaseRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectBaseRequest.java index e08a999460..e65ec7f7d8 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectBaseRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectBaseRequest.java @@ -12,19 +12,19 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = false) public class ProjectBaseRequest { - @Schema(title = "组织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(title = "项目名称", 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(title = "项目描述") + @Schema(description = "项目描述") private String description; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectDTO.java index 19cad7f178..97c33c50b6 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/ProjectDTO.java @@ -11,10 +11,10 @@ import java.util.List; @Data @EqualsAndHashCode(callSuper = false) public class ProjectDTO extends Project { - @Schema(title = "项目成员数量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "项目成员数量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String number; - @Schema(title = "所属组织", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "所属组织", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String organizationName; - @Schema(title = "管理员", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "管理员", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List adminList; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/QueryResourcePoolRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/QueryResourcePoolRequest.java index 110f52c04a..a44909b6d9 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/QueryResourcePoolRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/QueryResourcePoolRequest.java @@ -7,6 +7,6 @@ import lombok.Setter; @Getter @Setter public class QueryResourcePoolRequest extends BasePageRequest { - @Schema(title = "是否禁用") + @Schema(description = "是否禁用") private Boolean enable; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceDTO.java index d54c452d3a..d47d3a67fb 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceDTO.java @@ -16,78 +16,78 @@ public class TestResourceDTO { /** * type为 node时, 性能测试的镜像 */ - @Schema(title = "type为node时, 性能测试的镜像") + @Schema(description = "type为node时, 性能测试的镜像") private String loadTestImage; /** * type为 node时, 性能测试jvm配置 */ - @Schema(title = "type为node时, 性能测试jvm配置") + @Schema(description = "type为node时, 性能测试jvm配置") private String loadTestHeap; /** * type为 node时, 接口测试 性能测试 node 节点配置 */ - @Schema(title = "type为node时, 接口测试,性能测试node节点配置") + @Schema(description = "type为node时, 接口测试,性能测试node节点配置") private List nodesList; /** * type为 k8s 时,接口测试,性能测试的ip */ - @Schema(title = "type为k8s时,接口测试,性能测试的ip") + @Schema(description = "type为k8s时,接口测试,性能测试的ip") private String ip; /** * type为 k8s 时,接口测试,性能测试的token */ - @Schema(title = "type为k8s时,接口测试,性能测试的token") + @Schema(description = "type为k8s时,接口测试,性能测试的token") private String token; /** * type为 k8s 时,接口测试,性能测试的命名空间 */ - @Schema(title = "type为k8s时,接口测试,性能测试的命名空间") + @Schema(description = "type为k8s时,接口测试,性能测试的命名空间") private String nameSpaces; /** * type为 k8s 时,接口测试,性能测试,UI测试的最大并发数 */ - @Schema(title = "type为k8s时,接口测试,性能测试,UI测试的最大并发数") + @Schema(description = "type为k8s时,接口测试,性能测试,UI测试的最大并发数") private Integer concurrentNumber; /** * type为 k8s 时,接口测试,性能测试的单pod 最大线程数 */ - @Schema(title = "type为k8s时,接口测试,性能测试的单pod最大线程数") + @Schema(description = "type为k8s时,接口测试,性能测试的单pod最大线程数") private Integer podThreads; /** * type为 k8s 时,性能测试自定义JOB模版 string */ - @Schema(title = " type为k8s时,性能测试自定义JOB模版string") + @Schema(description = " type为k8s时,性能测试自定义JOB模版string") private String jobDefinition; /** * type为 k8s 时,接口测试镜像 */ - @Schema(title = "type为k8s时,接口测试镜像") + @Schema(description = "type为k8s时,接口测试镜像") private String apiTestImage; /** * type为 k8s 时,接口测试deployName */ - @Schema(title = "type为k8s时,接口测试deployName") + @Schema(description = "type为k8s时,接口测试deployName") private String deployName; /** * UI测试的grid配置 */ - @Schema(title = "UI测试的grid配置") + @Schema(description = "UI测试的grid配置") private String uiGrid; - @Schema(title = "grid最大线程数") + @Schema(description = "grid最大线程数") private Integer girdConcurrentNumber; /** * 关联的组织id集合 */ - @Schema(title = "关联的组织id集合") + @Schema(description = "关联的组织id集合") private ListorgIds; diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceNodeDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceNodeDTO.java index 3bb88a7e28..64967f9541 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceNodeDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceNodeDTO.java @@ -11,25 +11,25 @@ public class TestResourceNodeDTO { /** * 接口测试 性能测试 node节点ip */ - @Schema(title = "接口测试性能测试 node节点ip") + @Schema(description = "接口测试性能测试 node节点ip") private String ip; /** * 接口测试 性能测试 node节点端口 */ - @Schema(title = "接口测试性能测试 node节点端口") + @Schema(description = "接口测试性能测试 node节点端口") private String port; /** * 性能测试 node节点监控器 */ - @Schema(title = "性能测试 node节点监控器") + @Schema(description = "性能测试 node节点监控器") private String monitor; /** * 接口测试 性能测试 最大并发数 */ - @Schema(title = "接口测试,性能测试最大并发数") + @Schema(description = "接口测试,性能测试最大并发数") private Integer concurrentNumber; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolDTO.java index f8ad1eff87..7df6538017 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolDTO.java @@ -10,7 +10,7 @@ import lombok.EqualsAndHashCode; public class TestResourcePoolDTO extends TestResourcePool { private TestResourceDTO testResourceDTO; - @Schema(title = "资源池是否在使用中") + @Schema(description = "资源池是否在使用中") private Boolean inUsed; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolRequest.java index e8b5179482..909dc06716 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolRequest.java @@ -11,44 +11,44 @@ import lombok.Data; @Data public class TestResourcePoolRequest { - @Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{test_resource_pool.id.length_range}", groups = {Updated.class}) private String id; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_resource_pool.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 255, message = "{test_resource_pool.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = { "Node","Kubernetes"}) + @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = { "Node","Kubernetes"}) @NotBlank(message = "{test_resource_pool.type.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 30, message = "{test_resource_pool.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "是否用于接口测试") + @Schema(description = "是否用于接口测试") private Boolean apiTest; - @Schema(title = "是否用于性能测试") + @Schema(description = "是否用于性能测试") private Boolean loadTest; - @Schema(title = "是否用于ui测试") + @Schema(description = "是否用于ui测试") private Boolean uiTest; - @Schema(title = "ms部署地址") + @Schema(description = "ms部署地址") private String serverUrl; - @Schema(title = "资源池应用类型(组织/全部)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "资源池应用类型(组织/全部)", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{test_resource_pool.all_org.not_blank}", groups = {Created.class, Updated.class}) private Boolean allOrg; - @Schema(title = "其余配置") + @Schema(description = "其余配置") private TestResourceDTO testResourceDTO; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolReturnDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolReturnDTO.java index 4a9e03bbde..e44d88bce0 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolReturnDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourcePoolReturnDTO.java @@ -10,6 +10,6 @@ import lombok.EqualsAndHashCode; public class TestResourcePoolReturnDTO extends TestResourcePool { private TestResourceReturnDTO testResourceReturnDTO; - @Schema(title = "资源池是否在使用中") + @Schema(description = "资源池是否在使用中") private Boolean inUsed; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceReturnDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceReturnDTO.java index 2e9ede6edb..24f8b7afcd 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceReturnDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/TestResourceReturnDTO.java @@ -15,77 +15,77 @@ public class TestResourceReturnDTO { /** * type为 node时, 性能测试的镜像 */ - @Schema(title = "type为node时, 性能测试的镜像") + @Schema(description = "type为node时, 性能测试的镜像") private String loadTestImage; /** * type为 node时, 性能测试jvm配置 */ - @Schema(title = "type为node时, 性能测试jvm配置") + @Schema(description = "type为node时, 性能测试jvm配置") private String loadTestHeap; /** * type为 node时, 接口测试 性能测试 node 节点配置 */ - @Schema(title = "type为node时, 接口测试,性能测试node节点配置") + @Schema(description = "type为node时, 接口测试,性能测试node节点配置") private List nodesList; /** * type为 k8s 时,接口测试,性能测试的ip */ - @Schema(title = "type为k8s时,接口测试,性能测试的ip") + @Schema(description = "type为k8s时,接口测试,性能测试的ip") private String ip; /** * type为 k8s 时,接口测试,性能测试的token */ - @Schema(title = "type为k8s时,接口测试,性能测试的token") + @Schema(description = "type为k8s时,接口测试,性能测试的token") private String token; /** * type为 k8s 时,接口测试,性能测试的命名空间 */ - @Schema(title = "type为k8s时,接口测试,性能测试的命名空间") + @Schema(description = "type为k8s时,接口测试,性能测试的命名空间") private String nameSpaces; /** * type为 k8s 时,接口测试,性能测试,UI测试的最大并发数 */ - @Schema(title = "type为k8s时,接口测试,性能测试,UI测试的最大并发数") + @Schema(description = "type为k8s时,接口测试,性能测试,UI测试的最大并发数") private Integer concurrentNumber; /** * type为 k8s 时,接口测试,性能测试的单pod 最大线程数 */ - @Schema(title = "type为k8s时,接口测试,性能测试的单pod最大线程数") + @Schema(description = "type为k8s时,接口测试,性能测试的单pod最大线程数") private Integer podThreads; /** * type为 k8s 时,性能测试自定义JOB模版 string */ - @Schema(title = " type为k8s时,性能测试自定义JOB模版string") + @Schema(description = " type为k8s时,性能测试自定义JOB模版string") private String jobDefinition; /** * type为 k8s 时,接口测试镜像 */ - @Schema(title = "type为k8s时,接口测试镜像") + @Schema(description = "type为k8s时,接口测试镜像") private String apiTestImage; /** * type为 k8s 时,接口测试deployName */ - @Schema(title = "type为k8s时,接口测试deployName") + @Schema(description = "type为k8s时,接口测试deployName") private String deployName; /** * UI测试的grid配置 */ - @Schema(title = "UI测试的grid配置") + @Schema(description = "UI测试的grid配置") private String uiGrid; - @Schema(title = "grid最大线程数") + @Schema(description = "grid最大线程数") private Integer girdConcurrentNumber; /** * 关联的组织id集合 */ - @Schema(title = "关联的组织id和名称的集合") + @Schema(description = "关联的组织id和名称的集合") private List orgIdNameMap; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UpdateProjectRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UpdateProjectRequest.java index ed530ddd44..de87bc62eb 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UpdateProjectRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UpdateProjectRequest.java @@ -13,10 +13,10 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class UpdateProjectRequest extends ProjectBaseRequest { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{project.id.length_range}", groups = {Updated.class}) private String id; - @Schema(title = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "成员数", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List userIds; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserDTO.java index 5f2e00c016..8475aabf59 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserDTO.java @@ -18,9 +18,9 @@ public class UserDTO extends User { private List userRoleRelations = new ArrayList<>(); private List userRolePermissions = new ArrayList<>(); - @Schema(title = "其他平台对接信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "其他平台对接信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private byte[] platformInfo; - @Schema(title = "UI本地调试地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "UI本地调试地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String seleniumServer; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserRoleRelationUserDTO.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserRoleRelationUserDTO.java index 820b9283c7..6cf7cf75ad 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserRoleRelationUserDTO.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/UserRoleRelationUserDTO.java @@ -7,21 +7,21 @@ import lombok.Data; * @author jianxing */ @Data -@Schema(title = "用户组与用户的关联关系DTO") +@Schema(description = "用户组与用户的关联关系DTO") public class UserRoleRelationUserDTO { - @Schema(title = "关联关系ID") + @Schema(description = "关联关系ID") private String id; - @Schema(title = "用户ID") + @Schema(description = "用户ID") private String userId; - @Schema(title = "用户名") + @Schema(description = "用户名") private String name; - @Schema(title = "用户邮箱") + @Schema(description = "用户邮箱") private String email; - @Schema(title = "手机号") + @Schema(description = "手机号") private String phone; } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationBatchRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationBatchRequest.java index bbafb237e2..410f06acf9 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationBatchRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationBatchRequest.java @@ -14,7 +14,7 @@ import java.util.List; @Data public class GlobalUserRoleRelationBatchRequest { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user_role_relation.user_id.not_blank}", groups = {Created.class, Updated.class}) @Valid private List< @@ -23,7 +23,7 @@ public class GlobalUserRoleRelationBatchRequest { String > userIds; - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(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}) @Valid diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationUpdateRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationUpdateRequest.java index 6fb4a3887e..f1bc4d6650 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationUpdateRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/GlobalUserRoleRelationUpdateRequest.java @@ -17,7 +17,7 @@ import java.util.List; @Data public class GlobalUserRoleRelationUpdateRequest { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user_role_relation.user_id.not_blank}", groups = {Created.class, Updated.class}) @Valid private List< @@ -26,7 +26,7 @@ public class GlobalUserRoleRelationUpdateRequest { String > userIds; - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/PermissionSettingUpdateRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/PermissionSettingUpdateRequest.java index f5ff565b40..88c98c6a2f 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/PermissionSettingUpdateRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/PermissionSettingUpdateRequest.java @@ -15,11 +15,11 @@ import java.util.List; */ @Data public class PermissionSettingUpdateRequest { - @Schema(title = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank private String userRoleId; @NotNull - @Schema(title = "菜单下的权限列表", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "菜单下的权限列表", requiredMode = Schema.RequiredMode.REQUIRED) @Valid private List permissions; @@ -28,9 +28,9 @@ public class PermissionSettingUpdateRequest { @AllArgsConstructor public static class PermissionUpdateRequest { @NotBlank - @Schema(title = "权限ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "权限ID", requiredMode = Schema.RequiredMode.REQUIRED) private String id; - @Schema(title = "是否启用该权限", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否启用该权限", requiredMode = Schema.RequiredMode.REQUIRED) private Boolean enable = false; } } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleRelationUpdateRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleRelationUpdateRequest.java index fd146f114f..32bc538e4e 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleRelationUpdateRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleRelationUpdateRequest.java @@ -19,7 +19,7 @@ public class UserRoleRelationUpdateRequest extends GlobalUserRoleRelationUpdateR * 全局用户组列表不支持给非系统级别的用户组添加用户 * 所以 GlobalUserRoleRelationUpdateRequest 参数不需要 sourceId */ - @Schema(title = "组织或项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织或项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @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; diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleUpdateRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleUpdateRequest.java index ed3fc9fd44..a75ed30c04 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleUpdateRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/request/UserRoleUpdateRequest.java @@ -18,20 +18,20 @@ import java.io.Serializable; public class UserRoleUpdateRequest implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_role.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) @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; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.type.not_blank}", groups = {Created.class}) @EnumValue(enumClass = UserRoleType.class, groups = {Created.class, Updated.class}) @Size(min = 1, max = 20, message = "{user_role.type.length_range}", groups = {Created.class, Updated.class}) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/log/vo/OperationLogRequest.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/log/vo/OperationLogRequest.java index da3bc6f9f8..ab319800c6 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/log/vo/OperationLogRequest.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/log/vo/OperationLogRequest.java @@ -16,34 +16,34 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class OperationLogRequest extends BasePageRequest { - @Schema(title = "操作人") + @Schema(description = "操作人") private String operUser; - @Schema(title = "开始日期") + @Schema(description = "开始日期") @NotNull(message = "{start_time_is_null}") private Long startTime; - @Schema(title = "结束日期") + @Schema(description = "结束日期") @NotNull(message = "{end_time_is_null}") private Long endTime; - @Schema(title = "项目id") + @Schema(description = "项目id") private List projectIds; - @Schema(title = "组织id") + @Schema(description = "组织id") private List organizationIds; - @Schema(title = "操作类型") + @Schema(description = "操作类型") private String type; - @Schema(title = "操作对象") + @Schema(description = "操作对象") private String module; - @Schema(title = "名称") + @Schema(description = "名称") private String content; - @Schema(title = "级别 系统|组织|项目") + @Schema(description = "级别 系统|组织|项目") @EnumValue(enumClass = UserRoleType.class, groups = {Created.class, Updated.class}) private String level; diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionDTO.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionDTO.java index 9714359db0..f669a85eec 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionDTO.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiDefinitionDTO.java @@ -8,12 +8,12 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class ApiDefinitionDTO extends ApiDefinition { - @Schema(title = "请求内容") + @Schema(description = "请求内容") private byte[] request; - @Schema(title = "响应内容") + @Schema(description = "响应内容") private byte[] response; - @Schema(title = "备注") + @Schema(description = "备注") private byte[] remark; } diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDTO.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDTO.java index a1c303ea69..c553307252 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDTO.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDTO.java @@ -12,11 +12,11 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class ApiScenarioDTO extends ApiScenario { - @Schema(title = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "场景pk", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{api_scenario_blob.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{api_scenario_blob.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "场景步骤内容") + @Schema(description = "场景步骤内容") private byte[] content; } diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java index 0281149461..21a36d49cc 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java @@ -15,7 +15,7 @@ import java.util.List; * @author : jianxing * @date : 2023-5-17 */ -@Schema(title = "缺陷") +@Schema(description = "缺陷") @RestController @RequestMapping("/bug") public class BugController { diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/PluginController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/PluginController.java index 3550967c20..a8d75649cd 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/PluginController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/PluginController.java @@ -80,10 +80,10 @@ public class PluginController { @GetMapping("/image/{pluginId}") public void getPluginImg( - @Schema(title = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件ID", requiredMode = Schema.RequiredMode.REQUIRED) @PathVariable("pluginId") String pluginId, - @Schema(title = "图片路径", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "图片路径", requiredMode = Schema.RequiredMode.REQUIRED) @RequestParam("imagePath") String imagePath, HttpServletResponse response) { diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/ServiceIntegrationController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/ServiceIntegrationController.java index 6aac7cb071..cdccdc98a0 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/ServiceIntegrationController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/ServiceIntegrationController.java @@ -67,7 +67,7 @@ public class ServiceIntegrationController { @Operation(summary = "校验服务集成信息") @RequiresPermissions(PermissionConstants.SYSTEM_SERVICE_INTEGRATION_UPDATE) public boolean validate(@Validated({Updated.class}) @RequestBody - @Schema(title = "配置的表单键值对", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "配置的表单键值对", requiredMode = Schema.RequiredMode.REQUIRED) Map serviceIntegrationInfo) { return serviceIntegrationService.validate(serviceIntegrationInfo); } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/AuthSourceDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/AuthSourceDTO.java index e628263611..45433b2ad2 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/AuthSourceDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/AuthSourceDTO.java @@ -12,22 +12,22 @@ public class AuthSourceDTO implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) private String id; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) private String name; - @Schema(title = "类型") + @Schema(description = "类型") private String type; - @Schema(title = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) private String configuration; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrgUserExtend.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrgUserExtend.java index 4a4cbaf6a3..cbdbfd76a5 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrgUserExtend.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrgUserExtend.java @@ -14,9 +14,9 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class OrgUserExtend extends User { - @Schema(title = "项目ID名称集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID名称集合", requiredMode = Schema.RequiredMode.REQUIRED) private List projectIdNameMap;; - @Schema(title = "用户组ID名称集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID名称集合", requiredMode = Schema.RequiredMode.REQUIRED) private List userRoleIdNameMap; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrganizationDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrganizationDTO.java index 54ce52afd7..d4855e3637 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrganizationDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/OrganizationDTO.java @@ -22,25 +22,25 @@ public class OrganizationDTO extends Organization { /** * 成员数量 */ - @Schema(title = "成员数量") + @Schema(description = "成员数量") private Integer memberCount; /** * 项目数量 */ - @Schema(title = "项目数量" ) + @Schema(description = "项目数量" ) private Integer projectCount; /** * 列表组织管理员集合 */ - @Schema(title = "列表组织管理员集合") + @Schema(description = "列表组织管理员集合") private List orgAdmins; /** * 组织管理员ID集合(新增, 编辑), 必填 */ - @Schema(title = "组织管理员ID集合") + @Schema(description = "组织管理员ID集合") @NotEmpty(groups = {Created.class, Updated.class}, message = "{member.id.not_empty}") private List memberIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/PluginDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/PluginDTO.java index dac3490618..f787bf708e 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/PluginDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/PluginDTO.java @@ -14,9 +14,9 @@ import java.util.List; public class PluginDTO extends Plugin implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "插件前端表单配置项列表") + @Schema(description = "插件前端表单配置项列表") private List pluginForms; - @Schema(title = "关联的组织列表") + @Schema(description = "关联的组织列表") private List organizations; } \ No newline at end of file diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/ServiceIntegrationDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/ServiceIntegrationDTO.java index 7165bee723..8328f2786a 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/ServiceIntegrationDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/ServiceIntegrationDTO.java @@ -10,30 +10,30 @@ import java.util.Map; public class ServiceIntegrationDTO implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "ID") + @Schema(description = "ID") private String id; - @Schema(title = "插件的ID") + @Schema(description = "插件的ID") private String pluginId; - @Schema(title = "插件的名称") + @Schema(description = "插件的名称") private String title; - @Schema(title = "插件描述") + @Schema(description = "插件描述") private String describe; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "是否配置") + @Schema(description = "是否配置") private Boolean config; - @Schema(title = "logo图片地址") + @Schema(description = "logo图片地址") private String logo; - @Schema(title = "组织ID") + @Schema(description = "组织ID") private String organizationId; - @Schema(title = "配置的表单值,已配置才有值") + @Schema(description = "配置的表单值,已配置才有值") private Map configuration; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserBatchCreateDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserBatchCreateDTO.java index dc6af80153..f7b9c6d121 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserBatchCreateDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserBatchCreateDTO.java @@ -13,11 +13,11 @@ import java.util.List; @Data public class UserBatchCreateDTO { - @Schema(title = "用户信息集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户信息集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(groups = {Created.class, Updated.class}, message = "{user.info.not_empty}") List<@Valid UserCreateInfo> userInfoList; - @Schema(title = "用户组", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(groups = {Created.class, Updated.class}, message = "{user_role.id.not_blank}") List<@Valid @NotBlank(message = "{user_role.id.not_blank}", groups = {Created.class, Updated.class}) String> userRoleIdList; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserCreateInfo.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserCreateInfo.java index e867cc68fe..c47269f710 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserCreateInfo.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/UserCreateInfo.java @@ -10,21 +10,21 @@ import lombok.Data; @Data public class UserCreateInfo { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private String id; - @Schema(title = "用户名", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED) @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) + @Schema(description = "用户邮箱", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user.email.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{user.email.length_range}", groups = {Created.class, Updated.class}) @Email(message = "{user.email.invalid}", groups = {Created.class, Updated.class}) private String email; - @Schema(title = "手机号") + @Schema(description = "手机号") private String phone; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/GlobalUserRoleRelationQueryRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/GlobalUserRoleRelationQueryRequest.java index 0202a9f326..6743f601d9 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/GlobalUserRoleRelationQueryRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/GlobalUserRoleRelationQueryRequest.java @@ -14,6 +14,6 @@ import io.metersphere.sdk.dto.BasePageRequest; @Setter public class GlobalUserRoleRelationQueryRequest extends BasePageRequest { @NotBlank - @Schema(title = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID", requiredMode = Schema.RequiredMode.REQUIRED) private String roleId; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserBatchProcessRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserBatchProcessRequest.java index c2f5054018..2a71746eca 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserBatchProcessRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserBatchProcessRequest.java @@ -9,7 +9,7 @@ import java.util.List; @Data public class UserBatchProcessRequest { - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user.not.empty}") List userIdList = new ArrayList<>(); } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserEditRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserEditRequest.java index 8c9eed9ad2..f87594dc08 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserEditRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/request/UserEditRequest.java @@ -15,7 +15,7 @@ import java.util.List; @EqualsAndHashCode(callSuper = true) @Data public class UserEditRequest extends UserCreateInfo { - @Schema(title = "用户组", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(groups = {Created.class, Updated.class}, message = "{user_role.id.not_blank}") List<@Valid @NotBlank(message = "{user_role.id.not_blank}", groups = {Created.class, Updated.class}) String> userRoleIdList; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserImportResponse.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserImportResponse.java index 1269f4897b..8efe1fed03 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserImportResponse.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserImportResponse.java @@ -12,11 +12,11 @@ import java.util.TreeMap; @Getter @Setter public class UserImportResponse { - @Schema(title = "导入数量") + @Schema(description = "导入数量") private int importCount; - @Schema(title = "成功数量") + @Schema(description = "成功数量") private int successCount; - @Schema(title = "报错信息") + @Schema(description = "报错信息") private TreeMap errorMessages = new TreeMap<>(); public void generateResponse(ExcelParseDTO excelParseDTO) { diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserTableResponse.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserTableResponse.java index db7dd05a0b..1978f0b553 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserTableResponse.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/response/UserTableResponse.java @@ -13,8 +13,8 @@ import java.util.List; @Data @EqualsAndHashCode(callSuper = false) public class UserTableResponse extends User { - @Schema(title = "用户所属组织") + @Schema(description = "用户所属组织") private List organizationList = new ArrayList<>(); - @Schema(title = "用户所属用户组") + @Schema(description = "用户所属用户组") private List userRoleList = new ArrayList<>(); } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceRequest.java index d3bef2fad7..5f7ac01397 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceRequest.java @@ -16,23 +16,23 @@ public class AuthSourceRequest implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源ID", requiredMode = Schema.RequiredMode.REQUIRED) @Size(min = 1, max = 50, message = "{auth_source.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{authsource_name_is_null}") private String name; - @Schema(title = "类型") + @Schema(description = "类型") @NotBlank(message = "{authsource_type_is_null}") private String type; - @Schema(title = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "认证源配置", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{authsource_configuration_is_null}", groups = {Created.class}) private String configuration; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceStatusRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceStatusRequest.java index 0bf7384ce6..edc2f94429 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceStatusRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/AuthSourceStatusRequest.java @@ -10,9 +10,9 @@ import java.io.Serializable; @EqualsAndHashCode(callSuper = false) public class AuthSourceStatusRequest implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "是否禁用") + @Schema(description = "是否禁用") private Boolean enable; - @Schema(title = "id") + @Schema(description = "id") private String id; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrgMemberExtendProjectRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrgMemberExtendProjectRequest.java index decd39d36d..74f33eed81 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrgMemberExtendProjectRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrgMemberExtendProjectRequest.java @@ -17,7 +17,7 @@ public class OrgMemberExtendProjectRequest extends OrganizationMemberRequest{ /** * 项目ID集合 */ - @Schema(title = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{projectIds.not_empty}") private List projectIds; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationEditRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationEditRequest.java index 921a1a5048..52b5560d8c 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationEditRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationEditRequest.java @@ -15,17 +15,17 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class OrganizationEditRequest implements Serializable { - @Schema(title = "组织ID") + @Schema(description = "组织ID") private String id; - @Schema(title = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 100, message = "{organization.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "描述") + @Schema(description = "描述") private String description; - @Schema(title = "成员ID集合") + @Schema(description = "成员ID集合") private List memberIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberBatchRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberBatchRequest.java index 1a55fa7d72..daa9905fc6 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberBatchRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberBatchRequest.java @@ -14,7 +14,7 @@ public class OrganizationMemberBatchRequest extends OrganizationMemberRequest{ /** * 组织ID集合 */ - @Schema(title = "组织ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{organization.id.not_blank}") private List organizationIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberExtendRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberExtendRequest.java index 334caaecc6..0e2d710790 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberExtendRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberExtendRequest.java @@ -18,7 +18,7 @@ public class OrganizationMemberExtendRequest extends OrganizationMemberRequest { /** * 用户组ID集合 */ - @Schema(title = "用户组ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{userGroupId.id.not_null}") private List userRoleIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberRequest.java index b829414707..02c88eab26 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberRequest.java @@ -19,14 +19,14 @@ public class OrganizationMemberRequest implements Serializable { /** * 组织ID */ - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.id.not_blank}") private String organizationId; /** * 成员ID集合 */ - @Schema(title = "成员ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "成员ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user.id.not_blank}") private List memberIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberUpdateRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberUpdateRequest.java index 668b06522f..2a4ed284f8 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberUpdateRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationMemberUpdateRequest.java @@ -16,21 +16,21 @@ public class OrganizationMemberUpdateRequest implements Serializable { /** * 组织ID */ - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.id.not_blank}") private String organizationId; /** * 成员ID */ - @Schema(title = "成员ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "成员ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.member.not_blank}") private String memberId; /** * 用户组ID集合 */ - @Schema(title = "用户组ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户组ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{userGroupId.id.not_null}") private List userRoleIds; @@ -38,6 +38,6 @@ public class OrganizationMemberUpdateRequest implements Serializable { /** * 项目ID集合 */ - @Schema(title = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) private List projectIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationProjectRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationProjectRequest.java index 348d22ce7c..9a5bcc6e6e 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationProjectRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationProjectRequest.java @@ -10,10 +10,10 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class OrganizationProjectRequest extends BasePageRequest { - @Schema(title = "组织id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.organization_id.not_blank}") @Size(min = 1, max = 50, message = "{project.organization_id.length_range}") private String organizationId; - @Schema(title = "项目ID") + @Schema(description = "项目ID") private String projectId; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationRequest.java index 10602390f2..346b91d3c5 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationRequest.java @@ -11,6 +11,6 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class OrganizationRequest extends BasePageRequest { - @Schema(title = "组织ID") + @Schema(description = "组织ID") private String organizationId; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleEditRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleEditRequest.java index de519db5eb..9816694af9 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleEditRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleEditRequest.java @@ -18,22 +18,22 @@ public class OrganizationUserRoleEditRequest implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "组ID") + @Schema(description = "组ID") @NotBlank(message = "{user_role.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{user_role.id.length_range}", groups = {Updated.class}) private String id; - @Schema(title = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.name.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 255, message = "{user_role.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "应用范围", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "应用范围", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.scope_id.not_blank}", groups = {Created.class, Updated.class}) @Size(min = 1, max = 50, message = "{user_role.scope_id.length_range}", groups = {Created.class, Updated.class}) private String scopeId; - @Schema(title = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "所属类型 SYSTEM ORGANIZATION PROJECT", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.type.not_blank}", groups = {Created.class, Updated.class}) @EnumValue(enumClass = UserRoleType.class, groups = {Created.class, Updated.class}) @Size(min = 1, max = 20, message = "{user_role.type.length_range}", groups = {Created.class, Updated.class}) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberEditRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberEditRequest.java index df30d205e3..6a14be6079 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberEditRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberEditRequest.java @@ -14,17 +14,17 @@ import java.util.List; @EqualsAndHashCode(callSuper = false) public class OrganizationUserRoleMemberEditRequest implements Serializable { - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.id.not_blank}") @Size(min = 1, max = 50, message = "{user_role.id.length_range}") private String userRoleId; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.id.not_blank}") @Size(min = 1, max = 50, message = "{organization.id.length_range}") private String organizationId; - @Schema(title = "成员ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "成员ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user.id.not_blank}") private List userIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberRequest.java index 9975c83bfe..68c0b69d32 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationUserRoleMemberRequest.java @@ -11,16 +11,16 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = false) public class OrganizationUserRoleMemberRequest extends BasePageRequest { - @Schema(title = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{user_role.id.not_blank}") @Size(min = 1, max = 50, message = "{user_role.id.length_range}") private String userRoleId; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{organization.id.not_blank}") @Size(min = 1, max = 50, message = "{organization.id.length_range}") private String organizationId; - @Schema(title = "搜索关键字") + @Schema(description = "搜索关键字") private String userKeyWord; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/PluginUpdateRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/PluginUpdateRequest.java index 5601fb29f8..3dd9f5ba7b 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/PluginUpdateRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/PluginUpdateRequest.java @@ -11,29 +11,29 @@ import java.util.List; @Data public class PluginUpdateRequest { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{plugin.id.length_range}", groups = {Updated.class}) private String id; - @Schema(title = "插件名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件名称", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{plugin.name.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{plugin.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Schema(title = "是否启用插件, 默认启用") + @Schema(description = "是否启用插件, 默认启用") private Boolean enable; - @Schema(title = "是否是全局插件, 默认全局") + @Schema(description = "是否是全局插件, 默认全局") private Boolean global; - @Schema(title = "插件描述") + @Schema(description = "插件描述") @Size(min = 1, max = 500, message = "{plugin.scenario.length_range}", groups = {Created.class, Updated.class}) private String description; @Schema(hidden = true) private String createUser; - @Schema(title = "关联的组织ID") + @Schema(description = "关联的组织ID") private List organizationIds; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberBatchRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberBatchRequest.java index 78daf0c8cd..bf30952345 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberBatchRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberBatchRequest.java @@ -8,7 +8,7 @@ import java.util.List; @Data public class ProjectAddMemberBatchRequest extends ProjectAddMemberRequest{ - @Schema(title = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.id.not_blank}") private List projectIds; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberRequest.java index faa93721f2..3e1faada17 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectAddMemberRequest.java @@ -9,11 +9,11 @@ import java.util.List; @Data public class ProjectAddMemberRequest { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.id.not_blank}") private String projectId; - @Schema(title = "用户ID集合", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "用户ID集合", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "{user.ids.not_blank}") private List userIds; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectMemberRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectMemberRequest.java index a5f39152d4..b93a28371d 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectMemberRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectMemberRequest.java @@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class ProjectMemberRequest extends BasePageRequest { - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{project.id.not_blank}") private String projectId; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectRequest.java index 104b8ea516..55194ccbdd 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ProjectRequest.java @@ -8,8 +8,8 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class ProjectRequest extends BasePageRequest { - @Schema(title = "组织id") + @Schema(description = "组织id") private String organizationId; - @Schema(title = "项目ID") + @Schema(description = "项目ID") private String projectId; } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ServiceIntegrationUpdateRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ServiceIntegrationUpdateRequest.java index f1e1e721b6..af5f32c05b 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/request/ServiceIntegrationUpdateRequest.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/ServiceIntegrationUpdateRequest.java @@ -15,25 +15,25 @@ public class ServiceIntegrationUpdateRequest implements Serializable { private static final long serialVersionUID = 1L; - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{service_integration.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.plugin_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{service_integration.plugin_id.length_range}", groups = {Created.class, Updated.class}) private String pluginId; - @Schema(title = "是否启用") + @Schema(description = "是否启用") private Boolean enable; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{service_integration.organization_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{service_integration.organization_id.length_range}", groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "配置的表单键值对", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "配置的表单键值对", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(message = "{service_integration.configuration.not_blank}", groups = {Created.class}) private Map configuration; } \ No newline at end of file diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/param/ServiceIntegrationUpdateRequestDefinition.java b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/param/ServiceIntegrationUpdateRequestDefinition.java index 2f1f0cac0f..162002c6c6 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/param/ServiceIntegrationUpdateRequestDefinition.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/param/ServiceIntegrationUpdateRequestDefinition.java @@ -12,22 +12,22 @@ import java.util.Map; @Data public class ServiceIntegrationUpdateRequestDefinition { - @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(groups = {Updated.class}) @Size(min = 1, max = 50, groups = {Created.class, Updated.class}) private String id; - @Schema(title = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "插件的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(groups = {Created.class}) @Size(min = 1, max = 50, groups = {Created.class, Updated.class}) private String pluginId; - @Schema(title = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(groups = {Created.class}) @Size(min = 1, max = 50, groups = {Created.class, Updated.class}) private String organizationId; - @Schema(title = "配置内容", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "配置内容", requiredMode = Schema.RequiredMode.REQUIRED) @NotNull(groups = {Created.class}) private Map configuration; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java index dd9e466c9a..d96cfca523 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java @@ -10,18 +10,18 @@ import java.util.List; @EqualsAndHashCode(callSuper = true) @Data public class TestPlanDTO extends TestPlan { - @Schema(title = "测试计划责任人", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(description = "测试计划责任人", requiredMode = Schema.RequiredMode.NOT_REQUIRED) private List principals; - @Schema(title = "测试计划关注人") + @Schema(description = "测试计划关注人") private List followers; - @Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED) private boolean automaticStatusUpdate; - @Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED) private boolean repeatCase; - @Schema(title = "测试计划通过阈值;0-100", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "测试计划通过阈值;0-100", requiredMode = Schema.RequiredMode.REQUIRED) private int passThreshold = 100; }