fix(scan): 修复对struct存在重复属性导致的崩溃
新增了在递归scan对象属性的时候发现嵌套属性名称和当前属性名称一致的时候做了友好错误提示
This commit is contained in:
@@ -65,7 +65,7 @@ func (b *Mapper) extractStructData(data ...any) (map[string][]*TableRowMateria,
|
||||
}
|
||||
|
||||
if tableName == "" {
|
||||
return nil, fmt.Errorf("not import TableName() string func for struct type: %s", uniqueTypeName)
|
||||
return nil, fmt.Errorf("not func TableName() string func for struct type: %s", uniqueTypeName)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user