This commit is contained in:
2024-12-24 17:49:20 +08:00
parent 4bae125445
commit 3722798c42
3 changed files with 50 additions and 2 deletions

View File

@ -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 ...