[feat] ResFieldByAnys 类型移除

This commit is contained in:
2023-07-30 17:04:09 +08:00
parent 5ad727fb3a
commit c7cfd1e6f7
2 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func (this ResField) ToStructField(tags ...string) reflect.StructField {
typ = reflect.TypeOf(true)
case contracts.ResDataType_Json:
if this.Default != "" && this.Default[0:1] == "[" {
typ = reflect.TypeOf(res_type.ResFieldByAnys{})
typ = reflect.TypeOf([]any{})
} else {
typ = reflect.TypeOf(map[string]any{})
}