From d39136c71cf111869851ecdcb15e468a458c649e 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:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0swagger=20parameter=20style?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swagger.go b/swagger.go index 0fd20a9..95b15a2 100644 --- a/swagger.go +++ b/swagger.go @@ -48,3 +48,8 @@ const ( SwaggerParameterInPath = "path" // 参数位置 : path SwaggerParameterInCookie = "cookie" // 参数位置 : cookie ) + +const ( + SwaggerParameterStyleForm = "form" // query 对应 form; cookie 对应 form + SwaggerParameterStyleSimple = "simple" // path 对应 simple; header 对应 simple; +)