优化结构体定义
This commit is contained in:
@ -15,6 +15,8 @@ package define
|
||||
type SwaggerPathConfig struct {
|
||||
Description string `json:"description"` // 接口描述
|
||||
Consumes []string `json:"consumes"` // 请求方式, application/json等
|
||||
Produces []string `json:"produces"` // 请求方式, application/json等
|
||||
OperationID string `json:"operationId"` // 操作ID
|
||||
Tags []string `json:"tags"` // 接口标签
|
||||
Summary string `json:"summary"` // 接口摘要
|
||||
Parameters []*SwaggerPathConfigParameter `json:"parameters"` // 参数列表
|
||||
@ -76,6 +78,8 @@ type SwaggerDefinitionProperty struct {
|
||||
Type string `json:"type"` // 类型
|
||||
Items map[string]string `json:"items,omitempty"` // 引用类型中的引用(数组)
|
||||
AllOf []map[string]string `json:"allOf,omitempty"` // 引用类型中的引用(对象)
|
||||
XGoName string `json:"x-go-name"` // go字段名称
|
||||
XGoPackage string `json:"x-go-package"` // go 包路径
|
||||
}
|
||||
|
||||
// Swagger 文档整体结构定义
|
||||
|
Reference in New Issue
Block a user