From 92231690b0d9bffe46a3fa2b7941d3cd9789fd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 19 Jul 2024 15:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20swagger=20parameter=20in?= =?UTF-8?q?=20=E5=B1=9E=E6=80=A7=E6=9E=9A=E4=B8=BE=E5=80=BC=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swagger.go b/swagger.go index 5b8e468..0fd20a9 100644 --- a/swagger.go +++ b/swagger.go @@ -41,3 +41,10 @@ const ( const ( SwaggerBaseObjectDefinitionName = "object_map" ) + +const ( + SwaggerParameterInQuery = "query" // 参数位置 : query + SwaggerParameterInHeader = "header" // 参数位置 : header + SwaggerParameterInPath = "path" // 参数位置 : path + SwaggerParameterInCookie = "cookie" // 参数位置 : cookie +)