找到反射获取数组每一项数据类型的方法
This commit is contained in:
@ -197,10 +197,10 @@ func (g *Generate) AddComponentsSchema(pkgPath string, inputType reflect.Type) {
|
||||
return
|
||||
}
|
||||
// 数组
|
||||
if inputType.Kind() == reflect.Slice {
|
||||
if inputType.Kind() == reflect.Slice || inputType.Kind() == reflect.Array {
|
||||
inputType.Comparable()
|
||||
}
|
||||
// 结构体
|
||||
if inputType.Kind() == reflect.Struct {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user