mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
feature/goctl-api-swagger (#4780)
This commit is contained in:
32
tools/goctl/api/swagger/const.go
Normal file
32
tools/goctl/api/swagger/const.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package swagger
|
||||
|
||||
const (
|
||||
tagHeader = "header"
|
||||
tagPath = "path"
|
||||
tagForm = "form"
|
||||
tagJson = "json"
|
||||
defFlag = "default="
|
||||
enumFlag = "options="
|
||||
rangeFlag = "range="
|
||||
exampleFlag = "example="
|
||||
|
||||
paramsInHeader = "header"
|
||||
paramsInPath = "path"
|
||||
paramsInQuery = "query"
|
||||
paramsInBody = "body"
|
||||
paramsInForm = "formData"
|
||||
|
||||
swaggerTypeInteger = "integer"
|
||||
swaggerTypeNumber = "number"
|
||||
swaggerTypeString = "string"
|
||||
swaggerTypeBoolean = "boolean"
|
||||
swaggerTypeArray = "array"
|
||||
swaggerTypeObject = "object"
|
||||
|
||||
swaggerVersion = "2.0"
|
||||
applicationJson = "application/json"
|
||||
applicationForm = "application/x-www-form-urlencoded"
|
||||
schemeHttps = "https"
|
||||
defaultHost = "127.0.0.1"
|
||||
defaultBasePath = "/"
|
||||
)
|
||||
Reference in New Issue
Block a user