feat(door-trunk-control): 打开后备箱增加 前端期望行为字段
Co-Authored-By: '廖芳' <liaof@xiaopeng.com>
| | |
| | | orderId: OrderId; |
| | | /** 操作目标。 */ |
| | | doorType: 'door' | 'trunk'; |
| | | /** 后备箱期望操作(doorType=trunk 时必传):open-期望打开 / close-期望关闭。服务端会对比当前后备箱状态,一致则不下发车控指令。 */ |
| | | trunkAction?: 'open' | 'close'; |
| | | /** 用户经度。 */ |
| | | longitude: NumericLike; |
| | | /** 用户纬度。 */ |
| | |
| | | unlockVehicle({ |
| | | orderId: targetOrderId, |
| | | doorType, |
| | | ...(doorType === 'trunk' ? { trunkAction: trunkStatus ? 'close' : 'open' } : {}), |
| | | ...locationPayload |
| | | }).then((res: any) => { |
| | | console.log('解锁结果:', res); |