Private
Public Access
refactor: ahora los repos se acceden con un singleton en vez de inyecion
de dependencias
This commit is contained in:
1 parent
52fc779abd
commit
141715ee0a
22 files changed
+244
-211
No files matched your search
@@ -28,10 +28,6 @@ type repositorioUsuario struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func NuevoRepositorioUsuario(db *gorm.DB) RepositorioUsuario {
|
||||
return &repositorioUsuario{db: db}
|
||||
}
|
||||
|
||||
func (r *repositorioUsuario) CantidadUsuarios(cant *int64) error {
|
||||
if err := r.db.Model(&models_seguridad.Usuario{}).Count(cant).Error; err!= nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user