From 8556a14a139c6d51b32047edf8d5019612430ee6 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 14:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0swagger=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E5=80=BC=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/swagger.go b/swagger.go index 9497823..5b8e468 100644 --- a/swagger.go +++ b/swagger.go @@ -8,12 +8,19 @@ package consts const ( - SwaggerDataTypeInteger = "integer" - SwaggerDataTypeNumber = "number" - SwaggerDataTypeString = "string" - SwaggerDataTypeBoolean = "boolean" - SwaggerDataTypeArray = "array" - SwaggerDataTypeObject = "object" + SwaggerDataTypeInteger = "integer" // 32 位有符号 + SwaggerDataTypeLong = "long" // 64 位有符号 + SwaggerDataTypeFloat = "number" + SwaggerDataTypeDouble = "number" + SwaggerDataTypeNumber = "number" + SwaggerDataTypeByte = "string" + SwaggerDataTypeBinary = "binary" // 任意 8 进制序列 + SwaggerDataTypeString = "string" + SwaggerDataTypeDate = "string" + SwaggerDataTypePassword = "password" + SwaggerDataTypeBoolean = "boolean" + SwaggerDataTypeArray = "array" + SwaggerDataTypeObject = "object" ) const (