UNPKG

@delon-fork/acl

Version:

A simple role-based access control.

23 lines (22 loc) 594 B
export interface ACLType { /** * 角色 */ role?: string[]; /** * 权限点 */ ability?: number[] | string[]; /** * 校验模式,默认:`oneOf` * - `allOf` 表示必须满足所有角色或权限点数组算有效 * - `oneOf` 表示只须满足角色或权限点数组中的一项算有效 */ mode?: 'allOf' | 'oneOf'; /** * 是否取反,即结果为 `true` 时表示未授权 */ except?: boolean; [key: string]: any; } export declare type ACLCanType = number | number[] | string | string[] | ACLType;