feat: 添加媒体资产变体和来源ID字段,支持预览产品与主资产的关联
This commit is contained in:
@@ -131,11 +131,26 @@ Authorization: Bearer {{ token }}
|
||||
|
||||
{
|
||||
"type": "video",
|
||||
"variant": "main",
|
||||
"content_type": "video/mp4",
|
||||
"file_size": 12345678,
|
||||
"sha256": ""
|
||||
}
|
||||
|
||||
### Tenant Admin - MediaAsset upload init (preview product)
|
||||
POST {{ host }}/t/{{ tenantCode }}/v1/admin/media_assets/upload_init
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{ token }}
|
||||
|
||||
{
|
||||
"type": "video",
|
||||
"variant": "preview",
|
||||
"source_asset_id": 1,
|
||||
"content_type": "video/mp4",
|
||||
"file_size": 12345,
|
||||
"sha256": ""
|
||||
}
|
||||
|
||||
### Tenant Admin - MediaAsset upload complete (uploaded -> processing)
|
||||
@assetID = 1
|
||||
POST {{ host }}/t/{{ tenantCode }}/v1/admin/media_assets/{{ assetID }}/upload_complete
|
||||
|
||||
Reference in New Issue
Block a user