|
@@ -2,6 +2,7 @@ package rest
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
"reflect"
|
|
|
"strings"
|
|
|
|
|
@@ -233,6 +234,7 @@ func parseMap(from, to reflect.Value, fieldName string) IErrorArgs {
|
|
|
|
|
|
// Serialize преобразует словарь from в объект произвольного типа
|
|
|
func Serialize(from json.Map, to any) IErrorArgs {
|
|
|
+ log.Println("serialize", to)
|
|
|
elemTo := reflect.ValueOf(to).Elem()
|
|
|
return parseType(
|
|
|
reflect.ValueOf(&from),
|