feat: 将项目改为Starter的结构, 为后续开发做扩展准备

This commit is contained in:
2025-04-21 21:59:31 +08:00
parent bd4c374952
commit 2b2864b8df
111 changed files with 162 additions and 177 deletions

View File

@@ -0,0 +1,7 @@
{
"appId": "1909636986931470336",
"userId": 1,
"custom": {
"context": "测试内容!"
}
}

View File

@@ -0,0 +1,152 @@
{
"id": 0,
"name": "测试流程",
"description": "测试流程",
"graph": {
"nodes": [
{
"id": "5",
"type": "start",
"dimensions": {
"width": 300,
"height": 300
},
"draggable": true,
"resizing": false,
"selected": true,
"data": {
"label": "开始",
"toolbarPosition": "right",
"config": {
"variables": [
{
"variable": "context",
"label": "段落",
"type": "paragraph",
"maxLength": 48,
"required": true
},
{
"variable": "text",
"label": "文本",
"type": "text-input",
"maxLength": 48,
"required": true,
"options": []
},
{
"variable": "select",
"label": "下拉",
"type": "select",
"maxLength": 48,
"required": true,
"options": [
{
"label": "选型1",
"value": "1"
},
{
"label": "选型2",
"value": "2"
}
]
},
{
"variable": "number",
"label": "数字",
"type": "number",
"maxLength": 48,
"required": true,
"options": []
},
{
"variable": "singlefile",
"label": "singlefile单文件",
"type": "file",
"maxLength": 48,
"required": true,
"options": [],
"allowedFileUploadMethods": [
"local_file",
"remote_url"
],
"allowedFileTypes": [
"image",
"document",
"audio",
"video"
],
"allowedFileExtensions": []
},
{
"variable": "mufile",
"label": "多文件",
"type": "file-list",
"maxLength": 5,
"required": true,
"options": [],
"allowedFileUploadMethods": [
"local_file"
],
"allowedFileTypes": [
"custom"
],
"allowedFileExtensions": [
"docx",
"aaa"
]
}
],
"parent": "234"
},
"handles": [
{
"id": "7",
"position": "right",
"type": "source",
"connectable": true
}
]
},
"position": { "x": 0, "y": 300 }
},
{
"id": "6",
"type": "end",
"selected": false,
"data": {
"label": "结束",
"toolbarPosition": "right",
"handles": [
{
"id": "8",
"position": "left",
"type": "target",
"connectable": true
}
]
},
"position": { "x": 500, "y": 300 }
}
],
"edges": [
{
"id": "6",
"type": "default",
"source": "5",
"target": "6",
"sourceHandle": "7",
"animated": true,
"targetHandle": "8",
"label": "线标签",
"markerEnd": "none",
"markerStart": "none",
"updatable": true,
"selectable": true,
"deletable": true
}
]
}
}