This commit is contained in:
aozhiwei 2024-08-06 13:43:45 +08:00
parent 09ade85a32
commit a739b0223e

View File

@ -197,7 +197,7 @@ func UnmarshalModel[T any](ds *DataSet, m *T) error {
}
fieldVal := ds.GetByName(gormFieldName)
if gormIsJson {
q5.DecodeJson(fieldVal, mVal.Field(i))
q5.DecodeJson(fieldVal, mVal.Field(i).Addr().Interface())
} else {
switch field.Type.Kind() {
case reflect.Bool: