Skip to main content
Version: 3.10

Configuration 配置管理

1. 结构声明

class Configuration extends BaseNode {
groups: Array<ConfigGroup>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Configuration",
"groups": [
{
"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
}
]
}
]
}

对应的代码如下:

[编译方法未实现]