- 支持火山方舟(Volcengine Ark)真人人像素材API - AK/SK HMAC-SHA256签名(纯stdlib实现) - 素材组合(Asset Group)管理: 创建认证、查询、删除 - 素材资产(Asset)管理: 上传、状态同步、删除 - 多供应商可扩展架构 - 完整CRUD + 前端UI + uapi SQL配置 - 12个API端点 + 6个前端页面 - 数据库表: rl_asset_group, rl_asset
75 lines
2.4 KiB
XML
75 lines
2.4 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"padding": "16px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "上传素材",
|
|
"fontSize": "20px",
|
|
"fontWeight": "bold",
|
|
"marginBottom": "16px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "upload_form",
|
|
"options": {
|
|
"url": "{{entire_url('api/rl_asset_create.dspy')}}",
|
|
"method": "POST",
|
|
"fields": [
|
|
{
|
|
"name": "group_id",
|
|
"label": "素材组合",
|
|
"type": "text",
|
|
"placeholder": "选择本地组合ID"
|
|
},
|
|
{
|
|
"name": "source_url",
|
|
"label": "素材URL",
|
|
"type": "text",
|
|
"placeholder": "https://... 可公开访问的图片/视频URL"
|
|
},
|
|
{
|
|
"name": "asset_type",
|
|
"label": "素材类型",
|
|
"type": "select",
|
|
"options": [
|
|
{
|
|
"value": "Image",
|
|
"text": "图片"
|
|
},
|
|
{
|
|
"value": "Video",
|
|
"text": "视频"
|
|
},
|
|
{
|
|
"value": "Audio",
|
|
"text": "音频"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"label": "素材名称",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "apikey",
|
|
"label": "Access Key",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "secretkey",
|
|
"label": "Secret Key",
|
|
"type": "password"
|
|
}
|
|
],
|
|
"submit_label": "上传素材"
|
|
}
|
|
}
|
|
]
|
|
} |