增加openapi文档基础的信息定义 + parameter基础定义

This commit is contained in:
2024-07-19 15:59:20 +08:00
parent 723d0e477c
commit 458d33cba5
3 changed files with 152 additions and 35 deletions

View File

@ -7,40 +7,6 @@
// Date : 2024-04-19 12:07
package define
// Contact 联系人信息
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:08 2024/4/19
type Contact struct {
Name string `json:"name"` // 姓名
Url string `json:"url"` // 主页地址
Email string `json:"email"` // 邮箱
}
// License 开源协议
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:09 2024/4/19
type License struct {
Name string `json:"name"` // 开源协议名
Url string `json:"url"` // 开源协议地址
}
// Info 信息
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:10 2024/4/19
type Info struct {
Description string `json:"description"` // 文档描述
Title string `json:"title"` // 文档标题
Contact Contact `json:"contact"` // 联系方式
License License `json:"license"` // 开源协议
Version string `json:"version"` // 文档版本
}
// SwaggerPathConfig ...
//
// Author : zhangdeman001@ke.com<张德满>