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 (