TriggerEvent 触发器事件
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface TriggerEvent {
"concept": "TriggerEvent" | "MsgTriggerEvent", // 产品概念
"name": string, // 触发器事件名称
"callBackLogic": Array<TypeAnnotation>, // 类型标注列表
}
class TriggerEventTreeNode {
ConceptEnum concept; // 产品概念
String name; // 触发器事件名称
List<TypeAnnotationTreeNode> callBackLogic; // 类型标注列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/TriggerEvent",
"definitions": {
"TriggerEvent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"enum": [
"TriggerEvent",
"MsgTriggerEvent"
]
},
"name": {
"type": "string"
},
"callBackLogic": {
"type": "array",
"items": {
"$ref": "#/definitions/TypeAnnotation"
}
}
},
"required": [
"concept",
"name",
"callBackLogic"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "TriggerEvent",
"name": "String",
"callBackLogic": []
}
concept: TriggerEvent
name: String
callBackLogic: []