feat(drone-dock): 拆分首页设备订单与统计接口
This commit is contained in:
@@ -270,7 +270,7 @@ enum DroneDockPreparationViewFixtures {
|
||||
|
||||
/// 首页所选订单使用固定匿名字段。
|
||||
static func order() throws -> DroneDockHomeOrder {
|
||||
try JSONDecoder().decode(DroneDockHomeOrder.self, from: Data(#"{"order_id":701,"order_number":"TEST-PREPARATION-001","tourist_label":"游客 130****0001","package_name":"测试套餐 · 含 1 次拍摄","shot_total":1,"shot_used":0,"shot_remain":1,"status_label":"待拍摄","primary_action":"start_shoot","primary_action_label":"开始拍摄"}"#.utf8))
|
||||
try JSONDecoder().decode(DroneDockHomeOrder.self, from: Data(#"{"order_number":"TEST-PREPARATION-001","project_id":101,"user_phone":"130****0001","project_name":"测试套餐 · 含 1 次拍摄","shoot_count":1,"shot_count":0,"remaining_count":1,"shoot_status":"pending","order_status":20,"can_create_task":true,"can_upload_film":false,"can_confirm":false}"#.utf8))
|
||||
}
|
||||
|
||||
/// 每个点位含自身航线,用于验证切换后不沿用原航线。
|
||||
|
||||
Reference in New Issue
Block a user