feat: 文档生成支持配置基础信息

This commit is contained in:
2025-08-23 10:51:34 +08:00
parent a3b0c5f701
commit 03d10208ec
6 changed files with 245 additions and 38 deletions

View File

@ -7,6 +7,8 @@
// Date : 2024-04-23 22:16
package define
import "git.zhangdeman.cn/gateway/api-doc/enums"
// OpenapiDoc openapi文档结构, 文档规范参见 : https://openapi.apifox.cn/
type OpenapiDoc struct {
Openapi string `json:"openapi" required:"true"` // 必选. 这个字符串必须是开放 API 规范版本号提到的符合语义化版本号规范的版本号。openapi字段应该被工具或者客户端用来解释 OpenAPI 文档.
@ -231,8 +233,8 @@ type Contact struct {
// License 开源协议
type License struct {
Name string `json:"name,omitempty"` // 开源协议名
Url string `json:"url,omitempty"` // 开源协议地址
Name enums.License `json:"name,omitempty"` // 开源协议名
Url string `json:"url,omitempty"` // 开源协议地址
}
// ServerItem server 对象结构