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:
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
34
suixinkanTests/Fixtures/alive_album_list_success.json
Normal file
34
suixinkanTests/Fixtures/alive_album_list_success.json
Normal 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"
|
||||
}
|
||||
}
|
||||
18
suixinkanTests/Fixtures/alive_detail_success.json
Normal file
18
suixinkanTests/Fixtures/alive_detail_success.json
Normal 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"
|
||||
}
|
||||
}
|
||||
25
suixinkanTests/Fixtures/alive_list_success.json
Normal file
25
suixinkanTests/Fixtures/alive_list_success.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user