feat: 修复分组、标签、描述不现实问题
This commit is contained in:
@@ -237,7 +237,7 @@ func (g *Generate) initApiConfig(apiMeta define.UriConfig) (*openapi3.Operation,
|
|||||||
Origin: nil,
|
Origin: nil,
|
||||||
Ref: "",
|
Ref: "",
|
||||||
Summary: apiMeta.Desc,
|
Summary: apiMeta.Desc,
|
||||||
Description: "",
|
Description: apiMeta.Desc,
|
||||||
Connect: nil,
|
Connect: nil,
|
||||||
Delete: nil,
|
Delete: nil,
|
||||||
Get: nil,
|
Get: nil,
|
||||||
@@ -254,6 +254,10 @@ func (g *Generate) initApiConfig(apiMeta define.UriConfig) (*openapi3.Operation,
|
|||||||
newOperate := openapi3.NewOperation()
|
newOperate := openapi3.NewOperation()
|
||||||
newOperate.Parameters = make(openapi3.Parameters, 0)
|
newOperate.Parameters = make(openapi3.Parameters, 0)
|
||||||
newOperate.Responses = openapi3.NewResponses()
|
newOperate.Responses = openapi3.NewResponses()
|
||||||
|
newOperate.Summary = apiMeta.Desc
|
||||||
|
newOperate.Description = apiMeta.Desc
|
||||||
|
newOperate.Tags = apiMeta.TagList
|
||||||
|
newOperate.OperationID = fmt.Sprintf("%v_%v", apiMeta.RequestMethod, apiMeta.Path)
|
||||||
isRead := false
|
isRead := false
|
||||||
switch apiMeta.RequestMethod {
|
switch apiMeta.RequestMethod {
|
||||||
case http.MethodGet:
|
case http.MethodGet:
|
||||||
|
|||||||
Reference in New Issue
Block a user