@lxlib/acl
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.
24 lines (23 loc) • 654 B
TypeScript
import { NzSafeAny } from 'ng-zorro-antd/core/types';
export interface ACLType {
/**
* 角色
*/
role?: string[];
/**
* 权限点
*/
ability?: number[] | string[];
/**
* 校验模式,默认:`oneOf`
* - `allOf` 表示必须满足所有角色或权限点数组算有效
* - `oneOf` 表示只须满足角色或权限点数组中的一项算有效
*/
mode?: 'allOf' | 'oneOf';
/**
* 是否取反,即结果为 `true` 时表示未授权
*/
except?: boolean;
[key: string]: NzSafeAny;
}
export declare type ACLCanType = number | number[] | string | string[] | ACLType;