# 討論回覆

`GET` `/v1/content/topics/{topic_id}/comments`

獲取指定討論下的回覆列表，支持分頁。完整社區討論可瀏覽 [社區](https://longbridge.com/topics)。

每條回覆包含作者信息、正文（純文本）、互動數據及 `reply_to_id` 字段：`"0"` 表示頂層回覆，其他值表示對指定回覆的嵌套回覆。

## Parameters

### Path Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `topic_id` | string | Yes | 討論 ID，如 `6993508780031016960` |

### Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | integer | No | 頁碼，默認 1 |
| `size` | integer | No | 每頁數量，範圍 1~50，默認 20 |

## Request Example

```bash
curl --request GET \
  --url 'https://openapi.longbridge.com/v1/content/topics/<topic_id>/comments' \
  --header 'Authorization: Bearer <access_token>'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | object[] | Yes | 回覆列表 |
| `└ id` | string | Yes | 回覆 ID |
| `└ topic_id` | string | Yes | 所屬討論 ID |
| `└ body` | string | No | 回覆正文（純文本） |
| `└ reply_to_id` | string | No | 父回覆 ID，`"0"` 表示頂層回覆 |
| `└ author` | object | No | 作者信息 |
| `└ images` | object[] | No | 附圖列表 |
| `└ likes_count` | int32 | No | 點讚數 |
| `└ comments_count` | int32 | No | 嵌套回覆數 |
| `└ created_at` | string | Yes | 創建時間，Unix 時間戳（秒） |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "items": [
      {
        "id": "7001234567890123456",
        "topic_id": "6993508780031016960",
        "body": "Great analysis!",
        "reply_to_id": "0",
        "author": {
          "member_id": "10087",
          "name": "John Smith",
          "avatar": "https://example.com/avatar2.jpg"
        },
        "images": [],
        "likes_count": 5,
        "comments_count": 2,
        "created_at": "1742001500"
      },
      {
        "id": "7001234567890123457",
        "topic_id": "6993508780031016960",
        "body": "I disagree on the valuation part.",
        "reply_to_id": "7001234567890123456",
        "author": {
          "member_id": "10088",
          "name": "Alice Lee",
          "avatar": "https://example.com/avatar3.jpg"
        },
        "images": [],
        "likes_count": 1,
        "comments_count": 0,
        "created_at": "1742001800"
      }
    ]
  }
}
```
