reallife_asset/wwwroot/virtual_view_assets.ui
yumoqing 925f58b025 feat: 添加私域虚拟人素材功能
- init.py: 新增6个虚拟人函数(create/list/upload/sync等),注册到ServerEnv
- api_mapping: 新增create_group→CreateAssetGroup映射
- 外部API: 5个rl_virtual_*.dspy端点(创建组合/列表/上传/素材列表/状态)
- 前端API: 4个submit/get dspy端点(UI表单提交和数据获取)
- UI页面: 3个页面(创建组合/上传素材/查看素材)
- index.ui: 左侧导航新增虚拟人素材分区(3个按钮)
- load_path.py: RBAC新增virtual页面和api/%路径
- docs: api_downapp.md新增虚拟人API文档(5个端点)
2026-06-02 15:25:14 +08:00

76 lines
2.2 KiB
XML

{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "16px"
},
"subwidgets": [
{
"widgettype": "Title4",
"options": {
"text": "查看虚拟人素材",
"fontWeight": "600",
"marginBottom": "12px"
}
},
{
"widgettype": "Form",
"id": "virtual_view_form",
"options": {
"cheight": 8,
"fields": [
{
"uitype": "code",
"name": "vendor_group_id",
"label": "素材组合",
"dataurl": "{{entire_url('api/get_virtual_groups.dspy')}}",
"data_field": "value",
"text_field": "text",
"required": true
}
]
},
"binds": [
{
"wid": "self",
"event": "submit",
"actiontype": "urlwidget",
"target": "app.rl_virtual_asset_results",
"options": {
"method": "POST",
"url": "{{entire_url('api/submit_virtual_list_assets.dspy')}}"
},
"mode": "replace"
}
]
},
{
"widgettype": "VBox",
"options": {
"css": "filler",
"padding": "0",
"marginTop": "12px"
},
"subwidgets": [
{
"widgettype": "VScrollPanel",
"options": {
"css": "filler"
},
"subwidgets": [
{
"widgettype": "VBox",
"id": "rl_virtual_asset_results",
"options": {
"width": "100%",
"padding": "0"
}
}
]
}
]
}
]
}