UNPKG

@lcap/asl

Version:

NetEase Application Specific Language

462 lines 18.9 kB
{ "$def": { "logics": [ { "level": "logic", "id": "<auto>", "name": "loadSelect", "moduleId": "7a1038aba7c24ed28a178425a2d0c44b", "moduleType": "view", "params": [ { "level": "param", "id": "<auto>", "type": "Identifier", "code": "ID_<auto>", "name": "params", "_posIndex": 0, "schema": { "id": "<auto>", "$ref": "#/systemTypes/DataSourceParams" } } ], "returns": [ { "level": "return", "id": "<auto>", "type": "Identifier", "code": "ID_<auto>", "name": "result", "_posIndex": 0, "schema": { "type": "genericType", "typeInstantiation": { "typeName": "PageOf", "typeParams": [ { "typeParamValue": { "$ref": "<structureRef>" }, "type": "typeParam", "typeParamName": "T" } ] } } } ], "variables": [], "body": [ { "level": "logicNode", "id": "<auto>", "logicId": "<logicId>", "label": "开始", "folded": false, "type": "Start" }, { "level": "logicNode", "id": "<auto>", "parentId": "<parentId>", "logicId": "<logicId>", "label": "赋值", "folded": false, "type": "AssignmentExpression", "operator": "=", "left": { "level": "expressionNode", "id": "<auto>", "parentId": "<parentId>", "parentAttr": "left", "logicId": "<logicId>", "folded": false, "type": "Identifier", "code": "ID_<returnId>", "name": "result", "schemaRef": "#/<returnId>" }, "right": { "level": "logicNode", "id": "<auto>", "parentId": "<parentId>", "parentAttr": "right", "logicId": "<logicId>", "label": "调用接口", "folded": false, "type": "CallInterface", "params": [ { "level": "param", "id": "<auto>", "parentId": "<parentId>", "parentAttr": "params", "logicId": "<logicId>", "folded": false, "_posIndex": 0, "type": "CallInterParam", "callInterParam": "#/8fad0fcdac404701bcb1d66c3c20ae5e/a810ec6333ef4ef795fe2573965b3b7c", "callInterParamValue": { "level": "expressionNode", "id": "<auto>", "parentId": "<parentId>", "parentAttr": "callInterParamValue", "logicId": "<logicId>", "folded": false, "type": "Identifier", "code": "ID_<paramId>", "name": "params", "schemaRef": "<paramId>" } } ], "interfaceKey": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/009291d7-4acc-477d-9754-809c75f2f398" } }, { "level": "logicNode", "id": "<auto>", "parentId": "<parentId>", "logicId": "<logicId>", "label": "结束", "folded": false, "type": "End" } ], "playgroundId": "<auto>", "playground": [] } ], "params": [], "variables": [], "lifecycles": [] }, "$html": { "level": "element", "id": "<auto>", "type": 0, "tag": "u-linear-layout", "attrList": [ { "level": "attr", "id": "<auto>", "type": "string", "model": false, "sync": false, "name": "direction", "value": "vertical" } ], "eventList": [], "directiveList": [], "children": [ { "level": "element", "id": "<auto>", "type": 0, "tag": "div", "attrList": [], "eventList": [], "directiveList": [], "children": [ { "level": "element", "id": "<auto>", "type": 0, "tag": "u-text", "attrList": [ { "level": "attr", "id": "<auto>", "type": "string", "model": false, "sync": false, "name": "text", "value": "view3页面的内容" } ], "eventList": [], "directiveList": [], "children": [] } ] }, { "level": "element", "id": "<auto>", "type": 0, "tag": "u-select", "name": "select", "attrList": [ { "level": "attr", "id": "<auto>", "type": "static", "model": false, "sync": false, "name": "clearable", "value": "true", "expression": null, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "string", "model": false, "sync": false, "name": "placeholder", "value": "请选择", "expression": null, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "dynamic", "model": false, "sync": false, "name": "data-source", "value": "", "expression": { "id": "<auto>", "level": "expressionNode", "type": "Identifier", "name": "loadSelect", "schemaRef": "#/<logicId>", "code": "ID_<logicId>", "folded": false }, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "string", "model": false, "sync": false, "name": "text-field", "value": "name", "expression": null, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "string", "model": false, "sync": false, "name": "value-field", "value": "id", "expression": null, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "static", "model": false, "sync": false, "name": "pageable", "value": "true", "expression": null, "elementId": "<elementId>" }, { "level": "attr", "id": "<auto>", "type": "static", "model": false, "sync": false, "name": "remote-paging", "value": "true", "expression": null, "elementId": "<elementId>" } ], "eventList": [], "directiveList": [], "slotTarget": null, "slotScope": null, "staticClass": null, "staticStyle": null, "parentId": "<parentId>", "_posIndex": 1, "viewId": "7a1038aba7c24ed28a178425a2d0c44b", "children": [], "events": {} }, { "level": "element", "id": "<auto>", "type": 0, "tag": "u-router-view", "attrList": [], "eventList": [], "directiveList": [], "children": [] } ], "events": {} }, "interfaces": [ { "level": "interface", "id": "<auto>", "key": "#/<serviceId>/<auto>", "name": "load_view3_select", "path": "/interface1", "method": "GET", "description": "", "logicId": "<logicId>", "serviceType": "micro", "serviceId": "38fb7087-77d8-42f5-8be9-2416e39d4622", "parameters": "{\"params\":{\"name\":\"params\",\"description\":\"\",\"in\":\"query\",\"required\":true,\"schema\":{\"id\":\"<auto>\",\"$ref\":\"#/systemTypes/DataSourceParams\"}}}", "responses": "{\"200\":{\"description\":\"\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"genericType\",\"typeInstantiation\":{\"typeName\":\"PageOf\",\"typeParams\":[{\"typeParamValue\":{\"$ref\":\"<structureRef>\"},\"type\":\"typeParam\",\"typeParamName\":\"T\"}]}}}}}}", "logic": { "level": "logic", "id": "<auto>", "name": "load_view3_select", "description": "", "moduleId": "<interfaceId>", "moduleType": "microService", "params": [ { "level": "param", "id": "<auto>", "type": "Identifier", "code": "ID_<auto>", "name": "params", "description": "", "logicId": "<logicId>", "schema": { "id": "<auto>", "$ref": "#/systemTypes/DataSourceParams" }, "required": true, "in": "query" } ], "returns": [ { "level": "return", "id": "<auto>", "type": "Identifier", "code": "ID_<auto>", "name": "result", "description": "", "logicId": "<logicId>", "schema": { "type": "genericType", "typeInstantiation": { "typeName": "PageOf", "typeParams": [ { "typeParamValue": { "$ref": "<structureRef>" }, "type": "typeParam", "typeParamName": "T" } ] } } } ], "variables": [], "body": [ { "level": "logicNode", "id": "<auto>", "logicId": "", "label": "开始", "folded": false, "type": "Start" }, { "level": "logicNode", "id": "<auto>", "parentId": "<parentId>", "logicId": "<logicId>", "label": "调用查询组件", "folded": false, "type": "CallQueryComponent", "logicName": "logic1", "serviceId": "50cb3871-5d24-44b9-a486-2c0f2b77ddbf", "structureRef": "<structureId>", "select": { "id": "<auto>", "level": "expressionNode", "type": "QuerySelectExpression", "logicId": "<logicId>", "label": "查询组件Select子句", "folded": false, "parentId": "<parentId>", "parentAttr": "select", "distinct": false, "star": true, "selectElementList": [] }, "from": { "id": "<auto>", "level": "expressionNode", "type": "QueryFromExpression", "logicId": "<logicId>", "label": "查询组件From子句", "folded": false, "parentId": "<parentId>", "parentAttr": "from", "entityRef": "<entityId>", "asName": "stu", "joinPartList": [] }, "limit": { "id": "<auto>", "level": "expressionNode", "type": "QueryLimitExpression", "logicId": "<logicId>", "label": "查询组件Limit子句", "folded": false, "parentId": "<parentId>", "parentAttr": "limit", "limitElement": { "id": "<auto>", "level": "expressionNode", "type": "NumericLiteral", "logicId": "<logicId>", "label": "原子项", "folded": false, "parentId": "<parentId>", "parentAttr": "limitElement", "value": 20 }, "offsetElement": { "id": "<auto>", "level": "expressionNode", "type": "NumericLiteral", "logicId": "<logicId>", "label": "原子项", "folded": false, "parentId": "<parentId>", "parentAttr": "offsetElement", "value": 10 } } }, { "level": "logicNode", "id": "<auto>", "parentId": "<parentId>", "logicId": "", "label": "结束", "folded": false, "type": "End" } ], "playgroundId": "<auto>", "playground": [] } } ] }