refactor: 简化 normalizeInputValue 类型匹配逻辑
由于 R 接口继承 valuex.Accessor,无需单独处理 R 类型 使用 valuex.Accessor 统一处理即可,减少冗余代码
This commit is contained in:
parent
baad0cadfc
commit
c62b07a119
@ -48,10 +48,6 @@ type R interface {
|
||||
|
||||
// Keys 返回当前映射或结构体的所有键名
|
||||
Keys() []string
|
||||
|
||||
// Raw 返回底层的 reflect.Value
|
||||
// 用于需要直接操作反射值的场景
|
||||
Raw() reflect.Value
|
||||
}
|
||||
|
||||
// New 创建一个新的 R 实例
|
||||
|
||||
Loading…
Reference in New Issue
Block a user