新增任务模块,并接入首页任务管理路由
实现任务列表、详情与创建页面,对接 API,支持云端/本地附件,并添加单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
14
suixinkanTests/Fixtures/available_order_success.json
Normal file
14
suixinkanTests/Fixtures/available_order_success.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": [
|
||||
{
|
||||
"project_name": "亲子跟拍",
|
||||
"order_number": "ORD-TASK-001",
|
||||
"order_status": "20",
|
||||
"order_status_label": "已支付",
|
||||
"pay_time": "2026-06-21 09:55:00",
|
||||
"user_phone": "13800000000"
|
||||
}
|
||||
]
|
||||
}
|
||||
33
suixinkanTests/Fixtures/cloud_file_list_success.json
Normal file
33
suixinkanTests/Fixtures/cloud_file_list_success.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"total": "2",
|
||||
"list": [
|
||||
{
|
||||
"id": "501",
|
||||
"parent_folder_id": "0",
|
||||
"file_url": "",
|
||||
"cover_url": "",
|
||||
"updated_at": "2026-06-20 10:00:00",
|
||||
"name": "任务素材",
|
||||
"created_at": "2026-06-20 09:00:00",
|
||||
"child_num": "3",
|
||||
"type": "99",
|
||||
"file_size": "0"
|
||||
},
|
||||
{
|
||||
"id": 502,
|
||||
"parent_folder_id": 0,
|
||||
"file_url": "https://cdn.example.com/cloud/photo.jpg",
|
||||
"cover_url": "",
|
||||
"updated_at": "2026-06-20 10:00:00",
|
||||
"name": "photo.jpg",
|
||||
"created_at": "2026-06-20 09:00:00",
|
||||
"child_num": 0,
|
||||
"type": 2,
|
||||
"file_size": 2048
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
38
suixinkanTests/Fixtures/task_detail_success.json
Normal file
38
suixinkanTests/Fixtures/task_detail_success.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"id": "101",
|
||||
"name": "游客精修任务",
|
||||
"created_at": "2026-06-21 10:00:00",
|
||||
"task_status": "2",
|
||||
"task_status_label": "处理中",
|
||||
"accepted_at": "2026-06-21 10:05:00",
|
||||
"editor_name": "小李",
|
||||
"editor_phone": "13900000000",
|
||||
"urgent_hour": "24",
|
||||
"photog_remark": "请优先处理亲子照片",
|
||||
"order": {
|
||||
"project_name": "亲子跟拍",
|
||||
"order_number": "ORD-TASK-001",
|
||||
"pay_time": "2026-06-21 09:55:00",
|
||||
"user_phone": "13800000000"
|
||||
},
|
||||
"task_result": [
|
||||
{
|
||||
"id": 9101,
|
||||
"photog_task_id": 101,
|
||||
"user_id": 7001,
|
||||
"file_name": "result.mp4",
|
||||
"file_type": 1,
|
||||
"file_url": "https://cdn.example.com/task/result.mp4",
|
||||
"file_size": 4096,
|
||||
"cover_url": "https://cdn.example.com/task/result-cover.jpg",
|
||||
"duration": 12,
|
||||
"remark": "",
|
||||
"created_at": "2026-06-21 11:00:00",
|
||||
"updated_at": "2026-06-21 11:00:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
26
suixinkanTests/Fixtures/task_list_page2_success.json
Normal file
26
suixinkanTests/Fixtures/task_list_page2_success.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"total": 3,
|
||||
"list": [
|
||||
{
|
||||
"id": 103,
|
||||
"name": "补传照片",
|
||||
"type": 1,
|
||||
"order_number": "ORD-TASK-003",
|
||||
"task_status": 3,
|
||||
"status_name": "已完成",
|
||||
"created_at": "2026-06-23 09:00:00",
|
||||
"updated_at": "2026-06-23 09:30:00",
|
||||
"photog_remark": "",
|
||||
"editor_name": "小张",
|
||||
"operate_time": "",
|
||||
"order_user_nickname": "",
|
||||
"order_user_phone": "",
|
||||
"order_user_id": "",
|
||||
"media": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
58
suixinkanTests/Fixtures/task_list_success.json
Normal file
58
suixinkanTests/Fixtures/task_list_success.json
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"total": "2",
|
||||
"list": [
|
||||
{
|
||||
"id": "101",
|
||||
"name": "游客精修任务",
|
||||
"type": "1",
|
||||
"order_number": "ORD-TASK-001",
|
||||
"task_status": "2",
|
||||
"status_name": "处理中",
|
||||
"created_at": "2026-06-21 10:00:00",
|
||||
"updated_at": "2026-06-21 10:30:00",
|
||||
"photog_remark": "请优先处理亲子照片",
|
||||
"editor_name": "小李",
|
||||
"operate_time": "2026-06-21 10:31:00",
|
||||
"order_user_nickname": "王女士",
|
||||
"order_user_phone": "13800000000",
|
||||
"order_user_id": "7001",
|
||||
"media": [
|
||||
{
|
||||
"id": "9001",
|
||||
"photog_task_id": "101",
|
||||
"user_id": "7001",
|
||||
"file_name": "cover.jpg",
|
||||
"file_type": "2",
|
||||
"file_url": "https://cdn.example.com/task/cover.jpg",
|
||||
"file_size": "2048",
|
||||
"cover_url": "",
|
||||
"duration": "0",
|
||||
"remark": "",
|
||||
"created_at": "2026-06-21 10:01:00",
|
||||
"updated_at": "2026-06-21 10:01:00"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"name": "短视频剪辑",
|
||||
"type": 1,
|
||||
"order_number": "ORD-TASK-002",
|
||||
"task_status": 1,
|
||||
"status_name": "待接收",
|
||||
"created_at": "2026-06-22 09:00:00",
|
||||
"updated_at": "2026-06-22 09:00:00",
|
||||
"photog_remark": "",
|
||||
"editor_name": "",
|
||||
"operate_time": "",
|
||||
"order_user_nickname": "",
|
||||
"order_user_phone": "",
|
||||
"order_user_id": "",
|
||||
"media": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user