增加全局安全类参数解析
This commit is contained in:
@ -15,10 +15,11 @@ import "regexp"
|
||||
//
|
||||
// Date : 10:30 2024/12/24
|
||||
type DocParseResult struct {
|
||||
Domain string `json:"domain"` // 域名
|
||||
Title string `json:"title"` // 标题
|
||||
Description string `json:"description"` // 描述
|
||||
UriList []*UriBaseConfig `json:"uri_list"` // 接口列表
|
||||
Domain string `json:"domain"` // 域名
|
||||
Title string `json:"title"` // 标题
|
||||
Description string `json:"description"` // 描述
|
||||
UriList []*UriBaseConfig `json:"uri_list"` // 接口列表
|
||||
GlobalSecurityParamList []*ParamConfig `json:"global_security_param_list"` // 全局安全类参数配置
|
||||
}
|
||||
|
||||
// UriBaseConfig 添加接口时的基础配置
|
||||
|
@ -101,14 +101,15 @@ type SwaggerDefinitionPropertyItem struct {
|
||||
//
|
||||
// Date : 16:12 2024/4/19
|
||||
type Swagger struct {
|
||||
Schemes []string `json:"schemes"`
|
||||
Swagger string `json:"swagger"` // swagger版本 - 2.0
|
||||
Host string `json:"host"` // 服务域名
|
||||
BasePath string `json:"basePath"` // 基础path
|
||||
Info Info `json:"info"` // 文档描述信息
|
||||
Paths map[string]map[string]*SwaggerPathConfig `json:"paths"` // 接口列表 : 接口 => 请求方法 => 请求配置
|
||||
Definitions map[string]*SwaggerDefinition `json:"definitions"` // 数据定义
|
||||
Responses map[string]*SwaggerPathConfigResponse `json:"responses"` // 响应结构列表
|
||||
Schemes []string `json:"schemes"`
|
||||
Swagger string `json:"swagger"` // swagger版本 - 2.0
|
||||
Host string `json:"host"` // 服务域名
|
||||
BasePath string `json:"basePath"` // 基础path
|
||||
Info Info `json:"info"` // 文档描述信息
|
||||
Paths map[string]map[string]*SwaggerPathConfig `json:"paths"` // 接口列表 : 接口 => 请求方法 => 请求配置
|
||||
Definitions map[string]*SwaggerDefinition `json:"definitions"` // 数据定义
|
||||
Responses map[string]*SwaggerPathConfigResponse `json:"responses"` // 响应结构列表
|
||||
SecurityDefinitions map[string]*SwaggerPathConfigParameter `json:"securityDefinitions"` // 安全选项
|
||||
}
|
||||
|
||||
// SwaggerInput ...
|
||||
|
Reference in New Issue
Block a user