2025-02-11 22:10:49 +08:00
|
|
|
|
// Package define ...
|
|
|
|
|
//
|
|
|
|
|
// Description : define ...
|
|
|
|
|
//
|
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
|
//
|
|
|
|
|
// Date : 2025-02-11 21:51
|
|
|
|
|
package define
|
|
|
|
|
|
|
|
|
|
const (
|
2025-02-18 23:02:46 +08:00
|
|
|
|
TagJson = "json"
|
|
|
|
|
TagXml = "xml"
|
|
|
|
|
TagYaml = "yaml"
|
|
|
|
|
TagYml = "yml"
|
|
|
|
|
TagForm = "form"
|
|
|
|
|
TagBinding = "binding"
|
|
|
|
|
TagValidate = "validate"
|
|
|
|
|
TagErr = "err"
|
|
|
|
|
TagMsg = "msg"
|
|
|
|
|
TagDc = "dc"
|
|
|
|
|
TagDesc = "desc"
|
|
|
|
|
TagDescription = "description"
|
|
|
|
|
TagD = "d"
|
|
|
|
|
TagDefault = "default"
|
|
|
|
|
TagDeprecated = "deprecated"
|
|
|
|
|
TagSummary = "summary"
|
|
|
|
|
TagPath = "path" // 接口的请求路径
|
|
|
|
|
TagMethod = "method" // 接口的请求方法
|
|
|
|
|
TagUriTag = "tag" // 接口的tag
|
|
|
|
|
TagOutputStrict = "output_strict" // 接口数据是否为严格模式 : 严格模式, 响应数据必须是结构体/map,非严格模式返回任意值
|
|
|
|
|
TagErrMsg = "err" // 验证失败错误信息tag
|
2025-02-20 16:22:23 +08:00
|
|
|
|
TagExample = "example" // 示例值
|
|
|
|
|
TagEg = "eg" // 示例值
|
2025-02-18 23:02:46 +08:00
|
|
|
|
TagContentType = "content_type"
|
|
|
|
|
TagOutputContentType = "output_content_type"
|
|
|
|
|
TagNameOmitempty = "omitempty"
|
|
|
|
|
TagNameEnumDescription = "enum-desc" // 枚举值描述: enum1:enum1-desc||enum2:enum2-desc
|
2025-02-11 22:10:49 +08:00
|
|
|
|
)
|