Private
Public Access
hecha migracion de hooks a un builder de logs
This commit is contained in:
1 parent
5f741b3cc7
commit
38afdcc742
15 files changed
+402
-274
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user