Authorization: ********************{
"course_session_id": 0,
"use_credit": false
}curl --location --request POST 'http://perfit-api.test.muke.design/api/client/bookings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"course_session_id": 0,
"use_credit": false
}'{
"code": 200,
"message": "预约成功",
"data": {
"id": 1,
"user_id": 1,
"course_session_id": 1,
"course_session": {
"id": 1,
"course_name": "哈他瑜伽",
"coach_name": "王教练",
"date": "2024-01-15",
"start_time": "10:00:00",
"end_time": "11:00:00",
"location": "A区瑜伽室"
},
"status": "confirmed",
"payment_status": "paid",
"order_id": 1,
"booking_time": "2024-01-10T10:00:00Z",
"cancelled_at": null,
"cancel_reason": null,
"created_at": "2024-01-10T10:00:00Z"
}
}