ViewBlock 页面代码块
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface ViewBlock {
"concept": "ViewBlock", // 产品概念
"description": string, // 描述
"title": string, // 标题
"code": string, // 代码
}
class ViewBlockTreeNode {
ConceptEnum concept; // 产品概念
String description; // 描述
String title; // 标题
String code; // 代码
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ViewBlock",
"definitions": {
"ViewBlock": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "ViewBlock"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"concept",
"description",
"title",
"code"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "ViewBlock",
"description": null,
"title": null,
"code": null
}
concept: ViewBlock
description: null
title: null
code: null