Add Live module with stream management and album flows.

Migrate live stream management and live album from home placeholders, including alive album OSS upload, home routing, and unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-25 14:38:52 +08:00
parent 1a0d1c25f4
commit fdf4659048
23 changed files with 2811 additions and 11 deletions

View File

@ -0,0 +1,26 @@
{
"code": 100000,
"msg": "success",
"data": {
"id": "6101",
"album_id": "5101",
"name": "五一直播相册",
"creator": "摄影师小苏",
"items": [
{
"id": "7101",
"url": "https://cdn.example.com/alive/photo.jpg",
"type": "1",
"size": "204800",
"cover_img": ""
},
{
"id": 7102,
"url": "https://cdn.example.com/alive/video.mp4",
"type": 2,
"size": 10485760,
"cover_img": "https://cdn.example.com/alive/video-cover.jpg"
}
]
}
}

View File

@ -0,0 +1,34 @@
{
"code": 100000,
"msg": "success",
"data": {
"items": [
{
"id": "6101",
"album_id": "5101",
"name": "五一直播相册",
"creator": "摄影师小苏",
"items": [
{
"id": "7101",
"url": "https://cdn.example.com/alive/photo.jpg",
"type": "1",
"size": "204800",
"cover_img": ""
},
{
"id": 7102,
"url": "https://cdn.example.com/alive/video.mp4",
"type": 2,
"size": 10485760,
"cover_img": "https://cdn.example.com/alive/video-cover.jpg"
}
]
}
],
"page": "1",
"page_size": "1",
"total": "2",
"total_pages": "2"
}
}

View File

@ -0,0 +1,18 @@
{
"code": 100000,
"msg": "success",
"data": {
"id": "8101",
"title": "景区晨间直播",
"cover_img": "https://cdn.example.com/alive/cover.jpg",
"push_url": "rtmp://push.example.com/live/8101",
"start_time": "1779505200",
"end_time": "1779508800",
"duration": "3600",
"status": "2",
"status_label": "直播中",
"manaul_push_mode": "2",
"manaul_push_state": "1",
"views_count": "1234"
}
}

View File

@ -0,0 +1,25 @@
{
"code": 100000,
"msg": "success",
"data": {
"items": [
{
"id": "8101",
"title": "景区晨间直播",
"cover_img": "https://cdn.example.com/alive/cover.jpg",
"push_url": "rtmp://push.example.com/live/8101",
"start_time": "1779505200",
"end_time": "1779508800",
"duration": "3600",
"status": "2",
"status_label": "直播中",
"manaul_push_mode": "2",
"manaul_push_state": "1",
"views_count": "1234"
}
],
"total": "2",
"page": "1",
"page_size": "1"
}
}