Private
Public Access
fix: cambiados nombres de tablas y añadido requerimiento de implementar la interfaz
This commit is contained in:
1 parent
cd817dcc7b
commit
59dd842d33
3 files changed
+15
-11
No files matched your search
@@ -14,10 +14,12 @@ type Permiso struct {
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
||||
|
||||
IPermisosComponent
|
||||
}
|
||||
|
||||
func (Permiso) TableName() string {
|
||||
return "permissions"
|
||||
return "permisos"
|
||||
}
|
||||
|
||||
func (p *Permiso) Buscar(id uint) bool {
|
||||
|
||||
Reference in new issue
Block a user