feat: implementado un patron de repository

This commit is contained in:
fede committed 2026-06-10 17:50:57 -03:00
1 parent 03df1c5264
commit 785bc7db6b
18 files changed
+505 -160

No files matched your search

+8
View File
@@ -19,3 +19,11 @@ type Permiso struct {
func (Permiso) TableName() string {
return "permissions"
}
func (p *Permiso) Buscar(id uint) bool {
return p.ID == id
}
func (p *Permiso) ListarPermisos() []Permiso {
return []Permiso{*p}
}