QueryOrderByExpression 查询排序子句
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface QueryOrderByExpression {
"concept": "QueryOrderByExpression", // 产品概念
"orderElement": LogicItem, // 逻辑项,orderElement 可能是 QueryFieldExpression / Identifier / MemberExpression
"order": LogicItem, // 逻辑项,order 可能是 Identifier / MemberExpression / StringLiteral
}
class QueryOrderByExpressionTreeNode {
ConceptEnum concept; // 产品概念
LogicItemTreeNode orderElement; // 逻辑项,orderElement 可能是 QueryFieldExpression / Identifier / MemberExpression
LogicItemTreeNode order; // 逻辑项,order 可能是 Identifier / MemberExpression / StringLiteral
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/QueryOrderByExpression",
"definitions": {
"QueryOrderByExpression": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "QueryOrderByExpression"
},
"orderElement": {
"$ref": "#/definitions/LogicItem"
},
"order": {
"$ref": "#/definitions/LogicItem"
}
},
"required": [
"concept",
"orderElement",
"order"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "QueryOrderByExpression",
"orderElement": null,
"order": null
}
concept: QueryOrderByExpression
orderElement: null
order: null