优化一波api-doc代码

This commit is contained in:
2024-04-25 16:34:22 +08:00
parent f04648f3e9
commit 181f963688
6 changed files with 55 additions and 66 deletions

View File

@ -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"` // 参数名 => 参数配置
}