Options
All
  • Public
  • Public/Protected
  • All
Menu

权限控制器

Hierarchy

Implements

Index

Constructors

constructor

Properties

whiteBoard

whiteBoard: WhiteBoard

Static controllerName

controllerName: string = ...

Accessors

auths

  • get auths(): string[]
  • 权限列表,,未注册权限控制器时返回一个空数组

    Returns string[]

Methods

excludeAuths

haveAuths

  • haveAuths(auth?: string | string[]): boolean
  • 是否具有某个权限或权限集合,不传或传空数组时返回 false,未注册权限控制器时永远返回 true

    api

    Parameters

    • Optional auth: string | string[]

      权限或权限集合

    Returns boolean

includeAuths

resetAuths