List all car information records.
[
{
"id": 1,
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"car_weight": null,
"create_date": "2025-04-16T09:22:47",
"update_date": "2025-04-16T09:23:09",
"driver_name": "爱国啤酒",
"remark": null
},
{
"id": 2,
"car_type": 1,
"car_number": "辽CK1950",
"car_model": "9米6",
"car_weight": null,
"create_date": "2025-04-16T09:23:22",
"update_date": "2025-04-16T09:23:54",
"driver_name": "邮政车",
"remark": null
}
]
Get a specific car information record by ID.
{
"id": 1,
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"car_weight": null,
"create_date": "2025-04-16T09:22:47",
"update_date": "2025-04-16T09:23:09",
"driver_name": "爱国啤酒",
"remark": null
}
Create a new car information record.
{
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"driver_name": "爱国啤酒"
}
{
"id": 3,
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"car_weight": null,
"create_date": "2025-04-17T10:15:20",
"update_date": "2025-04-17T10:15:20",
"driver_name": "爱国啤酒",
"remark": null
}
Update an existing car information record (requires all fields).
{
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"driver_name": "爱国啤酒更新",
"car_weight": 10.5,
"remark": "已更新"
}
{
"id": 1,
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"car_weight": 10.5,
"create_date": "2025-04-16T09:22:47",
"update_date": "2025-04-17T10:16:45",
"driver_name": "爱国啤酒更新",
"remark": "已更新"
}
Partially update an existing car information record (only specified fields).
{
"driver_name": "爱国啤酒更新",
"remark": "已更新"
}
{
"id": 1,
"car_type": 0,
"car_number": "辽AL1926",
"car_model": "9米6",
"car_weight": null,
"create_date": "2025-04-16T09:22:47",
"update_date": "2025-04-17T10:17:30",
"driver_name": "爱国啤酒更新",
"remark": "已更新"
}
Delete a car information record.
Returns a 204 No Content status code on success.