mirror of
https://github.com/beego/bee.git
synced 2024-11-14 06:40:54 +00:00
Merge 36d86d924a
into b3ea5dda0e
This commit is contained in:
commit
a56fd67e93
@ -465,11 +465,11 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
|
||||
HTTPMethod = "GET"
|
||||
}
|
||||
} else if strings.HasPrefix(t, "@Title") {
|
||||
opts.OperationID = controllerName + "." + strings.TrimSpace(t[len("@Title"):])
|
||||
title := strings.TrimSpace(t[len("@Title"):])
|
||||
opts.OperationID = controllerName + "." + title
|
||||
opts.Summary = title
|
||||
} else if strings.HasPrefix(t, "@Description") {
|
||||
opts.Description = strings.TrimSpace(t[len("@Description"):])
|
||||
} else if strings.HasPrefix(t, "@Summary") {
|
||||
opts.Summary = strings.TrimSpace(t[len("@Summary"):])
|
||||
} else if strings.HasPrefix(t, "@Success") {
|
||||
ss := strings.TrimSpace(t[len("@Success"):])
|
||||
rs := swagger.Response{}
|
||||
|
Loading…
Reference in New Issue
Block a user