From f17dd21cbd198e0ce1edf55454f2c9dfa9b834de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Wed, 26 Feb 2025 21:15:48 +0800 Subject: [PATCH] =?UTF-8?q?request=20data=20location=20=E6=94=AF=E6=8C=81a?= =?UTF-8?q?ny?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/request.go b/request.go index bc3e6fe..ab55710 100644 --- a/request.go +++ b/request.go @@ -62,6 +62,7 @@ var ( RequestDataLocationQuery RequestDataLocation = "QUERY" // query RequestDataLocationUriPath RequestDataLocation = "URI_PATH" // uri路由一部分 RequestDataLocationStatic RequestDataLocation = "STATIC" // 静态配置的参数 + RequestDataLocationAny RequestDataLocation = "ANY" // 任意位置,要求服务支持从各种位置自动读取 RequestDataLocationCustomConfig RequestDataLocation = "CUSTOM_CONFIG" // 针对接口的一些自定义配置规则 ) @@ -90,6 +91,7 @@ var ( {Value: RequestDataLocationBody, Description: "请求body"}, {Value: RequestDataLocationQuery, Description: "请求query"}, {Value: RequestDataLocationUriPath, Description: "请求uri_path"}, + {Value: RequestDataLocationAny, Description: "任意位置,要求服务本身支持"}, {Value: RequestDataLocationStatic, Description: "静态参数配置"}, {Value: RequestDataLocationCustomConfig, Description: "自定义接口处理规则"}, }