獎勵分類

獎勵分類用來把獎勵分群(例如「金幣」「寶石」「特殊道具」)。目前僅提供讀取列表,分類本身由後端管理員建立。

資料模型

  • Name
    id
    Type
    integer
    Description
    分類 ID。
  • Name
    name
    Type
    string
    Description
    分類名稱。

GET/reward-categories

列出所有分類

回傳所有分類,不分頁

Request

GET
/reward-categories
curl https://api.poshentw.com/reward-categories \
  -H "Authorization: Bearer {token}"

Response

{
  "data": [
    { "id": 1, "name": "金幣" },
    { "id": 2, "name": "寶石" },
    { "id": 3, "name": "特殊道具" }
  ]
}

Was this page helpful?