From c101cbfe4cadfac02a7182e9be3733467c92e115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 25 Apr 2024 16:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0swagger=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=B8=B8=E9=87=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 swagger.go diff --git a/swagger.go b/swagger.go new file mode 100644 index 0000000..145b184 --- /dev/null +++ b/swagger.go @@ -0,0 +1,23 @@ +// Package consts ... +// +// Description : consts ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2024-04-25 16:03 +package consts + +const ( + SwaggerDataTypeInteger = "integer" + SwaggerDataTypeNumber = "number" + SwaggerDataTypeString = "string" + SwaggerDataTypeBoolean = "boolean" + SwaggerDataTypeArray = "array" + SwaggerDataTypeObject = "object" +) + +const ( + SwaggerDocVersion1 = "1.0" + SwaggerDocVersion2 = "2.0" + SwaggerDocVersion3 = "3.0" +)