Theme 主题
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Theme {
"concept": "Theme", // 产品概念
"title": string, // 主题标题
"variableMap": { [name: string]: string }, // 主题变量 Map
}
class ThemeTreeNode {
ConceptEnum concept; // 产品概念
String title; // 主题标题
Object variableMap; // 主题变量 Map
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Theme",
"definitions": {
"Theme": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Theme"
},
"title": {
"type": "string"
},
"variableMap": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"concept",
"title",
"variableMap"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Theme",
"title": "默认主题样式",
"variableMap": {}
}
concept: Theme
title: 默认主题样式
variableMap: {}