From 4dac67ad054a0ef00f7e5d667b6971f7c2f1a434 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 23 Oct 2024 16:23:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20m?= =?UTF-8?q?ock=E5=88=97=E8=A1=A8=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E8=B7=AF=E5=BE=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047894 --user=宋昌昌 【接口测试】定义-MOCK-高级搜索-筛选字段缺少「接口路径」表头字段 https://www.tapd.cn/55049933/s/1596605 --- .../metersphere/system/domain/UserViewCondition.java | 12 ++++++++---- .../api/mapper/ExtApiDefinitionMockMapper.xml | 7 +++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserViewCondition.java b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserViewCondition.java index b6ba1274e5..a6722decd6 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserViewCondition.java +++ b/backend/framework/domain/src/main/java/io/metersphere/system/domain/UserViewCondition.java @@ -1,12 +1,16 @@ 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.NotNull; +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 UserViewCondition implements Serializable { @@ -28,7 +32,7 @@ public class UserViewCondition implements Serializable { @Schema(description = "查询的期望值") private String value; - @Schema(description = "期望值的数据类型:STRING,INT,FLOAT,ARRAY") + @Schema(description = "期望值的数据类型:STRING,INT,FLOAT,ARRAY, BOOLEAN") private String valueType; @Schema(description = "是否为自定义字段", requiredMode = Schema.RequiredMode.REQUIRED) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml index ef6018bbba..ca11c099f4 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiDefinitionMockMapper.xml @@ -220,6 +220,13 @@ + + + + + + +