2024-04-25 16:08:06 +08:00
|
|
|
// Package consts ...
|
|
|
|
//
|
|
|
|
// Description : consts ...
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 2024-04-25 16:03
|
|
|
|
package consts
|
|
|
|
|
|
|
|
const (
|
2024-07-19 14:43:07 +08:00
|
|
|
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"
|
2024-04-25 16:08:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
SwaggerDocVersion1 = "1.0"
|
|
|
|
SwaggerDocVersion2 = "2.0"
|
|
|
|
SwaggerDocVersion3 = "3.0"
|
|
|
|
)
|
2024-04-25 16:38:43 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
SwaggerRefKey = "$ref"
|
|
|
|
SwaggerRefValPrefix = "#/definitions/"
|
|
|
|
)
|
2024-04-25 16:53:43 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
SwaggerTypeKey = "type"
|
|
|
|
)
|
2024-04-25 17:16:16 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
SwaggerBaseObjectDefinitionName = "object_map"
|
|
|
|
)
|