Private
Public Access
feat: implementado un patron de repository
This commit is contained in:
1 parent
03df1c5264
commit
785bc7db6b
18 files changed
+505
-160
No files matched your search
@@ -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}
|
||||
}
|
||||
Reference in new issue
Block a user