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.
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Permission struct {
|
|
|
|
ID uint `gorm:"primarykey" json:"id"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
Name string `gorm:"size:100;not null" json:"name"` // 权限名称
|
|
|
|
Description string `gorm:"size:200" json:"description"` // 权限描述
|
|
|
|
AuthResourceID *uint `gorm:"index" json:"auth_resource_id"` // 认证资源ID
|
|
|
|
MenuID *uint `gorm:"index" json:"menu_id"` // 菜单ID
|
|
|
|
MenuGroupID *uint `gorm:"index" json:"menu_group_id"` // 菜单分组ID
|
|
|
|
}
|