重新规划添加接口的方法签名

This commit is contained in:
2024-08-19 16:32:51 +08:00
parent 6bfcab7625
commit 1ef5dad7a9
2 changed files with 29 additions and 8 deletions

View File

@ -20,3 +20,29 @@ type UriBaseConfig struct {
Summary string `json:"summary"` // 接口摘要描述
Description string `json:"description"` // 接口详细描述
}
// ParamConfig 参数配置
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:23 2024/8/19
type ParamConfig struct {
Location string `json:"location"` // 参数位置
Path string `json:"path"` // 参数路径
Type string `json:"type"` // 参数类型
Title string `json:"title"` // 参数标题
Description string `json:"description"` // 参数描述
}
// ResultConfig 返回值配置
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:23 2024/8/19
type ResultConfig struct {
Location string `json:"location"` // 返回值位置
Path string `json:"path"` // 返回值路径
Type string `json:"type"` // 返回值类型
Title string `json:"title"` // 返回值标题
Description string `json:"description"` // 返回值描述
}