mirror of
https://github.com/beego/bee.git
synced 2024-11-24 18:30:53 +00:00
support interface type
This commit is contained in:
parent
53b0b68d00
commit
2c673b7d1e
@ -1260,6 +1260,8 @@ func typeAnalyser(f *ast.Field) (isSlice bool, realType, swaggerType string) {
|
|||||||
return false, astTypeMap, basicTypes[val]
|
return false, astTypeMap, basicTypes[val]
|
||||||
}
|
}
|
||||||
return false, val, astTypeObject
|
return false, val, astTypeObject
|
||||||
|
case *ast.InterfaceType:
|
||||||
|
return false, "interface", astTypeObject
|
||||||
}
|
}
|
||||||
basicType := fmt.Sprint(f.Type)
|
basicType := fmt.Sprint(f.Type)
|
||||||
if object, isStdLibObject := stdlibObject[basicType]; isStdLibObject {
|
if object, isStdLibObject := stdlibObject[basicType]; isStdLibObject {
|
||||||
|
Loading…
Reference in New Issue
Block a user