forked from goffee/cup
authority system start
This commit is contained in:
parent
e5dee10221
commit
cac2986b59
6 changed files with 476 additions and 0 deletions
16
models/permission.go
Normal file
16
models/permission.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright (c) 2025 Zeni Kim <zenik@smarteching.com>
|
||||
// Use of this source code is governed by MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package models
|
||||
|
||||
type Permission struct {
|
||||
BaseModel
|
||||
Name string
|
||||
Slug string
|
||||
}
|
||||
|
||||
// TableName sets the table name
|
||||
func (Permission) TableName() string {
|
||||
return "permissions"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue