CallQueryComponent 数据查询
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface CallQueryComponent {
"concept": "CallQueryComponent", // 产品概念
"typeAnnotation": TypeAnnotation, // 类型
"select": QuerySelectExpression, // select
"from": QueryFromExpression, // from
"where": LogicItem, // where
"wherePlayground": Array<LogicItem>, // where 草稿态
"groupBy": Array<QueryGroupByExpression>, // groupBy
"having": LogicItem, // having
"havingPlayground": Array<LogicItem>, // having 草稿态
"orderBy": Array<QueryOrderByExpression>, // orderBy
"limit": QueryLimitExpression, // limit
"ideVersion": string, // 查询组件的局部版本,值为上线时的 IDE 版本
}
class CallQueryComponentTreeNode {
ConceptEnum concept; // 产品概念
TypeAnnotationTreeNode typeAnnotation; // 类型
QuerySelectExpressionTreeNode select; // select
QueryFromExpressionTreeNode from; // from
LogicItemTreeNode where; // where
List<LogicItemTreeNode> wherePlayground; // where 草稿态
List<QueryGroupByExpressionTreeNode> groupBy; // groupBy
LogicItemTreeNode having; // having
List<LogicItemTreeNode> havingPlayground; // having 草稿态
List<QueryOrderByExpressionTreeNode> orderBy; // orderBy
QueryLimitExpressionTreeNode limit; // limit
String ideVersion; // 查询组件的局部版本,值为上线时的 IDE 版本
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/CallQueryComponent",
"definitions": {
"CallQueryComponent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "CallQueryComponent"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"select": {
"$ref": "#/definitions/QuerySelectExpression"
},
"from": {
"$ref": "#/definitions/QueryFromExpression"
},
"where": {
"$ref": "#/definitions/LogicItem"
},
"wherePlayground": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
},
"groupBy": {
"type": "array",
"items": {
"$ref": "#/definitions/QueryGroupByExpression"
}
},
"having": {
"$ref": "#/definitions/LogicItem"
},
"havingPlayground": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
},
"orderBy": {
"type": "array",
"items": {
"$ref": "#/definitions/QueryOrderByExpression"
}
},
"limit": {
"$ref": "#/definitions/QueryLimitExpression"
},
"ideVersion": {
"type": "string"
}
},
"required": [
"concept",
"typeAnnotation",
"select",
"from",
"where",
"wherePlayground",
"groupBy",
"having",
"havingPlayground",
"orderBy",
"limit",
"ideVersion"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "CallQueryComponent",
"typeAnnotation": null,
"select": null,
"from": null,
"where": null,
"wherePlayground": [],
"groupBy": [],
"having": null,
"havingPlayground": [],
"orderBy": [],
"limit": null,
"ideVersion": null
}
concept: CallQueryComponent
typeAnnotation: null
select: null
from: null
where: null
wherePlayground: []
groupBy: []
having: null
havingPlayground: []
orderBy: []
limit: null
ideVersion: null