From e8295cd86bdafd7ae481acc7215d0f744576838b Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 23 Apr 2024 17:41:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=83=E5=B0=94=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/dto/request/http/KeyValueParamType.java | 8 ++++---- frontend/src/enums/apiEnum.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/KeyValueParamType.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/KeyValueParamType.java index bd4dbd3697..d5a7cd32b8 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/KeyValueParamType.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/KeyValueParamType.java @@ -11,22 +11,22 @@ import io.metersphere.sdk.constants.ValueEnum; public enum KeyValueParamType implements ValueEnum { /** * 字符串类型 - * 默认 application/text */ STRING("string"), /** * 整型 - * 默认 application/text */ INTEGER("integer"), /** * 数值型 - * 默认 application/text */ NUMBER("number"), + /** + * 布尔类型 + */ + BOOLEAN("boolean"), /** * 数组 - * 默认 application/text */ ARRAY("array"); diff --git a/frontend/src/enums/apiEnum.ts b/frontend/src/enums/apiEnum.ts index 6e11f33577..cf8d3ad8db 100644 --- a/frontend/src/enums/apiEnum.ts +++ b/frontend/src/enums/apiEnum.ts @@ -102,6 +102,7 @@ export enum RequestParamsType { STRING = 'string', INTEGER = 'integer', NUMBER = 'number', + BOOLEAN = 'boolean', ARRAY = 'array', JSON = 'json', FILE = 'file',