hecha migracion de hooks a un builder de logs

This commit is contained in:
fede committed 2026-11-06 17:51:40 -03:00
1 parent 5f741b3cc7
commit 38afdcc742
15 files changed
+402 -274

No files matched your search

+5
View File
@@ -28,6 +28,11 @@ func NuevoRepositorioLogs(db *gorm.DB) RepositorioLogs {
}
}
// Crear persiste el log directamente, sin auditar la creación del propio log.
func (r *repositorioLogs) Crear(entidad *logs.Log, usuarioID uint) error {
return r.db.Create(entidad).Error
}
func (r *repositorioLogs) ObtenerPorPaginas(pag uint) ([]logs.Log, error) {
var logs []logs.Log
if err := r.db.Limit(10).Offset(int(pag) * 10).Find(&logs).Error; err != nil {