1
0
mirror of https://github.com/beego/bee.git synced 2024-12-26 06:20:51 +00:00

Merge branch 'master' into develop

This commit is contained in:
astaxie 2016-08-18 23:21:26 +08:00
commit 25561408dc

View File

@ -413,7 +413,7 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
pp := strings.Split(p[2], ".")
typ := pp[len(pp)-1]
if len(pp) >= 2 {
cmpath, m, mod, realTypes := getModel(typ)
cmpath, m, mod, realTypes := getModel(p[2])
para.Schema = &swagger.Schema{
Ref: "#/definitions/" + m,
}