Browse Source

preload fix

0x4a52466c696e74 1 month ago
parent
commit
b0d8843acb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rest_gorm/request_list.go

+ 1 - 0
rest_gorm/request_list.go

@@ -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()))
 	}