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.

15 lines
424 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"`
Code string `gorm:"uniqueIndex;size:50" json:"code"`
1 month ago
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等
}