1
This commit is contained in:
parent
09ade85a32
commit
a739b0223e
@ -197,7 +197,7 @@ func UnmarshalModel[T any](ds *DataSet, m *T) error {
|
|||||||
}
|
}
|
||||||
fieldVal := ds.GetByName(gormFieldName)
|
fieldVal := ds.GetByName(gormFieldName)
|
||||||
if gormIsJson {
|
if gormIsJson {
|
||||||
q5.DecodeJson(fieldVal, mVal.Field(i))
|
q5.DecodeJson(fieldVal, mVal.Field(i).Addr().Interface())
|
||||||
} else {
|
} else {
|
||||||
switch field.Type.Kind() {
|
switch field.Type.Kind() {
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user