2025-11-24 18:44:06 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"platform/web/core"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// AdminRole 管理员角色表
|
|
|
|
|
type AdminRole struct {
|
|
|
|
|
core.Model
|
2025-12-15 14:48:30 +08:00
|
|
|
Name string `json:"name" gorm:"column:name"` // 角色名称
|
|
|
|
|
Description *string `json:"description,omitempty" gorm:"column:description"` // 角色描述
|
|
|
|
|
Active bool `json:"active" gorm:"column:active"` // 是否激活
|
|
|
|
|
Sort int32 `json:"sort" gorm:"column:sort"` // 排序
|
2026-03-18 18:09:32 +08:00
|
|
|
|
|
|
|
|
Permissions []*Permission `json:"permissions" gorm:"many2many:link_admin_role_permission"`
|
2025-11-24 18:44:06 +08:00
|
|
|
}
|