JavaLogic Java 扩展逻辑
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface JavaLogic {
"concept": "JavaLogic", // 产品概念
"packageName": string, // packageName
"className": string, // className
"code": string, // 代码内容
}
class JavaLogicTreeNode {
ConceptEnum concept; // 产品概念
String packageName; // packageName
String className; // className
String code; // 代码内容
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/JavaLogic",
"definitions": {
"JavaLogic": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "JavaLogic"
},
"packageName": {
"type": "string"
},
"className": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"concept",
"packageName",
"className",
"code"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "JavaLogic",
"packageName": null,
"className": null,
"code": null
}
concept: JavaLogic
packageName: null
className: null
code: null