CallLogic 调用逻辑
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface CallLogic {
"concept": "CallLogic", // 产品概念
"label": string, // 调用逻辑标题
"calleeNamespace": string, // calleeNamespace
"calleeName": string, // calleeName
"shortcut": boolean, // shortcut
"handleError": boolean, // handleError
"typeArguments": Array<TypeAnnotation>, // 类型参数
"arguments": Array<Argument>, // 实际参数
}
class CallLogicTreeNode {
ConceptEnum concept; // 产品概念
String label; // 调用逻辑标题
String calleeNamespace; // calleeNamespace
String calleeName; // calleeName
boolean shortcut; // shortcut
boolean handleError; // handleError
List<TypeAnnotationTreeNode> typeArguments; // 类型参数
List<ArgumentTreeNode> arguments; // 实际参数
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/CallLogic",
"definitions": {
"CallLogic": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "CallLogic"
},
"label": {
"type": "string"
},
"calleeNamespace": {
"type": "string"
},
"calleeName": {
"type": "string"
},
"shortcut": {
"type": "boolean"
},
"handleError": {
"type": "boolean"
},
"typeArguments": {
"type": "array",
"items": {
"$ref": "#/definitions/TypeAnnotation"
}
},
"arguments": {
"type": "array",
"items": {
"$ref": "#/definitions/Argument"
}
}
},
"required": [
"concept",
"label",
"calleeNamespace",
"calleeName",
"shortcut",
"handleError",
"typeArguments",
"arguments"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "CallLogic",
"label": "调用逻辑",
"calleeNamespace": null,
"calleeName": null,
"shortcut": null,
"handleError": null,
"typeArguments": null,
"arguments": []
}
concept: CallLogic
label: 调用逻辑
calleeNamespace: null
calleeName: null
shortcut: null
handleError: null
typeArguments: null
arguments: []