优化一波api-doc代码
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
// Package define ...
|
||||
//
|
||||
// Description : define ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2024-04-19 12:12
|
||||
package define
|
||||
|
||||
const (
|
||||
SwaggerVersion2 = "2.0"
|
||||
)
|
||||
|
||||
const (
|
||||
LicenseApache2 = "Apache 2.0" // apache
|
||||
)
|
||||
|
||||
var (
|
||||
// LicenseLinkTable 开源协议内容映射表
|
||||
LicenseLinkTable = map[string]string{
|
||||
LicenseApache2: "http://www.apache.org/licenses/LICENSE-2.0.html",
|
||||
}
|
||||
)
|
@ -87,6 +87,7 @@ type SwaggerPathConfigResponse struct {
|
||||
// Date : 17:01 2024/4/19
|
||||
type SwaggerDefinition struct {
|
||||
Type string `json:"type"` // 类型
|
||||
Format string `json:"format,omitempty"` // 原始数据类型
|
||||
Required []string `json:"required,omitempty"` // 必传参数列表
|
||||
Properties map[string]*SwaggerDefinitionProperty `json:"properties"` // 参数名 => 参数配置
|
||||
}
|
||||
|
Reference in New Issue
Block a user