增加uri路径参数解析
This commit is contained in:
@ -7,15 +7,18 @@
|
||||
// Date : 2024-08-14 15:20
|
||||
package define
|
||||
|
||||
import "regexp"
|
||||
|
||||
// DocParseResult 文档解析结果
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:30 2024/12/24
|
||||
type DocParseResult struct {
|
||||
Domain string `json:"domain"` // 域名
|
||||
Description string `json:"description"` // 描述
|
||||
UriList []string `json:"uri_list"` // 接口列表
|
||||
Domain string `json:"domain"` // 域名
|
||||
Title string `json:"title"` // 标题
|
||||
Description string `json:"description"` // 描述
|
||||
UriList []*UriBaseConfig `json:"uri_list"` // 接口列表
|
||||
}
|
||||
|
||||
// UriBaseConfig 添加接口时的基础配置
|
||||
@ -59,3 +62,7 @@ type ResultConfig struct {
|
||||
Title string `json:"title"` // 返回值标题
|
||||
Description string `json:"description"` // 返回值描述
|
||||
}
|
||||
|
||||
var (
|
||||
UriParamRegexp = regexp.MustCompile("({.*?})") // uri路径中参数提取的正则表达式
|
||||
)
|
||||
|
Reference in New Issue
Block a user