Namespace 命名空间
目前只用于存放标准库。后期用于用户自定义文件夹。 在模块下,与模块结构类似,可以任意嵌套,但不能导入导出。
1. 结构声明
- TS Declaration
- JSON Schema
class Namespace extends BaseNode {
originConcept: string;
name: string = '';
title: string;
description: string;
children: Array<Namespace>;
processes: Array<Process>;
processV2s: Array<ProcessV2>;
structures: Array<Structure>;
enums: Array<Enum>;
logics: Array<Logic>;
functions: Array<Function>;
interfaces: Array<AbstractInterface>;
views: Array<View>;
frontendVariables: Array<Variable>;
variables: Array<Variable>;
viewComponents: Array<ViewComponentDeclaration>;
processComponents: Array<ProcessComponent>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"originConcept": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/Namespace"
}
},
"processes": {
"type": "array",
"items": {
"$ref": "#/definitions/Process"
}
},
"processV2s": {
"type": "array",
"items": {
"$ref": "#/definitions/ProcessV2"
}
},
"structures": {
"type": "array",
"items": {
"$ref": "#/definitions/Structure"
}
},
"enums": {
"type": "array",
"items": {
"$ref": "#/definitions/Enum"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"functions": {
"type": "array",
"items": {
"$ref": "#/definitions/Function"
}
},
"interfaces": {
"type": "array",
"items": {
"$ref": "#/definitions/AbstractInterface"
}
},
"views": {
"type": "array",
"items": {
"$ref": "#/definitions/View"
}
},
"frontendVariables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"viewComponents": {
"type": "array",
"items": {
"$ref": "#/definitions/ViewComponentDeclaration"
}
},
"processComponents": {
"type": "array",
"items": {
"$ref": "#/definitions/ProcessComponent"
}
}
},
"required": [
"originConcept",
"name",
"title",
"description",
"children",
"processes",
"processV2s",
"structures",
"enums",
"logics",
"functions",
"interfaces",
"views",
"frontendVariables",
"variables",
"viewComponents",
"processComponents"
],
"additionalProperties": false
}