|
@@ -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()))
|
|
|
}
|
|
|
// preload
|
|
|
+ log.Println("list preload...")
|
|
|
if pg, err = Preload(model, req.Fields(), pg); err != nil {
|
|
|
return req.OutError(rest.ErrorMessage("ErrPreload", err.Error()))
|
|
|
}
|