|
@@ -236,9 +236,10 @@ func parseMap(from, to reflect.Value, fieldName string) IErrorArgs {
|
|
func Serialize(from json.Map, to any) IErrorArgs {
|
|
func Serialize(from json.Map, to any) IErrorArgs {
|
|
log.Println("serialize", to)
|
|
log.Println("serialize", to)
|
|
elemTo := reflect.ValueOf(to).Elem()
|
|
elemTo := reflect.ValueOf(to).Elem()
|
|
- return parseType(
|
|
|
|
|
|
+ res := parseType(
|
|
reflect.ValueOf(&from),
|
|
reflect.ValueOf(&from),
|
|
elemTo,
|
|
elemTo,
|
|
"",
|
|
"",
|
|
)
|
|
)
|
|
|
|
+ log.Println("sres", res)
|
|
}
|
|
}
|