Authorization: ********************{
"target_type": "coach",
"target_id": 0,
"booking_id": 0,
"rating": 1,
"comment": "string",
"images": [
"http://example.com"
]
}curl --location --request POST 'http://perfit-api.test.muke.design/api/client/reviews' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"target_type": "coach",
"target_id": 0,
"booking_id": 0,
"rating": 1,
"comment": "string",
"images": [
"http://example.com"
]
}'{
"code": 200,
"message": "评价提交成功,等待审核",
"data": {
"id": 1,
"user_id": 1,
"user_name": "张三",
"target_type": "coach",
"target_id": 1,
"booking_id": 1,
"rating": 5,
"comment": "教练很专业,课程很棒!非常满意。",
"images": [
"https://example.com/reviews/1.jpg"
],
"status": "pending",
"created_at": "2024-01-10T10:00:00Z"
}
}