规划swagger文档逻辑

This commit is contained in:
2024-12-24 10:34:28 +08:00
parent fb9e22ac66
commit d069ead94e
6 changed files with 66 additions and 29 deletions

View File

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