###### tags: `討論版`
# 取得討論版留言列/get_comments/
## 輸入
| 欄位 | key | 資料型態 |
| -------- | ---------- | -------- |
| 判決書ID | comment_id | int |
| 信箱 | email | str |
| 犯罪編號 | crime_id | str |
## 回傳
| 欄位 | key | 資料型態 |
| -------- | ------- | -------- |
| 是否成功 | success | bool |
| 資料 | data | object\list |
資料 object\list
| 欄位 | key | 資料型態 |
| ---------- | ------------------- | ----------- |
| 評論ID | comment_id | int |
| 評論者信箱 | comment_email | str |
| 職業名稱 | job | str |
| 評論內容 | comment | str |
| 評論時間 | comment_create_time | date |
| 是否編輯 | comment_is_edited | bool |
| 月 | month | int |
| 特徵內容 | feature | str |
| 回覆 | replies | object\list |
### crime_id=1
| 欄位 | key | 資料型態 |
| -------------------------- | ---------------------- | -------- |
| 是否為金錢相關 | is_money_related | bool |
| 是否有遺棄贓物 | is_abandoned | bool |
| 犯罪地點為室內 | is_indoor | bool |
| 竊盜方法具破壞性 | is_destructive | bool |
| 兩人以上(含)犯案 | is_group_crime | bool |
| 利用交通工具輸送贓物 | is_transportation_used | bool |
| 是否有前科紀錄 | has_criminal_record | bool |
| 竊取之財物為被害人生財工具 | is_income_tool | bool |
### crime_id=2
| 欄位 | key | 資料型態 |
| -------------------------- | -------------------- | -------- |
| 是否殺人未遂 | is_attempted | bool |
| 是否被害者為兒童 | is_child_victim | bool |
| 是否有親屬關係 | is_family_relation | bool |
| 加害者是否有精神疾病 | is_mentally_ill | bool |
| 兩人以上(含)犯案 | is_money_dispute | bool |
| 利用交通工具輸送贓物 | is_prior_record | bool |
| 是否有前科紀錄 | is_emotional_dispute | bool |
| 竊取之財物為被害人生財工具 | is_intentional | bool |
### crime_id=3
| 欄位 | key | 資料型態 |
| ------------------------------ | ------------------- | -------- |
| 是否導致受害者受傷 | is_victim_injured | bool |
| 是否兩人以上犯案 | is_group_crime | bool |
| 是否使用刀械 | is_weapon_used | bool |
| 是否有前科紀錄 | has_prior_record | bool |
| 有計畫犯罪 | is_planned | bool |
| 是否被害人人數超過兩人 | is_multi_victims | bool |
| 是否提及犯案人因生活困境而強盜 | is_due_to_hardship | bool |
| 是否毀損物品或建築 | is_property_damaged | bool |
### crime_id=4
| 欄位 | key | 資料型態 |
| -------------------- | ------------------------ | -------- |
| 是否有駕駛執照 | has_driving_license | bool |
| 是否搭載其他乘客 | has_passengers | bool |
| 是否影響交通安全 | affected_traffic_safety | bool |
| 是否造成他人財產損害 | caused_property_damage | bool |
| 是否以駕駛車輛為職業 | is_professional_driver | bool |
| 是否肇事逃逸 | hit_and_run | bool |
| 被撞者是否受有重傷 | victim_has_severe_injury | bool |
| 天氣是否晴朗 | weather_was_clear | bool |
### 回覆 object\list
| 欄位 | key | 資料型態 |
| ---------- | ----------------- | -------- |
| 回覆ID | reply_id | int |
| 回覆者信箱 | reply_email | str |
| 職業名稱 | job | str |
| 回覆內容 | reply | str |
| 回覆時間 | reply_create_time | date |
| 是否編輯 | reply_is_edited | bool |
```json
// 範例,內容的key需自行補上
{
"success": true,
"data": [
{
"comment_id": 46,
"comment_email": "example@example.com",
"job": "行政管理",
"comment": "我覺得xxx可以xxx",
"is_edit": 0,
"comment_create_time": "2023-08-10T15:54:03Z",
"is_money_related": true,
"is_abandoned": true,
"is_indoor": true,
"is_destructive": true,
"is_group_crime": true,
"is_transportation_used": true,
"has_criminal_record": true,
"is_income_tool": true,
"month": 5,
"replies": []
},
{
"comment_id": 48,
"comment_email": "example2@example.com",
"job": "行政管理",
"comment": "我覺得xxx可以xxxxxx",
"is_edit": 0,
"comment_create_time": "2023-08-10T15:54:03Z",
"is_money_related": false,
"is_abandoned": false,
"is_indoor": true,
"is_destructive": true,
"is_group_crime": true,
"is_transportation_used": true,
"has_criminal_record": true,
"is_income_tool": true,
"month": 5,
"replies": []
}
]
}
```
## 備註
> 後端自行設定「建立時間」,並且注意留言只能留一次
> 前端在使用者已留言過,不能在給他留言
> 要先留言過才能看到其他人的留言
> 刪掉之後就看不到其他人的留言