规划swagger文档逻辑
This commit is contained in:
@ -42,8 +42,16 @@ type SwaggerPathConfigParameter struct {
|
||||
//
|
||||
// Date : 16:57 2024/4/19
|
||||
type SwaggerPathConfigResponse struct {
|
||||
Description string `json:"description"` // 返回值描述
|
||||
Schema map[string]string `json:"schema"` // 返回值结构
|
||||
Description string `json:"description"` // 返回值描述
|
||||
Schema *SwaggerPathConfigResponseSchema `json:"schema"` // 返回值结构
|
||||
}
|
||||
|
||||
type SwaggerPathConfigResponseSchema struct {
|
||||
Type string `json:"type"` // 数据类型
|
||||
Items struct {
|
||||
Ref string `json:"$ref"` // type = array 时, 引用的每一项数据结构
|
||||
} `json:"items"`
|
||||
Ref string `json:"$ref"` // 引用的数据结构
|
||||
}
|
||||
|
||||
// SwaggerDefinition ...
|
||||
|
Reference in New Issue
Block a user