Backend 后端
后端
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Backend {
"concept": "Backend", // 产品概念
"name": string, // 后端标识
"variables": Array<BackendVariable>, // 后端全局变量列表
}
class BackendTreeNode {
ConceptEnum concept; // 产品概念
String name; // 后端标识
List<BackendVariableTreeNode> variables; // 后端全局变量列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Backend",
"definitions": {
"Backend": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Backend"
},
"name": {
"type": "string"
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/BackendVariable"
}
}
},
"required": [
"concept",
"name",
"variables"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Backend",
"name": null,
"variables": []
}
concept: Backend
name: null
variables: []