2022-01-18 08:38:03 +00:00
|
|
|
export interface AvailableActionOptions {
|
2022-04-12 04:02:58 +00:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
2022-06-14 14:04:33 +00:00
|
|
|
type?: 'new-data' | 'old-data';
|
2022-01-18 08:38:03 +00:00
|
|
|
displayName?: string;
|
2022-04-12 04:02:58 +00:00
|
|
|
aliases?: string[] | string;
|
2022-01-18 08:38:03 +00:00
|
|
|
resource?: string;
|
2022-04-12 04:02:58 +00:00
|
|
|
// 对新数据进行操作
|
2022-02-26 15:03:58 +00:00
|
|
|
onNewRecord?: boolean;
|
2022-04-12 04:02:58 +00:00
|
|
|
// 允许配置字段
|
2022-02-26 15:03:58 +00:00
|
|
|
allowConfigureFields?: boolean;
|
2022-01-18 08:38:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class AclAvailableAction {
|
2022-02-19 09:14:43 +00:00
|
|
|
constructor(public name: string, public options: AvailableActionOptions) {}
|
2022-01-18 08:38:03 +00:00
|
|
|
}
|