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
424 B
14 lines
424 B
package model |
|
|
|
import ( |
|
"gofaster/internal/shared/model" |
|
) |
|
|
|
type Permission struct { |
|
model.BaseModel |
|
Name string `gorm:"uniqueIndex;size:50" json:"name"` |
|
Code string `gorm:"uniqueIndex;size:50" json:"code"` |
|
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等 |
|
}
|
|
|