mirror of
https://github.com/beego/bee.git
synced 2024-11-24 23:30:55 +00:00
revert:修复了自定义map结构的显示
This commit is contained in:
parent
c0d29b0d2a
commit
d496d26a1c
@ -1266,7 +1266,7 @@ func typeAnalyser(f *ast.Field) (isSlice bool, realType, swaggerType string) {
|
|||||||
if isBasicType(val) {
|
if isBasicType(val) {
|
||||||
return false, astTypeMap, basicTypes[val]
|
return false, astTypeMap, basicTypes[val]
|
||||||
}
|
}
|
||||||
return false, fmt.Sprintf("map[%v][%v]", t.Key, t.Value), astTypeObject
|
return false, val, astTypeObject
|
||||||
case *ast.InterfaceType:
|
case *ast.InterfaceType:
|
||||||
return false, "interface", astTypeObject
|
return false, "interface", astTypeObject
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user