Skip to main content
Version: 3.6

Role 角色

1. 结构声明

class Role extends BaseNode {
name: string = '';
uuid: uuid = createUUID();
description: string;
createdTime?: string;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Role",
"name": "DEV-AdminRole",
"uuid": "e21f5120e0334cd9ac8e0181df831bfe",
"description": "可视化编辑器上添加的角色"
}

对应的代码如下:

@(
uuid = "e21f5120e0334cd9ac8e0181df831bfe",
description = "可视化编辑器上添加的角色",
)
role \`DEV-AdminRole\`