feat: 文档生成支持配置基础信息
This commit is contained in:
@ -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 对象结构
|
||||
|
Reference in New Issue
Block a user