增加swagger文档相关常量定义

This commit is contained in:
白茶清欢 2024-04-25 16:08:06 +08:00
parent fc4470a2ce
commit c101cbfe4c

23
swagger.go Normal file
View File

@ -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"
)