fix
This commit is contained in:
@ -51,6 +51,7 @@ type SwaggerPathConfigParameterSchema struct {
|
||||
type SwaggerPathConfigResponse struct {
|
||||
Description string `json:"description"` // 返回值描述
|
||||
Schema *SwaggerPathConfigResponseSchema `json:"schema"` // 返回值结构
|
||||
Ref string `json:"$ref"` // 引用的数据
|
||||
}
|
||||
|
||||
type SwaggerPathConfigResponseSchema struct {
|
||||
@ -107,6 +108,7 @@ type Swagger struct {
|
||||
Info Info `json:"info"` // 文档描述信息
|
||||
Paths map[string]map[string]*SwaggerPathConfig `json:"paths"` // 接口列表 : 接口 => 请求方法 => 请求配置
|
||||
Definitions map[string]*SwaggerDefinition `json:"definitions"` // 数据定义
|
||||
Responses map[string]*SwaggerPathConfigResponse `json:"responses"` // 响应结构列表
|
||||
}
|
||||
|
||||
// SwaggerInput ...
|
||||
|
Reference in New Issue
Block a user