|
@@ -129,6 +129,7 @@ func (s *List) ResultOut(pg *gorm.DB, model any, req rest.IRequestIn) rest.IRequ
|
|
return req.OutError(rest.ErrorMessage("ErrFileds", err.Error()))
|
|
return req.OutError(rest.ErrorMessage("ErrFileds", err.Error()))
|
|
}
|
|
}
|
|
// preload
|
|
// preload
|
|
|
|
+ log.Println("list preload...")
|
|
if pg, err = Preload(model, req.Fields(), pg); err != nil {
|
|
if pg, err = Preload(model, req.Fields(), pg); err != nil {
|
|
return req.OutError(rest.ErrorMessage("ErrPreload", err.Error()))
|
|
return req.OutError(rest.ErrorMessage("ErrPreload", err.Error()))
|
|
}
|
|
}
|