From b6f4a651276343b1660ff7c6ad06769b49fa0300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 15 Oct 2024 11:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=95=B0=E6=8D=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E6=94=AF=E6=8C=81=20:=20STATIC=20/=20CUSTOM=5FCONFIG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/request.go b/request.go index 9f69f7c..9fcba37 100644 --- a/request.go +++ b/request.go @@ -8,11 +8,13 @@ package consts const ( - RequestDataLocationHeader = "HEADER" // header - RequestDataLocationCookie = "COOKIE" // cookie - RequestDataLocationBody = "BODY" // body - RequestDataLocationQuery = "QUERY" // query - RequestDataLocationUriPath = "URI_PATH" // uri路由一部分 + RequestDataLocationHeader = "HEADER" // header + RequestDataLocationCookie = "COOKIE" // cookie + RequestDataLocationBody = "BODY" // body + RequestDataLocationQuery = "QUERY" // query + RequestDataLocationUriPath = "URI_PATH" // uri路由一部分 + RequestDataLocationStatic = "STATIC" // 静态配置的参数 + RequestDataLocationCustomConfig = "CUSTOM_CONFIG" // 针对接口的一些自定义配置规则 ) const ( @@ -34,6 +36,8 @@ var ( {Value: RequestDataLocationBody, Description: "请求body"}, {Value: RequestDataLocationQuery, Description: "请求query"}, {Value: RequestDataLocationUriPath, Description: "请求uri_path"}, + {Value: RequestDataLocationStatic, Description: "静态参数配置"}, + {Value: RequestDataLocationCustomConfig, Description: "自定义接口处理规则"}, } ResponseDataLocationList = []DataLocationDesc{ {Value: ResponseDataLocationHeader, Description: "响应header"},