新增任务模块,并接入首页任务管理路由
实现任务列表、详情与创建页面,对接 API,支持云端/本地附件,并添加单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user