You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
363 B
14 lines
363 B
1 month ago
|
package model
|
||
|
|
||
1 month ago
|
import (
|
||
|
"gofaster/internal/shared/model"
|
||
|
)
|
||
|
|
||
1 month ago
|
type Permission struct {
|
||
1 month ago
|
model.BaseModel
|
||
1 month ago
|
Name string `gorm:"uniqueIndex;size:50" json:"name"`
|
||
|
Description string `gorm:"size:200" json:"description"`
|
||
|
Resource string `gorm:"size:100" json:"resource"`
|
||
|
Action string `gorm:"size:50" json:"action"` // create, read, update, delete等
|
||
|
}
|