From 97c6ccd8e60c14d8d369043a01fad4dddeb47032 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 19 May 2023 16:45:30 +0800 Subject: [PATCH] build: api basic function --- .../metersphere/api/domain/ApiDefinition.java | 22 +++---- .../api/domain/ApiDefinitionBlob.java | 2 +- .../api/domain/ApiDefinitionMock.java | 14 ++--- .../api/domain/ApiDefinitionSwagger.java | 2 +- .../api/domain/ApiDefinitionTemplate.java | 61 ------------------- ...tionEnv.java => ApiEnvironmentConfig.java} | 6 +- .../metersphere/api/domain/ApiLoadTest.java | 46 -------------- .../io/metersphere/api/domain/ApiReport.java | 6 +- .../metersphere/api/domain/ApiReportBlob.java | 2 +- .../metersphere/api/domain/ApiScenario.java | 2 +- .../api/domain/ApiScenarioBlob.java | 2 +- ...ioEnv.java => ApiScenarioEnvironment.java} | 14 ++--- .../api/domain/ApiScenarioReport.java | 6 +- .../api/domain/ApiScenarioReportDetail.java | 2 +- .../metersphere/api/domain/ApiTestCase.java | 2 +- .../api/domain/ApiTestCaseBlob.java | 2 +- .../main/resources/i18n/api_en_US.properties | 18 +++--- .../main/resources/i18n/api_zh_CN.properties | 18 +++--- .../main/resources/i18n/api_zh_TW.properties | 18 +++--- .../ApiDefinitionEnvController.java | 13 ---- .../ApiDefinitionTemplateController.java | 13 ---- .../ApiEnvironmentConfigController.java | 13 ++++ ... => ApiScenarioEnvironmentController.java} | 6 +- .../mapper/ApiDefinitionTemplateMapper.java | 14 ----- ...r.java => ApiEnvironmentConfigMapper.java} | 4 +- ...java => ApiScenarioEnvironmentMapper.java} | 4 +- .../api/service/ApiDefinitionEnvService.java | 13 ---- .../service/ApiDefinitionTemplateService.java | 15 ----- .../service/ApiEnvironmentConfigService.java | 13 ++++ .../api/service/ApiScenarioEnvService.java | 15 ----- .../ApiScenarioEnvironmentService.java | 15 +++++ 31 files changed, 117 insertions(+), 266 deletions(-) delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionTemplate.java rename backend/framework/domain/src/main/java/io/metersphere/api/domain/{ApiDefinitionEnv.java => ApiEnvironmentConfig.java} (91%) delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiLoadTest.java rename backend/framework/domain/src/main/java/io/metersphere/api/domain/{ApiScenarioEnv.java => ApiScenarioEnvironment.java} (64%) delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionEnvController.java delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionTemplateController.java create mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiEnvironmentConfigController.java rename backend/services/api-test/src/main/java/io/metersphere/api/controller/{ApiScenarioEnvController.java => ApiScenarioEnvironmentController.java} (51%) delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionTemplateMapper.java rename backend/services/api-test/src/main/java/io/metersphere/api/mapper/{ApiDefinitionEnvMapper.java => ApiEnvironmentConfigMapper.java} (60%) rename backend/services/api-test/src/main/java/io/metersphere/api/mapper/{ApiScenarioEnvMapper.java => ApiScenarioEnvironmentMapper.java} (58%) delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionEnvService.java delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionTemplateService.java create mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/service/ApiEnvironmentConfigService.java delete mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvService.java create mode 100644 backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvironmentService.java 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 2dd32826c4..9e7d437616 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 @@ -27,22 +27,22 @@ public class ApiDefinition implements Serializable { @ApiModelProperty(name = "创建时间", required = true, dataType = "Long") private Long createTime; - @Size(min = 1, max = 100, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{api_definition.create_user.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition.create_user.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 100]") + @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]") private String createUser; @ApiModelProperty(name = "修改时间", required = true, dataType = "Long") private Long updateTime; - @Size(min = 1, max = 64, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{api_definition.update_user.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition.update_user.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "修改人", required = true, allowableValues = "range[1, 50]") private String updateUser; - @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "删除人", required = false, allowableValues = "range[1, 50]") private String deleteUser; @@ -59,12 +59,12 @@ public class ApiDefinition implements Serializable { @ApiModelProperty(name = "接口名称", required = true, allowableValues = "range[1, 255]") private String name; - @Size(min = 1, max = 64, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{api_definition.method.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition.method.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "接口类型", required = true, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "接口类型", required = true, allowableValues = "range[1, 50]") private String method; - @Size(min = 1, max = 255, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 20, message = "{api_definition.protocol.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition.protocol.not_blank}", groups = {Created.class}) @ApiModelProperty(name = "接口协议", required = true, allowableValues = "range[1, 255]") private String protocol; @@ -77,9 +77,9 @@ public class ApiDefinition implements Serializable { @ApiModelProperty(name = "模块全路径-用于导入处理", required = false, allowableValues = "range[1, 1000]") private String modulePath; - @Size(min = 1, max = 64, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{api_definition.status.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition.status.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "接口状态/进行中/已完成", required = true, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "接口状态/进行中/已完成", required = true, allowableValues = "range[1, 50]") private String status; @@ -91,7 +91,7 @@ public class ApiDefinition implements Serializable { private Integer num; - @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 1000]") + @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]") private String tags; 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 b5db3e0e31..e897d94993 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 @@ -14,7 +14,7 @@ import java.io.Serializable; @ApiModel(value = "接口定义详情内容") @TableName("api_definition_blob") @Data -public class ApiDefinitionBlob implements Serializable { +public class ApiDefinitionBlob extends ApiDefinition implements Serializable { private static final long serialVersionUID = 1L; @TableId 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 e49e799932..0bfbe88baa 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 @@ -24,10 +24,10 @@ public class ApiDefinitionMock implements Serializable { @ApiModelProperty(name = "mock pk", required = true, allowableValues = "range[1, 50]") private String id; - @ApiModelProperty(name = "接口路径", required = false, allowableValues = "range[1, 1000]") + @ApiModelProperty(name = "接口路径", required = false, allowableValues = "range[1, 500]") private String apiPath; - @ApiModelProperty(name = "接口类型", required = false, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "接口类型", required = false, allowableValues = "range[1, 50]") private String apiMethod; @ApiModelProperty(name = "创建时间", required = true, dataType = "Long") @@ -36,9 +36,9 @@ public class ApiDefinitionMock implements Serializable { @ApiModelProperty(name = "修改时间", required = true, dataType = "Long") private Long updateTime; - @Size(min = 1, max = 64, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{api_definition_mock.create_user.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition_mock.create_user.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 64]") + @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]") private String createUser; @Size(min = 1, max = 200, message = "{api_definition_mock.name.length_range}", groups = {Created.class, Updated.class}) @@ -46,11 +46,11 @@ public class ApiDefinitionMock implements Serializable { @ApiModelProperty(name = "mock 名称", required = true, allowableValues = "range[1, 200]") private String name; - @ApiModelProperty(name = "自定义标签", required = false, allowableValues = "range[1, 1000]") + @ApiModelProperty(name = "自定义标签", required = false, allowableValues = "range[1, 500]") private String tags; - @ApiModelProperty(name = "状态", required = false, allowableValues = "range[1, 10]") - private String status; + @ApiModelProperty(name = "启用/禁用", required = false, dataType = "boolean") + private boolean enable; @Size(min = 1, max = 50, message = "{api_definition_mock.expect_num.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_definition_mock.expect_num.not_blank}", groups = {Created.class}) 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 d76cad6a02..5fb8030337 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 @@ -21,7 +21,7 @@ public class ApiDefinitionSwagger implements Serializable { @TableId @NotBlank(message = "{api_definition_swagger.id.not_blank}", groups = {Updated.class}) - @ApiModelProperty(name = "主键", required = true, allowableValues = "range[1, 120]") + @ApiModelProperty(name = "主键", required = true, allowableValues = "range[1, 50]") private String id; @Size(min = 1, max = 500, message = "{api_definition_swagger.swagger_url.length_range}", groups = {Created.class, Updated.class}) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionTemplate.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionTemplate.java deleted file mode 100644 index c7c0a179b0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionTemplate.java +++ /dev/null @@ -1,61 +0,0 @@ - -package io.metersphere.api.domain; - -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.metersphere.validation.groups.Created; -import io.metersphere.validation.groups.Updated; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; - -@ApiModel(value = "API模版表") -@TableName("api_definition_template") -@Data -public class ApiDefinitionTemplate implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId - @NotBlank(message = "{api_definition_template.id.not_blank}", groups = {Updated.class}) - @ApiModelProperty(name = "模版主键", required = true, allowableValues = "range[1, 50]") - private String id; - - @Size(min = 1, max = 100, message = "{api_definition_template.name.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_definition_template.name.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "API模版名称", required = true, allowableValues = "range[1, 100]") - private String name; - - @Size(min = 1, max = 1, message = "{api_definition_template.system.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_definition_template.system.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "是否是系统模版", required = true, allowableValues = "range[1, 1]") - private Boolean system; - - @Size(min = 1, max = 1, message = "{api_definition_template.global.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_definition_template.global.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "是否是公共模版", required = true, allowableValues = "range[1, 1]") - private Boolean global; - - @ApiModelProperty(name = "创建时间", required = true, dataType = "Long") - private Long createTime; - - @ApiModelProperty(name = "更新时间", required = true, dataType = "Long") - private Long updateTime; - - @Size(min = 1, max = 50, message = "{api_definition_template.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_definition_template.create_user.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "创建人", required = true, allowableValues = "range[1, 50]") - private String createUser; - - @Size(min = 1, max = 50, message = "{api_definition_template.project_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_definition_template.project_id.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]") - private String projectId; - - @ApiModelProperty(name = "API模版描述", required = false, allowableValues = "range[1, 500]") - private String description; - -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionEnv.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java similarity index 91% rename from backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionEnv.java rename to backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java index d60f5e0308..3963c0c585 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionEnv.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiEnvironmentConfig.java @@ -13,10 +13,10 @@ import lombok.Data; import java.io.Serializable; -@ApiModel(value = "接口定义环境") -@TableName("api_definition_env") +@ApiModel(value = "接口定义公共部分环境") +@TableName("api_environment_config") @Data -public class ApiDefinitionEnv implements Serializable { +public class ApiEnvironmentConfig implements Serializable { private static final long serialVersionUID = 1L; @TableId diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiLoadTest.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiLoadTest.java deleted file mode 100644 index 29ff82be4c..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiLoadTest.java +++ /dev/null @@ -1,46 +0,0 @@ - -package io.metersphere.api.domain; - -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import io.metersphere.validation.groups.Created; -import io.metersphere.validation.groups.Updated; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import jakarta.validation.constraints.NotBlank; -import jakarta.validation.constraints.Size; -import lombok.Data; - -import java.io.Serializable; - -@ApiModel(value = "关联场景测试和性能测试") -@TableName("api_load_test") -@Data -public class ApiLoadTest implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId - @NotBlank(message = "{api_load_test.id.not_blank}", groups = {Updated.class}) - @ApiModelProperty(name = "ID", required = true, allowableValues = "range[1, 50]") - private String id; - - @Size(min = 1, max = 50, message = "{api_load_test.resource_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_load_test.resource_id.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "接口用例fk/场景用例fk", required = true, allowableValues = "range[1, 50]") - private String resourceId; - - @Size(min = 1, max = 50, message = "{api_load_test.load_test_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_load_test.load_test_id.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "性能测试用例fk", required = true, allowableValues = "range[1, 50]") - private String loadTestId; - - @ApiModelProperty(name = "环境fk", required = false, allowableValues = "range[1, 50]") - private String environmentId; - - @Size(min = 1, max = 10, message = "{api_load_test.type.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_load_test.type.not_blank}", groups = {Created.class}) - @ApiModelProperty(name = "资源类型/CASE/SCENARIO", required = true, allowableValues = "range[1, 10]") - private String type; - - -} \ No newline at end of file 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 f738cda427..d75464382b 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 @@ -73,10 +73,10 @@ public class ApiReport implements Serializable { @ApiModelProperty(name = "执行模块/API/CASE/API_PLAN", required = true, allowableValues = "range[1, 20]") private String runMode; - @Size(min = 1, max = 50, message = "{api_report.resource_pool.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_report.resource_pool.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class}) + @NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class}) @ApiModelProperty(name = "资源池", required = true, allowableValues = "range[1, 50]") - private String resourcePool; + private String poolId; @Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class}) @NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class}) 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 2f0872e1b8..a5053da904 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 @@ -14,7 +14,7 @@ import java.io.Serializable; @ApiModel(value = "API/CASE执行结果详情") @TableName("api_report_blob") @Data -public class ApiReportBlob implements Serializable { +public class ApiReportBlob extends ApiReport implements Serializable { private static final long serialVersionUID = 1L; @TableId 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 b896a945f1..65a296080e 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 @@ -122,7 +122,7 @@ public class ApiScenario implements Serializable { @ApiModelProperty(name = "模块全路径/用于导入模块创建", required = false, allowableValues = "range[1, 1000]") private String modulePath; - @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 1000]") + @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]") private String tags; } \ No newline at end of file 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 aee22cd86e..470a6da832 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 @@ -14,7 +14,7 @@ import java.io.Serializable; @ApiModel(value = "场景步骤详情") @TableName("api_scenario_blob") @Data -public class ApiScenarioBlob implements Serializable { +public class ApiScenarioBlob extends ApiScenario implements Serializable { private static final long serialVersionUID = 1L; @TableId diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnv.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java similarity index 64% rename from backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnv.java rename to backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java index f78b90bcf7..5ce9b462a1 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnv.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioEnvironment.java @@ -14,23 +14,23 @@ import lombok.Data; import java.io.Serializable; @ApiModel(value = "场景环境") -@TableName("api_scenario_env") +@TableName("api_scenario_environment") @Data -public class ApiScenarioEnv implements Serializable { +public class ApiScenarioEnvironment implements Serializable { private static final long serialVersionUID = 1L; @TableId - @NotBlank(message = "{api_scenario_env.id.not_blank}", groups = {Updated.class}) + @NotBlank(message = "{api_scenario_environment.id.not_blank}", groups = {Updated.class}) @ApiModelProperty(name = "场景环境pk", required = true, allowableValues = "range[1, 50]") private String id; - @Size(min = 1, max = 50, message = "{api_scenario_env.api_scenario_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_scenario_env.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}) + @NotBlank(message = "{api_scenario_environment.api_scenario_id.not_blank}", groups = {Created.class}) @ApiModelProperty(name = "场景fk", required = true, allowableValues = "range[1, 50]") private String apiScenarioId; - @Size(min = 1, max = 50, message = "{api_scenario_env.project_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_scenario_env.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}) + @NotBlank(message = "{api_scenario_environment.project_id.not_blank}", groups = {Created.class}) @ApiModelProperty(name = "项目fk", required = true, allowableValues = "range[1, 50]") private String projectId; 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 8a05fa164e..355bf2e619 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 @@ -74,10 +74,10 @@ public class ApiScenarioReport implements Serializable { @ApiModelProperty(name = "执行模式", required = true, allowableValues = "range[1, 20]") private String runMode; - @Size(min = 1, max = 50, message = "{api_scenario_report.resource_pool.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{api_scenario_report.resource_pool.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{api_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class}) + @NotBlank(message = "{api_scenario_report.pool_id.not_blank}", groups = {Created.class}) @ApiModelProperty(name = "资源池", required = true, allowableValues = "range[1, 50]") - private String resourcePool; + private String poolId; @ApiModelProperty(name = "版本fk", required = false, allowableValues = "range[1, 50]") 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 bef91c8413..7d82d82465 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 @@ -16,7 +16,7 @@ import java.io.Serializable; @ApiModel(value = "场景报告步骤结果") @TableName("api_scenario_report_detail") @Data -public class ApiScenarioReportDetail implements Serializable { +public class ApiScenarioReportDetail extends ApiScenarioReport implements Serializable { private static final long serialVersionUID = 1L; @TableId 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 552e920dd0..81072df80e 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 @@ -64,7 +64,7 @@ public class ApiTestCase implements Serializable { @ApiModelProperty(name = "接口用例编号id", required = false, dataType = "Integer") private Integer num; - @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 1000]") + @ApiModelProperty(name = "标签", required = false, allowableValues = "range[1, 500]") private String tags; @ApiModelProperty(name = "用例状态", required = false, allowableValues = "range[1, 20]") 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 647803bd54..341fcd77d0 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 @@ -14,7 +14,7 @@ import java.io.Serializable; @ApiModel(value = "接口用例详情") @TableName("api_test_case_blob") @Data -public class ApiTestCaseBlob implements Serializable { +public class ApiTestCaseBlob extends ApiTestCase implements Serializable { private static final long serialVersionUID = 1L; @TableId diff --git a/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties index 6c0696c671..7f6e0e7e49 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_en_US.properties @@ -75,8 +75,8 @@ api_scenario_report.trigger_mode.length_range=Trigger method length must be betw api_scenario_report.trigger_mode.not_blank=Trigger method cannot be empty api_scenario_report.run_mode.length_range=Execution pattern length must be between 1-20 api_scenario_report.run_mode.not_blank=Execution mode cannot be empty -api_scenario_report.resource_pool.length_range=Resource pool length must be between 1-50 -api_scenario_report.resource_pool.not_blank=Resource pool cannot be empty +api_scenario_report.pool_id.length_range=Resource pool length must be between 1-50 +api_scenario_report.pool_id.not_blank=Resource pool cannot be empty api_scenario_report.integrated.length_range=Whether it is an integrated report length must be between 1-1 api_scenario_report.integrated.not_blank=Whether it is an integrated report cannot be empty api_scenario_report.project_id.length_range=Item fk length must be between 1-50 @@ -84,11 +84,11 @@ api_scenario_report.project_id.not_blank=Item fk cannot be empty api_scenario_report.scenario_id.length_range=Scene fk length must be between 1-50 api_scenario_report.scenario_id.not_blank=Scene fk cannot be empty #module:ApiScenarioEnv -api_scenario_env.id.not_blank=The scene environment pk cannot be empty -api_scenario_env.api_scenario_id.length_range=Scene fk length must be between 1-50 -api_scenario_env.api_scenario_id.not_blank=Scene fk cannot be empty -api_scenario_env.project_id.length_range=Item fk length must be between 1-50 -api_scenario_env.project_id.not_blank=Item fk cannot be empty +api_scenario_environment.id.not_blank=The scene environment pk cannot be empty +api_scenario_environment.api_scenario_id.length_range=Scene fk length must be between 1-50 +api_scenario_environment.api_scenario_id.not_blank=Scene fk cannot be empty +api_scenario_environment.project_id.length_range=Item fk length must be between 1-50 +api_scenario_environment.project_id.not_blank=Item fk cannot be empty #module:ApiDefinition api_definition.id.not_blank=Interface pk cannot be empty api_definition.create_user.length_range=Creator length must be between 1-100 @@ -197,8 +197,8 @@ api_report.status.length_range=Result status length must be between 1-50 api_report.status.not_blank=Result status cannot be empty api_report.run_mode.length_range=Execution module/API/CASE/API_PLAN length must be between 1-20 api_report.run_mode.not_blank=Execution module/API/CASE/API_PLAN cannot be empty -api_report.resource_pool.length_range=Resource pool length must be between 1-50 -api_report.resource_pool.not_blank=Resource pool cannot be empty +api_report.pool_id.length_range=Resource pool length must be between 1-50 +api_report.pool_id.not_blank=Resource pool cannot be empty api_report.trigger_mode.length_range=Trigger mode/manual/batch/timed task/JENKINS length must be between 1-50 api_report.trigger_mode.not_blank=Trigger mode/manual/batch/timed task/JENKINS cannot be empty api_report.project_id.length_range=Item fk length must be between 1-50 diff --git a/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties index db8dd2b79f..77d7b19c96 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_zh_CN.properties @@ -75,8 +75,8 @@ api_scenario_report.trigger_mode.length_range=触发方式长度必须在1-20之 api_scenario_report.trigger_mode.not_blank=触发方式不能为空 api_scenario_report.run_mode.length_range=执行模式长度必须在1-20之间 api_scenario_report.run_mode.not_blank=执行模式不能为空 -api_scenario_report.resource_pool.length_range=资源池长度必须在1-50之间 -api_scenario_report.resource_pool.not_blank=资源池不能为空 +api_scenario_report.pool_id.length_range=资源池长度必须在1-50之间 +api_scenario_report.pool_id.not_blank=资源池不能为空 api_scenario_report.integrated.length_range=是否是集成报告长度必须在1-1之间 api_scenario_report.integrated.not_blank=是否是集成报告不能为空 api_scenario_report.project_id.length_range=项目ID长度必须在1-50之间 @@ -84,11 +84,11 @@ api_scenario_report.project_id.not_blank=项目ID不能为空 api_scenario_report.scenario_id.length_range=场景ID长度必须在1-50之间 api_scenario_report.scenario_id.not_blank=场景ID不能为空 #module:ApiScenarioEnv -api_scenario_env.id.not_blank=场景环境pk不能为空 -api_scenario_env.api_scenario_id.length_range=场景ID长度必须在1-50之间 -api_scenario_env.api_scenario_id.not_blank=场景ID不能为空 -api_scenario_env.project_id.length_range=项目ID长度必须在1-50之间 -api_scenario_env.project_id.not_blank=项目ID不能为空 +api_scenario_environment.id.not_blank=场景环境pk不能为空 +api_scenario_environment.api_scenario_id.length_range=场景ID长度必须在1-50之间 +api_scenario_environment.api_scenario_id.not_blank=场景ID不能为空 +api_scenario_environment.project_id.length_range=项目ID长度必须在1-50之间 +api_scenario_environment.project_id.not_blank=项目ID不能为空 #module:ApiDefinition api_definition.id.not_blank=接口pk不能为空 api_definition.create_user.length_range=创建人长度必须在1-100之间 @@ -197,8 +197,8 @@ api_report.status.length_range=结果状态长度必须在1-50之间 api_report.status.not_blank=结果状态不能为空 api_report.run_mode.length_range=执行模块/API/CASE/API_PLAN长度必须在1-20之间 api_report.run_mode.not_blank=执行模块/API/CASE/API_PLAN不能为空 -api_report.resource_pool.length_range=资源池长度必须在1-50之间 -api_report.resource_pool.not_blank=资源池不能为空 +api_report.pool_id.length_range=资源池长度必须在1-50之间 +api_report.pool_id.not_blank=资源池不能为空 api_report.trigger_mode.length_range=触发模式/手动/批量/定时任务/JENKINS长度必须在1-50之间 api_report.trigger_mode.not_blank=触发模式/手动/批量/定时任务/JENKINS不能为空 api_report.project_id.length_range=项目ID长度必须在1-50之间 diff --git a/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties index 78b389a8c9..287569d92e 100644 --- a/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/api_zh_TW.properties @@ -75,8 +75,8 @@ api_scenario_report.trigger_mode.length_range=觸發方式長度必須在1-20之 api_scenario_report.trigger_mode.not_blank=觸發方式不能為空 api_scenario_report.run_mode.length_range=執行模式長度必須在1-20之間 api_scenario_report.run_mode.not_blank=執行模式不能為空 -api_scenario_report.resource_pool.length_range=資源池長度必須在1-50之間 -api_scenario_report.resource_pool.not_blank=資源池不能為空 +api_scenario_report.pool_id.length_range=資源池長度必須在1-50之間 +api_scenario_report.pool_id.not_blank=資源池不能為空 api_scenario_report.integrated.length_range=是否是集成報告長度必須在1-1之間 api_scenario_report.integrated.not_blank=是否是集成報告不能為空 api_scenario_report.project_id.length_range=項目ID長度必須在1-50之間 @@ -84,11 +84,11 @@ api_scenario_report.project_id.not_blank=項目ID不能為空 api_scenario_report.scenario_id.length_range=場景ID長度必須在1-50之間 api_scenario_report.scenario_id.not_blank=場景ID不能為空 #module:ApiScenarioEnv -api_scenario_env.id.not_blank=場景環境pk不能為空 -api_scenario_env.api_scenario_id.length_range=場景ID長度必須在1-50之間 -api_scenario_env.api_scenario_id.not_blank=場景ID不能為空 -api_scenario_env.project_id.length_range=項目ID長度必須在1-50之間 -api_scenario_env.project_id.not_blank=項目ID不能為空 +api_scenario_environment.id.not_blank=場景環境pk不能為空 +api_scenario_environment.api_scenario_id.length_range=場景ID長度必須在1-50之間 +api_scenario_environment.api_scenario_id.not_blank=場景ID不能為空 +api_scenario_environment.project_id.length_range=項目ID長度必須在1-50之間 +api_scenario_environment.project_id.not_blank=項目ID不能為空 #module:ApiDefinition api_definition.id.not_blank=接口pk不能為空 api_definition.create_user.length_range=創建人長度必須在1-100之間 @@ -197,8 +197,8 @@ api_report.status.length_range=結果狀態長度必須在1-50之間 api_report.status.not_blank=結果狀態不能為空 api_report.run_mode.length_range=執行模塊/API/CASE/API_PLAN長度必須在1-20之間 api_report.run_mode.not_blank=執行模塊/API/CASE/API_PLAN不能為空 -api_report.resource_pool.length_range=資源池長度必須在1-50之間 -api_report.resource_pool.not_blank=資源池不能為空 +api_report.pool_id.length_range=資源池長度必須在1-50之間 +api_report.pool_id.not_blank=資源池不能為空 api_report.trigger_mode.length_range=觸發模式/手動/批量/定時任務/JENKINS長度必須在1-50之間 api_report.trigger_mode.not_blank=觸發模式/手動/批量/定時任務/JENKINS不能為空 api_report.project_id.length_range=項目ID長度必須在1-50之間 diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionEnvController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionEnvController.java deleted file mode 100644 index 9d65c87b28..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionEnvController.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.metersphere.api.controller; - -import io.metersphere.api.service.ApiDefinitionEnvService; -import jakarta.annotation.Resource; -import org.springframework.web.bind.annotation.*; - -@RestController -@RequestMapping("/api/definition/env") -public class ApiDefinitionEnvController { - @Resource - private ApiDefinitionEnvService apiDefinitionEnvService; - -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionTemplateController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionTemplateController.java deleted file mode 100644 index 0d1f74f765..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiDefinitionTemplateController.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.metersphere.api.controller; - -import io.metersphere.api.service.ApiDefinitionTemplateService; -import jakarta.annotation.Resource; -import org.springframework.web.bind.annotation.*; - -@RestController -@RequestMapping("/api/definition/template") -public class ApiDefinitionTemplateController { - @Resource - private ApiDefinitionTemplateService apiDefinitionTemplateService; - -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiEnvironmentConfigController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiEnvironmentConfigController.java new file mode 100644 index 0000000000..eeb4a9d2f2 --- /dev/null +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiEnvironmentConfigController.java @@ -0,0 +1,13 @@ +package io.metersphere.api.controller; + +import io.metersphere.api.service.ApiEnvironmentConfigService; +import jakarta.annotation.Resource; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/api/environment/config") +public class ApiEnvironmentConfigController { + @Resource + private ApiEnvironmentConfigService apiEnvironmentConfigService; + +} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvironmentController.java similarity index 51% rename from backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvController.java rename to backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvironmentController.java index f9629177be..302cef1d4f 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/ApiScenarioEnvironmentController.java @@ -1,13 +1,13 @@ package io.metersphere.api.controller; -import io.metersphere.api.service.ApiScenarioEnvService; +import io.metersphere.api.service.ApiScenarioEnvironmentService; import jakarta.annotation.Resource; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/api/scenario/env") -public class ApiScenarioEnvController { +public class ApiScenarioEnvironmentController { @Resource - private ApiScenarioEnvService apiScenarioEnvService; + private ApiScenarioEnvironmentService apiScenarioEnvironmentService; } \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionTemplateMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionTemplateMapper.java deleted file mode 100644 index ffd0374ed2..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionTemplateMapper.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.metersphere.api.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Mapper; -import io.metersphere.api.domain.ApiDefinitionTemplate; - -/** - * API模版表数据库访问层 - * - * @date : 2023-5-15 - */ -@Mapper -public interface ApiDefinitionTemplateMapper extends BaseMapper { -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionEnvMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiEnvironmentConfigMapper.java similarity index 60% rename from backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionEnvMapper.java rename to backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiEnvironmentConfigMapper.java index 8fe3b7eaac..4ce5ff6ccb 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiDefinitionEnvMapper.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiEnvironmentConfigMapper.java @@ -2,7 +2,7 @@ package io.metersphere.api.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; -import io.metersphere.api.domain.ApiDefinitionEnv; +import io.metersphere.api.domain.ApiEnvironmentConfig; /** * 接口定义环境数据库访问层 @@ -10,5 +10,5 @@ import io.metersphere.api.domain.ApiDefinitionEnv; * @date : 2023-5-15 */ @Mapper -public interface ApiDefinitionEnvMapper extends BaseMapper { +public interface ApiEnvironmentConfigMapper extends BaseMapper { } \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvironmentMapper.java similarity index 58% rename from backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvMapper.java rename to backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvironmentMapper.java index a64031a9c1..092fecd0e6 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvMapper.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ApiScenarioEnvironmentMapper.java @@ -2,7 +2,7 @@ package io.metersphere.api.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; -import io.metersphere.api.domain.ApiScenarioEnv; +import io.metersphere.api.domain.ApiScenarioEnvironment; /** * 场景环境数据库访问层 @@ -10,5 +10,5 @@ import io.metersphere.api.domain.ApiScenarioEnv; * @date : 2023-5-15 */ @Mapper -public interface ApiScenarioEnvMapper extends BaseMapper { +public interface ApiScenarioEnvironmentMapper extends BaseMapper { } \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionEnvService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionEnvService.java deleted file mode 100644 index f9b8749781..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionEnvService.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.metersphere.api.service; - -import org.springframework.stereotype.Service; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import io.metersphere.api.domain.ApiDefinitionEnv; -import io.metersphere.api.mapper.ApiDefinitionEnvMapper; - /** - * 接口定义环境服务实现类 - * @date : 2023-5-15 - */ -@Service -public class ApiDefinitionEnvService extends ServiceImpl { -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionTemplateService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionTemplateService.java deleted file mode 100644 index 3a5bff240f..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiDefinitionTemplateService.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.metersphere.api.service; - -import org.springframework.stereotype.Service; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import io.metersphere.api.domain.ApiDefinitionTemplate; -import io.metersphere.api.mapper.ApiDefinitionTemplateMapper; - - /** - * API模版表服务实现类 - * - * @date : 2023-5-15 - */ -@Service -public class ApiDefinitionTemplateService extends ServiceImpl { -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiEnvironmentConfigService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiEnvironmentConfigService.java new file mode 100644 index 0000000000..464bd42e22 --- /dev/null +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiEnvironmentConfigService.java @@ -0,0 +1,13 @@ +package io.metersphere.api.service; + +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import io.metersphere.api.domain.ApiEnvironmentConfig; +import io.metersphere.api.mapper.ApiEnvironmentConfigMapper; + /** + * 接口定义环境服务实现类 + * @date : 2023-5-15 + */ +@Service +public class ApiEnvironmentConfigService extends ServiceImpl { +} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvService.java deleted file mode 100644 index 0412d10b28..0000000000 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvService.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.metersphere.api.service; - -import org.springframework.stereotype.Service; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import io.metersphere.api.domain.ApiScenarioEnv; -import io.metersphere.api.mapper.ApiScenarioEnvMapper; - - /** - * 场景环境服务实现类 - * - * @date : 2023-5-15 - */ -@Service -public class ApiScenarioEnvService extends ServiceImpl { -} \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvironmentService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvironmentService.java new file mode 100644 index 0000000000..32d8216b63 --- /dev/null +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioEnvironmentService.java @@ -0,0 +1,15 @@ +package io.metersphere.api.service; + +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import io.metersphere.api.domain.ApiScenarioEnvironment; +import io.metersphere.api.mapper.ApiScenarioEnvironmentMapper; + + /** + * 场景环境服务实现类 + * + * @date : 2023-5-15 + */ +@Service +public class ApiScenarioEnvironmentService extends ServiceImpl { +} \ No newline at end of file