UNPKG

@lcap/asl

Version:

NetEase Application Specific Language

505 lines 23.1 kB
{ "$def": { "logics": [ { "level": "logic", "id": "2e30bb19abd641178bba3418e54c7e3d", "createdTime": 1628753440867, "ideVersion": "1.7", "editable": true, "name": "loadSelect", "moduleId": "7a1038aba7c24ed28a178425a2d0c44b", "moduleType": "view", "params": [ { "level": "param", "id": "94892179804346049dd54e7a11078d7c", "ideVersion": "1.7", "editable": true, "type": "Identifier", "code": "ID_94892179804346049dd54e7a11078d7c", "name": "params", "_posIndex": 0, "schema": { "id": "01cb385d-949b-4ea7-abe9-a1dc964d075a", "$ref": "#/systemTypes/DataSourceParams", "typeKey": "#/systemTypes/DataSourceParams" } } ], "returns": [ { "level": "return", "id": "55347fac28d142e78afb292ac3e04a6c", "ideVersion": "1.7", "editable": true, "type": "Identifier", "code": "ID_55347fac28d142e78afb292ac3e04a6c", "name": "result", "_posIndex": 0, "schema": { "typeKey": "#/genericTypes/PageOf", "type": "genericType", "typeInstantiation": { "typeName": "PageOf", "typeParams": [ { "typeParamValue": { "$ref": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8", "typeKey": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8" }, "type": "typeParam", "typeParamName": "T" } ] } } } ], "variables": [], "body": [ { "level": "logicNode", "id": "b82f3e7f397b4245bac0dd7afbcbe685", "ideVersion": "1.7", "editable": true, "logicId": "2e30bb19abd641178bba3418e54c7e3d", "label": "开始", "folded": false, "type": "Start" }, { "level": "logicNode", "id": "5b5c34a12cc34dfa8ccc705156e9e327", "ideVersion": "1.7", "editable": true, "parentId": "b82f3e7f397b4245bac0dd7afbcbe685", "logicId": "2e30bb19abd641178bba3418e54c7e3d", "label": "赋值", "folded": false, "type": "AssignmentExpression", "operator": "=", "left": { "level": "expressionNode", "id": "9fdfecd1a8c34828b17d22402c44e29d", "ideVersion": "1.7", "editable": true, "parentId": "5b5c34a12cc34dfa8ccc705156e9e327", "parentAttr": "left", "logicId": "2e30bb19abd641178bba3418e54c7e3d", "folded": false, "type": "Identifier", "code": "ID_55347fac28d142e78afb292ac3e04a6c", "name": "result", "schemaRef": "#/55347fac28d142e78afb292ac3e04a6c" }, "right": { "level": "logicNode", "id": "8b9033aa76414fe2888ef671e3312c1b", "ideVersion": "1.7", "editable": true, "parentId": "5b5c34a12cc34dfa8ccc705156e9e327", "parentAttr": "right", "logicId": "2e30bb19abd641178bba3418e54c7e3d", "label": "调用接口", "folded": false, "type": "CallInterface", "params": [ { "level": "param", "id": "46ff87c59c9e44b6bf3f40fdc9c3ee9a", "ideVersion": "1.7", "editable": true, "parentId": "8b9033aa76414fe2888ef671e3312c1b", "parentAttr": "params", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "folded": false, "_posIndex": 0, "type": "CallInterParam", "callInterParam": "#/8fad0fcdac404701bcb1d66c3c20ae5e/a810ec6333ef4ef795fe2573965b3b7c", "callInterParamValue": { "level": "expressionNode", "id": "af8aa0161d2d4ab696e975b9991f45fb", "ideVersion": "1.7", "editable": true, "parentId": "46ff87c59c9e44b6bf3f40fdc9c3ee9a", "parentAttr": "callInterParamValue", "logicId": "2e30bb19abd641178bba3418e54c7e3d", "folded": false, "type": "Identifier", "code": "ID_94892179804346049dd54e7a11078d7c", "name": "params", "schemaRef": "94892179804346049dd54e7a11078d7c" } } ], "interfaceKey": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/009291d7-4acc-477d-9754-809c75f2f398" } }, { "level": "logicNode", "id": "f312484de6b843edaa8b24ce599bab9d", "ideVersion": "1.7", "editable": true, "parentId": "5b5c34a12cc34dfa8ccc705156e9e327", "logicId": "2e30bb19abd641178bba3418e54c7e3d", "label": "结束", "folded": false, "type": "End" } ], "playgroundId": "582ee37580ae4f7cbf9de356f5e8f2ca", "playground": [] } ], "params": [], "variables": [], "lifecycles": [] }, "$html": { "level": "element", "id": "b20c5d7d592a4f33b1c9bf951465de9c", "ideVersion": "1.7", "editable": true, "type": 0, "tag": "u-linear-layout", "attrList": [ { "level": "attr", "id": "91e400f0464140ce9b0316720e3e5103", "ideVersion": "1.7", "editable": true, "type": "string", "model": false, "sync": false, "name": "direction", "value": "vertical" } ], "eventList": [], "directiveList": [], "children": [ { "level": "element", "id": "42d51163bbbd42a7bdca2e9caf6c6468", "ideVersion": "1.7", "editable": true, "type": 0, "tag": "div", "attrList": [], "eventList": [], "directiveList": [], "children": [ { "level": "element", "id": "7aec568b24744a6781b413ac6332e982", "ideVersion": "1.7", "editable": true, "type": 0, "tag": "u-text", "attrList": [ { "level": "attr", "id": "6abc05de249a4518b94db3fd602216c1", "ideVersion": "1.7", "editable": true, "type": "string", "model": false, "sync": false, "name": "text", "value": "view3页面的内容" } ], "eventList": [], "directiveList": [], "children": [] } ] }, { "level": "element", "id": "10ac9d3afdac427daf75296488414569", "ideVersion": "1.7", "editable": true, "type": 0, "tag": "u-select", "name": "select", "attrList": [ { "level": "attr", "id": "acc357a74c1c4a7b88e2a26db1f0ea47", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "static", "model": false, "sync": false, "name": "clearable", "value": "true", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "b58a7f19ac6d48c3ab5767560c0c99f2", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "string", "model": false, "sync": false, "name": "placeholder", "value": "请选择", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "c88c551109dd453b9894a7be931b6b85", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "dynamic", "model": false, "sync": false, "name": "data-source", "value": "", "expression": { "id": "e522305935834a9d9fa125aa99a842dd", "level": "expressionNode", "type": "Identifier", "editable": true, "name": "loadSelect", "schemaRef": "#/2e30bb19abd641178bba3418e54c7e3d", "code": "ID_2e30bb19abd641178bba3418e54c7e3d", "folded": false }, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "578f8f28368b47adaf402824d60a6343", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "string", "model": false, "sync": false, "name": "text-field", "value": "name", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "c276ca0111174fee8084602f168b843c", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "string", "model": false, "sync": false, "name": "value-field", "value": "id", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "8cc25b3f84ef4d2d86f261aac2e20ad0", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "static", "model": false, "sync": false, "name": "pageable", "value": "true", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" }, { "level": "attr", "id": "9fa2f55ccdc347e9a88fb6f539cb2f57", "createdTime": 1628753440934, "ideVersion": "1.7", "editable": true, "type": "static", "model": false, "sync": false, "name": "remote-paging", "value": "true", "expression": null, "elementId": "10ac9d3afdac427daf75296488414569" } ], "eventList": [], "directiveList": [], "slotTarget": null, "slotScope": null, "staticClass": null, "staticStyle": null, "parentId": "b20c5d7d592a4f33b1c9bf951465de9c", "_posIndex": 1, "viewId": "7a1038aba7c24ed28a178425a2d0c44b", "children": [], "events": {} }, { "level": "element", "id": "cde40becd79c4aee8b9345bca5a765bb", "ideVersion": "1.7", "editable": true, "type": 0, "tag": "u-router-view", "attrList": [], "eventList": [], "directiveList": [], "children": [] } ], "events": {} }, "interfaces": [ { "level": "interface", "id": "009291d7-4acc-477d-9754-809c75f2f398", "ideVersion": "1.7", "editable": true, "key": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/009291d7-4acc-477d-9754-809c75f2f398", "name": "load_view3_select", "path": "/interface1", "method": "GET", "description": "", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "serviceType": "micro", "serviceId": "38fb7087-77d8-42f5-8be9-2416e39d4622", "parameters": "{\"params\":{\"name\":\"params\",\"description\":\"\",\"in\":\"query\",\"required\":true,\"schema\":{\"typeKey\":\"#/systemTypes/DataSourceParams\",\"id\":\"41ea6df7-e887-4afc-9435-4ad31e1a762a\",\"$ref\":\"#/systemTypes/DataSourceParams\"}}}", "responses": "{\"200\":{\"description\":\"\",\"content\":{\"application/json\":{\"schema\":{\"typeKey\":\"#/genericTypes/PageOf\",\"type\":\"genericType\",\"typeInstantiation\":{\"typeName\":\"PageOf\",\"typeParams\":[{\"typeParamValue\":{\"$ref\":\"#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8\",\"typeKey\":\"#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8\"},\"type\":\"typeParam\",\"typeParamName\":\"T\"}]}}}}}}", "logic": { "level": "logic", "id": "8fad0fcdac404701bcb1d66c3c20ae5e", "ideVersion": "1.7", "editable": true, "name": "load_view3_select", "description": "", "moduleId": "38fb7087-77d8-42f5-8be9-2416e39d4622", "moduleType": "microService", "params": [ { "level": "param", "id": "a810ec6333ef4ef795fe2573965b3b7c", "ideVersion": "1.7", "editable": true, "type": "Identifier", "code": "ID_a810ec6333ef4ef795fe2573965b3b7c", "name": "params", "description": "", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "schema": { "typeKey": "#/systemTypes/DataSourceParams", "id": "41ea6df7-e887-4afc-9435-4ad31e1a762a", "$ref": "#/systemTypes/DataSourceParams" }, "required": true, "in": "query" } ], "returns": [ { "level": "return", "id": "c7803d6ba7ce477eb75243c58a32c447", "ideVersion": "1.7", "editable": true, "type": "Identifier", "code": "ID_c7803d6ba7ce477eb75243c58a32c447", "name": "result", "description": "", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "schema": { "typeKey": "#/genericTypes/PageOf", "type": "genericType", "typeInstantiation": { "typeName": "PageOf", "typeParams": [ { "typeParamValue": { "$ref": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8", "typeKey": "#/38fb7087-77d8-42f5-8be9-2416e39d4622/c5da422cd1cb4424a75bdd81b3f689d8" }, "type": "typeParam", "typeParamName": "T" } ] } } } ], "variables": [], "body": [ { "level": "logicNode", "id": "3849b1ced1aa49ff9d4bce393693a1ce", "ideVersion": "1.7", "editable": true, "logicId": "", "label": "开始", "folded": false, "type": "Start" }, { "level": "logicNode", "id": "d9d4a71824114ba0bbc0d1f5a9cd37e4", "ideVersion": "1.7", "editable": true, "parentId": "3849b1ced1aa49ff9d4bce393693a1ce", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "label": "赋值", "folded": false, "type": "AssignmentExpression", "operator": "=", "left": { "level": "expressionNode", "id": "4ee1f41b52ed4a0e9990d6413f112f51", "ideVersion": "1.7", "editable": true, "parentId": "d9d4a71824114ba0bbc0d1f5a9cd37e4", "parentAttr": "left", "folded": false, "type": "Identifier", "code": "ID_c7803d6ba7ce477eb75243c58a32c447", "schemaRef": "c7803d6ba7ce477eb75243c58a32c447" }, "right": { "level": "logicNode", "id": "2bb7f299e7e64415ac1309ffbf3d6964", "ideVersion": "1.7", "editable": true, "parentId": "d9d4a71824114ba0bbc0d1f5a9cd37e4", "parentAttr": "right", "logicId": "8fad0fcdac404701bcb1d66c3c20ae5e", "label": "调用接口", "folded": false, "type": "CallInterface", "params": [], "interfaceKey": "" } }, { "level": "logicNode", "id": "4d8dcbdc40a9492288e3a164df45cbac", "ideVersion": "1.7", "editable": true, "parentId": "d9d4a71824114ba0bbc0d1f5a9cd37e4", "logicId": "", "label": "结束", "folded": false, "type": "End" } ], "playgroundId": "99bf5da34ddc41dfb4e5ca3aef043f23", "playground": [] } } ] }