feat: keep same appid both mock server and java server (#1249)

This commit is contained in:
chilingling 2025-04-14 15:03:46 +08:00 committed by GitHub
parent c057366c13
commit 607292039c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
23 changed files with 112 additions and 112 deletions

View File

@ -58,7 +58,7 @@ $ pnpm splitMaterials
$ pnpm buildMaterials $ pnpm buildMaterials
``` ```
Open a browser: `http://localhost:8080/?type=app&id=918&tenant=1&pageid=NTJ4MjvqoVj8OVsc` Open a browser: `http://localhost:8080/?type=app&id=1&tenant=1&pageid=NTJ4MjvqoVj8OVsc`
`url search` Parameters: `url search` Parameters:
- `type=app` Application type - `type=app` Application type

View File

@ -58,7 +58,7 @@ $ pnpm splitMaterials
$ pnpm buildMaterials $ pnpm buildMaterials
``` ```
浏览器打开:`http://localhost:8080/?type=app&id=918&tenant=1&pageid=NTJ4MjvqoVj8OVsc` 浏览器打开:`http://localhost:8080/?type=app&id=1&tenant=1&pageid=NTJ4MjvqoVj8OVsc`
`url search`参数: `url search`参数:
- `type=app` 应用类型 - `type=app` 应用类型

View File

@ -215,7 +215,7 @@ tenant 通过前端配置统一 x-lowcode-org 请求头传递,接口中不用
| 参数名称 | 是否必须 | 示例 | 备注 | | 参数名称 | 是否必须 | 示例 | 备注 |
| ----------------- | -------- | ---- | ------------------------------------------------------------ | | ----------------- | -------- | ---- | ------------------------------------------------------------ |
| appId | 否 | 918 | 应用id 用于筛选某个应用下的区块 | | appId | 否 | 1 | 应用id 用于筛选某个应用下的区块 |
| public_scope_mode | 否 | 1 | 不传将只显示公开的区块传入1 可根据public进行公开性筛选默认展示全部私有/公开区块 | | public_scope_mode | 否 | 1 | 不传将只显示公开的区块传入1 可根据public进行公开性筛选默认展示全部私有/公开区块 |
### 返回数据 ### 返回数据

View File

@ -283,7 +283,7 @@ export default (app: Application) => {
使用本地开发流程,启动服务成功后访问 使用本地开发流程,启动服务成功后访问
`http://localhost:7011/entry?id=918&type=app` `http://localhost:7011/entry?id=1&type=app`
验证是否存在问题,如正常则部署服务 验证是否存在问题,如正常则部署服务

View File

@ -4,7 +4,7 @@
"id": 123, "id": 123,
"key": "lowcode.c257d5e8", "key": "lowcode.c257d5e8",
"content": "search", "content": "search",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -24,7 +24,7 @@
"id": 124, "id": 124,
"key": "lowcode.c257d5e8", "key": "lowcode.c257d5e8",
"content": "查询", "content": "查询",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -44,7 +44,7 @@
"id": 211, "id": 211,
"key": "lowcode.61c8ac8c", "key": "lowcode.61c8ac8c",
"content": "地方", "content": "地方",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -64,7 +64,7 @@
"id": 212, "id": 212,
"key": "lowcode.61c8ac8c", "key": "lowcode.61c8ac8c",
"content": "dsdsa", "content": "dsdsa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -84,7 +84,7 @@
"id": 229, "id": 229,
"key": "lowcode.f53187a0", "key": "lowcode.f53187a0",
"content": "测试", "content": "测试",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -104,7 +104,7 @@
"id": 230, "id": 230,
"key": "lowcode.f53187a0", "key": "lowcode.f53187a0",
"content": "test", "content": "test",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -124,7 +124,7 @@
"id": 231, "id": 231,
"key": "lowcode.97ad00dd", "key": "lowcode.97ad00dd",
"content": "创建物料资产包", "content": "创建物料资产包",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -144,7 +144,7 @@
"id": 232, "id": 232,
"key": "lowcode.97ad00dd", "key": "lowcode.97ad00dd",
"content": "createMaterial", "content": "createMaterial",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -164,7 +164,7 @@
"id": 31985, "id": 31985,
"key": "lowcode.61dcef52", "key": "lowcode.61dcef52",
"content": "terterere", "content": "terterere",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -184,7 +184,7 @@
"id": 31986, "id": 31986,
"key": "lowcode.61dcef52", "key": "lowcode.61dcef52",
"content": "sadasda", "content": "sadasda",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -204,7 +204,7 @@
"id": 36011, "id": 36011,
"key": "lowcode.45f4c42a", "key": "lowcode.45f4c42a",
"content": "gfdgfd", "content": "gfdgfd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -224,7 +224,7 @@
"id": 36012, "id": 36012,
"key": "lowcode.45f4c42a", "key": "lowcode.45f4c42a",
"content": "gdfgdf", "content": "gdfgdf",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -244,7 +244,7 @@
"id": 45420, "id": 45420,
"key": "lowcode.c6f5a652", "key": "lowcode.c6f5a652",
"content": "fsdaf", "content": "fsdaf",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -264,7 +264,7 @@
"id": 45421, "id": 45421,
"key": "lowcode.c6f5a652", "key": "lowcode.c6f5a652",
"content": "fsdafds", "content": "fsdafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -284,7 +284,7 @@
"id": 55726, "id": 55726,
"key": "lowcode.34923432", "key": "lowcode.34923432",
"content": "fdsafdsa", "content": "fdsafdsa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -304,7 +304,7 @@
"id": 55727, "id": 55727,
"key": "lowcode.34923432", "key": "lowcode.34923432",
"content": "fdsafds", "content": "fdsafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -324,7 +324,7 @@
"id": 55728, "id": 55728,
"key": "lowcode.48521e45", "key": "lowcode.48521e45",
"content": "fdsfds", "content": "fdsfds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -344,7 +344,7 @@
"id": 55729, "id": 55729,
"key": "lowcode.6534943e", "key": "lowcode.6534943e",
"content": "fdsafds", "content": "fdsafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -364,7 +364,7 @@
"id": 55730, "id": 55730,
"key": "lowcode.6534943e", "key": "lowcode.6534943e",
"content": "fdsafdsa", "content": "fdsafdsa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -384,7 +384,7 @@
"id": 55731, "id": 55731,
"key": "lowcode.44252642", "key": "lowcode.44252642",
"content": "fdsafds", "content": "fdsafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -404,7 +404,7 @@
"id": 55732, "id": 55732,
"key": "lowcode.44252642", "key": "lowcode.44252642",
"content": "aaaa", "content": "aaaa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -424,7 +424,7 @@
"id": 64792, "id": 64792,
"key": "lowcode.2a743651", "key": "lowcode.2a743651",
"content": "sda", "content": "sda",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -444,7 +444,7 @@
"id": 64793, "id": 64793,
"key": "lowcode.2a743651", "key": "lowcode.2a743651",
"content": "fdsaf", "content": "fdsaf",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -464,7 +464,7 @@
"id": 64794, "id": 64794,
"key": "lowcode.24315357", "key": "lowcode.24315357",
"content": "fdsafds", "content": "fdsafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -484,7 +484,7 @@
"id": 64795, "id": 64795,
"key": "lowcode.24315357", "key": "lowcode.24315357",
"content": "fsdafds", "content": "fsdafds",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -504,7 +504,7 @@
"id": 64796, "id": 64796,
"key": "lowcode.44621691", "key": "lowcode.44621691",
"content": "fdsafsd", "content": "fdsafsd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -524,7 +524,7 @@
"id": 64797, "id": 64797,
"key": "lowcode.44621691", "key": "lowcode.44621691",
"content": "sd", "content": "sd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -544,7 +544,7 @@
"id": 64798, "id": 64798,
"key": "lowcode.65636226", "key": "lowcode.65636226",
"content": "fdsaf", "content": "fdsaf",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -564,7 +564,7 @@
"id": 64799, "id": 64799,
"key": "lowcode.65636226", "key": "lowcode.65636226",
"content": "fdsfsd", "content": "fdsfsd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -584,7 +584,7 @@
"id": 64800, "id": 64800,
"key": "lowcode.6426a4e2", "key": "lowcode.6426a4e2",
"content": "sd", "content": "sd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -604,7 +604,7 @@
"id": 64801, "id": 64801,
"key": "lowcode.6426a4e2", "key": "lowcode.6426a4e2",
"content": "fdsafsd", "content": "fdsafsd",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -624,7 +624,7 @@
"id": 64802, "id": 64802,
"key": "lowcode.e41c6636", "key": "lowcode.e41c6636",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -644,7 +644,7 @@
"id": 64803, "id": 64803,
"key": "lowcode.e41c6636", "key": "lowcode.e41c6636",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -664,7 +664,7 @@
"id": 64804, "id": 64804,
"key": "lowcode.51c23164", "key": "lowcode.51c23164",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -684,7 +684,7 @@
"id": 64805, "id": 64805,
"key": "lowcode.51c23164", "key": "lowcode.51c23164",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -704,7 +704,7 @@
"id": 64806, "id": 64806,
"key": "lowcode.17245b46", "key": "lowcode.17245b46",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -724,7 +724,7 @@
"id": 64807, "id": 64807,
"key": "lowcode.17245b46", "key": "lowcode.17245b46",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -744,7 +744,7 @@
"id": 64808, "id": 64808,
"key": "lowcode.4573143c", "key": "lowcode.4573143c",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -764,7 +764,7 @@
"id": 64809, "id": 64809,
"key": "lowcode.4573143c", "key": "lowcode.4573143c",
"content": "a", "content": "a",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -784,7 +784,7 @@
"id": 64810, "id": 64810,
"key": "lowcode.56432442", "key": "lowcode.56432442",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -804,7 +804,7 @@
"id": 64811, "id": 64811,
"key": "lowcode.56432442", "key": "lowcode.56432442",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -824,7 +824,7 @@
"id": 64812, "id": 64812,
"key": "lowcode.33566643", "key": "lowcode.33566643",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -844,7 +844,7 @@
"id": 64813, "id": 64813,
"key": "lowcode.33566643", "key": "lowcode.33566643",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -864,7 +864,7 @@
"id": 64814, "id": 64814,
"key": "lowcode.565128f3", "key": "lowcode.565128f3",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -884,7 +884,7 @@
"id": 64815, "id": 64815,
"key": "lowcode.565128f3", "key": "lowcode.565128f3",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -904,7 +904,7 @@
"id": 64816, "id": 64816,
"key": "lowcode.56643835", "key": "lowcode.56643835",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 1, "id": 1,
@ -924,7 +924,7 @@
"id": 64817, "id": 64817,
"key": "lowcode.56643835", "key": "lowcode.56643835",
"content": "aa", "content": "aa",
"host": 918, "host": 1,
"host_type": "app", "host_type": "app",
"lang": { "lang": {
"id": 2, "id": 2,
@ -950,7 +950,7 @@
"type": "array" "type": "array"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T06:26:26.000Z", "created_at": "2022-06-28T06:26:26.000Z",
"updated_at": "2022-06-28T07:02:30.000Z" "updated_at": "2022-06-28T07:02:30.000Z"
@ -1015,7 +1015,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T07:32:16.000Z", "created_at": "2022-06-28T07:32:16.000Z",
"updated_at": "2023-01-19T03:29:11.000Z" "updated_at": "2023-01-19T03:29:11.000Z"
@ -1236,7 +1236,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-29T00:57:50.000Z", "created_at": "2022-06-29T00:57:50.000Z",
"updated_at": "2023-05-15T02:37:12.000Z" "updated_at": "2023-05-15T02:37:12.000Z"
@ -1291,7 +1291,7 @@
"type": "tree" "type": "tree"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-30T06:13:57.000Z", "created_at": "2022-06-30T06:13:57.000Z",
"updated_at": "2022-07-29T03:14:55.000Z" "updated_at": "2022-07-29T03:14:55.000Z"
@ -1522,7 +1522,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T02:20:07.000Z", "created_at": "2022-07-04T02:20:07.000Z",
"updated_at": "2022-07-04T06:25:29.000Z" "updated_at": "2022-07-04T06:25:29.000Z"
@ -1603,7 +1603,7 @@
] ]
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T03:04:05.000Z", "created_at": "2022-07-04T03:04:05.000Z",
"updated_at": "2022-07-04T03:43:40.000Z" "updated_at": "2022-07-04T03:43:40.000Z"
@ -1621,7 +1621,7 @@
"destructuring": false, "destructuring": false,
"exportName": "axios" "exportName": "axios"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1640,7 +1640,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1658,7 +1658,7 @@
"exportName": "NavMenu", "exportName": "NavMenu",
"destructuring": true "destructuring": true
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1677,7 +1677,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1692,7 +1692,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "''" "value": "''"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1711,7 +1711,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1726,7 +1726,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "function test() {\r\n return 'test'\r\n}" "value": "function test() {\r\n return 'test'\r\n}"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1741,7 +1741,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "function util () {\r\n console.log(321)\r\n}" "value": "function util () {\r\n console.log(321)\r\n}"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_by": null, "created_by": null,
"updated_by": null, "updated_by": null,
@ -1753,7 +1753,7 @@
{ {
"name": "createVm", "name": "createVm",
"id": "NTJ4MjvqoVj8OVsc", "id": "NTJ4MjvqoVj8OVsc",
"app": "918", "app": "1",
"route": "createVm", "route": "createVm",
"page_content": { "page_content": {
"state": { "state": {
@ -2716,7 +2716,7 @@
{ {
"name": "ComponentsSetting", "name": "ComponentsSetting",
"id": "fh7U0xYetFGA5Ieu", "id": "fh7U0xYetFGA5Ieu",
"app": "918", "app": "1",
"route": "componentsSetting", "route": "componentsSetting",
"page_content": { "page_content": {
"state": { "state": {
@ -29682,7 +29682,7 @@
] ]
}, },
"app": { "app": {
"id": 918, "id": 1,
"name": "portal-app", "name": "portal-app",
"app_website": null, "app_website": null,
"platform": { "platform": {

View File

@ -7,7 +7,7 @@
"type": "array" "type": "array"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T06:26:26.000Z", "created_at": "2022-06-28T06:26:26.000Z",
"updated_at": "2022-06-28T07:02:30.000Z" "updated_at": "2022-06-28T07:02:30.000Z"
@ -72,7 +72,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T07:32:16.000Z", "created_at": "2022-06-28T07:32:16.000Z",
"updated_at": "2023-01-19T03:29:11.000Z" "updated_at": "2023-01-19T03:29:11.000Z"
@ -293,7 +293,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-29T00:57:50.000Z", "created_at": "2022-06-29T00:57:50.000Z",
"updated_at": "2023-05-15T02:37:12.000Z" "updated_at": "2023-05-15T02:37:12.000Z"
@ -348,7 +348,7 @@
"type": "tree" "type": "tree"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-30T06:13:57.000Z", "created_at": "2022-06-30T06:13:57.000Z",
"updated_at": "2022-07-29T03:14:55.000Z" "updated_at": "2022-07-29T03:14:55.000Z"
@ -579,7 +579,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T02:20:07.000Z", "created_at": "2022-07-04T02:20:07.000Z",
"updated_at": "2022-07-04T06:25:29.000Z" "updated_at": "2022-07-04T06:25:29.000Z"
@ -660,7 +660,7 @@
] ]
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T03:04:05.000Z", "created_at": "2022-07-04T03:04:05.000Z",
"updated_at": "2022-07-04T03:43:40.000Z" "updated_at": "2022-07-04T03:43:40.000Z"

View File

@ -1,3 +1,3 @@
{"id":"L0fyFYECrNiRZMiX","app":{"id":918,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"我的分类","desc":"","blocks":["ALvDb0JD8atzd3nA"],"category_id":"qukuaifenlei","_id":"L0fyFYECrNiRZMiX"} {"id":"L0fyFYECrNiRZMiX","app":{"id":1,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"我的分类","desc":"","blocks":["ALvDb0JD8atzd3nA"],"category_id":"qukuaifenlei","_id":"L0fyFYECrNiRZMiX"}
{"$$indexCreated":{"fieldName":"name","unique":true,"sparse":false}} {"$$indexCreated":{"fieldName":"name","unique":true,"sparse":false}}
{"$$indexCreated":{"fieldName":"name","unique":true}} {"$$indexCreated":{"fieldName":"name","unique":true}}

View File

@ -1,3 +1,3 @@
{"id":"b57MCCORYPGjgL23","app":{"id":918,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"我的区块","desc":"","blocks":["ALvDb0JD8atzd3nA"],"_id":"b57MCCORYPGjgL23"} {"id":"b57MCCORYPGjgL23","app":{"id":1,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"我的区块","desc":"","blocks":["ALvDb0JD8atzd3nA"],"_id":"b57MCCORYPGjgL23"}
{"$$indexCreated":{"fieldName":"name","unique":true,"sparse":false}} {"$$indexCreated":{"fieldName":"name","unique":true,"sparse":false}}
{"$$indexCreated":{"fieldName":"name","unique":true}} {"$$indexCreated":{"fieldName":"name","unique":true}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"data": { "data": {
"id": 918, "id": 1,
"name": "portal-app", "name": "portal-app",
"app_website": null, "app_website": null,
"platform": { "platform": {

View File

@ -11,7 +11,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2023-09-04T08:32:38.000Z", "created_at": "2023-09-04T08:32:38.000Z",
"updated_at": "2023-09-04T08:32:38.000Z" "updated_at": "2023-09-04T08:32:38.000Z"

View File

@ -11,7 +11,7 @@
"destructuring": false, "destructuring": false,
"exportName": "axios" "exportName": "axios"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-10-27T11:02:26.000Z", "created_at": "2022-10-27T11:02:26.000Z",
"updated_at": "2022-10-27T11:02:26.000Z" "updated_at": "2022-10-27T11:02:26.000Z"
@ -28,7 +28,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-07-06T10:17:31.000Z", "created_at": "2022-07-06T10:17:31.000Z",
"updated_at": "2022-07-06T10:17:31.000Z" "updated_at": "2022-07-06T10:17:31.000Z"
@ -44,7 +44,7 @@
"exportName": "NavMenu", "exportName": "NavMenu",
"destructuring": true "destructuring": true
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-06-24T06:40:52.000Z", "created_at": "2022-06-24T06:40:52.000Z",
"updated_at": "2022-06-24T08:03:13.000Z" "updated_at": "2022-06-24T08:03:13.000Z"
@ -61,7 +61,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-07-01T03:21:19.000Z", "created_at": "2022-07-01T03:21:19.000Z",
"updated_at": "2022-07-01T03:21:19.000Z" "updated_at": "2022-07-01T03:21:19.000Z"
@ -74,7 +74,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "''" "value": "''"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-08-29T06:54:02.000Z", "created_at": "2022-08-29T06:54:02.000Z",
"updated_at": "2023-01-05T01:00:52.000Z" "updated_at": "2023-01-05T01:00:52.000Z"
@ -91,7 +91,7 @@
"destructuring": true, "destructuring": true,
"main": "" "main": ""
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-06-28T08:17:38.000Z", "created_at": "2022-06-28T08:17:38.000Z",
"updated_at": "2023-03-21T12:13:04.000Z" "updated_at": "2023-03-21T12:13:04.000Z"
@ -104,7 +104,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "function test() {\r\n return 'test'\r\n}" "value": "function test() {\r\n return 'test'\r\n}"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-07-06T10:21:02.000Z", "created_at": "2022-07-06T10:21:02.000Z",
"updated_at": "2023-03-21T12:12:49.000Z" "updated_at": "2023-03-21T12:12:49.000Z"
@ -117,7 +117,7 @@
"type": "JSFunction", "type": "JSFunction",
"value": "function util () {\r\n console.log(321)\r\n}" "value": "function util () {\r\n console.log(321)\r\n}"
}, },
"app": 918, "app": 1,
"category": "utils", "category": "utils",
"created_at": "2022-06-23T11:13:07.000Z", "created_at": "2022-06-23T11:13:07.000Z",
"updated_at": "2023-04-06T02:31:44.000Z" "updated_at": "2023-04-06T02:31:44.000Z"

View File

@ -8,7 +8,7 @@
"type": "array" "type": "array"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T06:26:26.000Z", "created_at": "2022-06-28T06:26:26.000Z",
"updated_at": "2022-06-28T07:02:30.000Z" "updated_at": "2022-06-28T07:02:30.000Z"
@ -73,7 +73,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T07:32:16.000Z", "created_at": "2022-06-28T07:32:16.000Z",
"updated_at": "2023-01-19T03:29:11.000Z" "updated_at": "2023-01-19T03:29:11.000Z"
@ -294,7 +294,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-29T00:57:50.000Z", "created_at": "2022-06-29T00:57:50.000Z",
"updated_at": "2023-05-15T02:37:12.000Z" "updated_at": "2023-05-15T02:37:12.000Z"
@ -349,7 +349,7 @@
"type": "tree" "type": "tree"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-30T06:13:57.000Z", "created_at": "2022-06-30T06:13:57.000Z",
"updated_at": "2022-07-29T03:14:55.000Z" "updated_at": "2022-07-29T03:14:55.000Z"
@ -580,7 +580,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T02:20:07.000Z", "created_at": "2022-07-04T02:20:07.000Z",
"updated_at": "2022-07-04T06:25:29.000Z" "updated_at": "2022-07-04T06:25:29.000Z"
@ -661,7 +661,7 @@
] ]
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T03:04:05.000Z", "created_at": "2022-07-04T03:04:05.000Z",
"updated_at": "2022-07-04T03:43:40.000Z" "updated_at": "2022-07-04T03:43:40.000Z"

View File

@ -9,7 +9,7 @@
"branch": "develop", "branch": "develop",
"is_demo": null, "is_demo": null,
"global_state": [], "global_state": [],
"appId": "918", "appId": "1",
"creator": "", "creator": "",
"gmt_create": "2022-06-08 03:19:01", "gmt_create": "2022-06-08 03:19:01",
"gmt_modified": "2023-08-23 10:22:28" "gmt_modified": "2023-08-23 10:22:28"
@ -24,7 +24,7 @@
"type": "array" "type": "array"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T06:26:26.000Z", "created_at": "2022-06-28T06:26:26.000Z",
"updated_at": "2022-06-28T07:02:30.000Z" "updated_at": "2022-06-28T07:02:30.000Z"
@ -89,7 +89,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T07:32:16.000Z", "created_at": "2022-06-28T07:32:16.000Z",
"updated_at": "2023-01-19T03:29:11.000Z" "updated_at": "2023-01-19T03:29:11.000Z"
@ -310,7 +310,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-29T00:57:50.000Z", "created_at": "2022-06-29T00:57:50.000Z",
"updated_at": "2023-05-15T02:37:12.000Z" "updated_at": "2023-05-15T02:37:12.000Z"
@ -365,7 +365,7 @@
"type": "tree" "type": "tree"
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-30T06:13:57.000Z", "created_at": "2022-06-30T06:13:57.000Z",
"updated_at": "2022-07-29T03:14:55.000Z" "updated_at": "2022-07-29T03:14:55.000Z"
@ -596,7 +596,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T02:20:07.000Z", "created_at": "2022-07-04T02:20:07.000Z",
"updated_at": "2022-07-04T06:25:29.000Z" "updated_at": "2022-07-04T06:25:29.000Z"
@ -677,7 +677,7 @@
] ]
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-07-04T03:04:05.000Z", "created_at": "2022-07-04T03:04:05.000Z",
"updated_at": "2022-07-04T03:43:40.000Z" "updated_at": "2022-07-04T03:43:40.000Z"

View File

@ -38,7 +38,7 @@
} }
], ],
"options": { "options": {
"uri": "/app-center/api/sources/list/918", "uri": "/app-center/api/sources/list/1",
"isSync": true, "isSync": true,
"method": "GET" "method": "GET"
}, },
@ -60,7 +60,7 @@
} }
}, },
"tpl": null, "tpl": null,
"app": "918", "app": "1",
"desc": null, "desc": null,
"created_at": "2022-06-28T07:32:16.000Z", "created_at": "2022-06-28T07:32:16.000Z",
"updated_at": "2023-01-19T03:29:11.000Z" "updated_at": "2023-01-19T03:29:11.000Z"

View File

@ -38,7 +38,7 @@ export default class PageService {
this.pageModel = { this.pageModel = {
name: '', name: '',
id: '', id: '',
app: '918', app: '1',
route: '', route: '',
page_content: {}, page_content: {},
tenant: 1, tenant: 1,
@ -62,7 +62,7 @@ export default class PageService {
parentId: '0', parentId: '0',
route: 'test', route: 'test',
name: 'test', name: 'test',
app: '918', app: '1',
isPage: false, isPage: false,
group: 'staticPages' group: 'staticPages'
} }

View File

@ -35,7 +35,7 @@ const getDefaultConfig = (engineConfig) => {
server: { server: {
// 这里保证本地启动服务是localhost,支持js多线程和谷歌浏览器读写本地文件api // 这里保证本地启动服务是localhost,支持js多线程和谷歌浏览器读写本地文件api
port: 8080, port: 8080,
open: '/?type=app&id=918&tenant=1', open: '/?type=app&id=1&tenant=1',
proxy: { proxy: {
'/app-center/v1/api': { '/app-center/v1/api': {
target: origin, target: origin,

View File

@ -23,7 +23,7 @@ export default {
scripts: [] scripts: []
}, },
dslMode: 'Vue', dslMode: 'Vue',
platformId: 918, platformId: 1,
// TODO: 声明周期相关配置拆分到页面管理的配置项里面 // TODO: 声明周期相关配置拆分到页面管理的配置项里面
// 生命周期函数 // 生命周期函数
lifeCyclesOptions: { lifeCyclesOptions: {

View File

@ -20,7 +20,7 @@ const logger = console
const defaultOptions = { const defaultOptions = {
theme: 'light', theme: 'light',
platformId: 918, platformId: 1,
material: ['/mock/bundle.json'], material: ['/mock/bundle.json'],
scripts: [], scripts: [],
styles: [] styles: []

View File

@ -44,7 +44,7 @@ program
.command('create-platform <name>') .command('create-platform <name>')
.description('create a new tiny-engine platform 创建一个新的tiny-engine低代码平台') .description('create a new tiny-engine platform 创建一个新的tiny-engine低代码平台')
.addOption(new Option('-t, --theme <theme>', 'platform theme 平台主题', 'light').choices(['light', 'dark'])) .addOption(new Option('-t, --theme <theme>', 'platform theme 平台主题', 'light').choices(['light', 'dark']))
.option('-pid, --platformId <platformId>', 'platform id 平台主题', 918) .option('-pid, --platformId <platformId>', 'platform id 平台主题', 1)
.option('-m, --material [material...]', 'material address 物料地址', ['/mock/bundle.json']) .option('-m, --material [material...]', 'material address 物料地址', ['/mock/bundle.json'])
.option('--scripts [script...]', '物料 script', []) .option('--scripts [script...]', '物料 script', [])
.option('--styles [styles...]', '物料 styles', []) .option('--styles [styles...]', '物料 styles', [])

View File

@ -12,7 +12,7 @@ const materialsDir = 'materials'
const bundlePath = path.join(process.cwd(), '/designer-demo/public/mock/bundle.json') const bundlePath = path.join(process.cwd(), '/designer-demo/public/mock/bundle.json')
// mockServer应用数据 // mockServer应用数据
const appInfoPath = path.join(process.cwd(), '/mockServer/src/assets/json/appinfo.json') const appInfoPath = path.join(process.cwd(), '/mockServer/src/assets/json/appinfo.json')
const appSchemaPath = path.join(process.cwd(), 'mockServer/src/mock/get/app-center/v1/apps/schema/918.json') const appSchemaPath = path.join(process.cwd(), 'mockServer/src/mock/get/app-center/v1/apps/schema/1.json')
const appInfo = fsExtra.readJSONSync(appInfoPath) const appInfo = fsExtra.readJSONSync(appInfoPath)
const appSchema = fsExtra.readJSONSync(appSchemaPath) const appSchema = fsExtra.readJSONSync(appSchemaPath)