Skip to main content
Version: 3.8

ConfigGroup 配置组

1. 结构声明

class ConfigGroup extends BaseNode {
name: string = '';
properties: Array<ConfigProperty>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "ConfigGroup",
"name": "custom",
"properties": [
{
"concept": "ConfigProperty",
"name": "url",
"description": "参数路径",
"values": [
{
"concept": "ConfigPropertyValue",
"env": "dev",
"value": "dev-domain.com"
},
{
"concept": "ConfigPropertyValue",
"env": "online",
"value": "domain.com"
}
],
"isPrivate": false
}
]
}

对应的代码如下:

[编译方法未实现]