niki/entity/admin_access_control.go

16 lines
272 B
Go
Raw Normal View History

package entity
type AdminAccessControl struct {
ID uint
ActorID uint
ActorType AdminActorType
Permission AdminPermission
}
type AdminActorType string
const (
AdminRoleActorType = AdminActorType("role")
AdminAdminActorType = AdminActorType("admin")
)