第三方游戏
列表
GET /api/admin/provider-games
上传图片
POST /api/admin/upload
| Field | Description |
|---|---|
| file | Choose a file from local system to upload. |
{
"url": "https://storage.178t.com/games/thumbnails/e1IPEZZehW0mEFZvGIuvqhFP4hcKOFGGpSBAilk4.jpg",
"path": "thumbnails/e1IPEZZehW0mEFZvGIuvqhFP4hcKOFGGpSBAilk4.jpg"
}
添加游戏
POST /api/admin/provider-games
| Field | Description |
|---|---|
| provider_id | Game Provider ID. |
| name | Game name. |
| slug | Game slug. MUST be a unique string. |
| code | Code of game provider. |
| category_id | 0 |
| free | Determine if the game is a free game. |
| thumbnail | File path. See /api/admin/upload |
| sort | Sort ascending. |
| popular | Determine if the game is a popular game. |
{
"provider_id": 1,
"name": "test",
"slug": "test",
"code": 1,
"category_id": 0,
"free": 0,
"thumbnail":"thumbnails/e1IPEZZehW0mEFZvGIuvqhFP4hcKOFGGpSBAilk4.jpg",
"sort": 0,
"popular": 0
}
修改游戏
PUT /api/admin/provider-games/:id
| Field | Description |
|---|---|
| provider_id | Game Provider ID. |
| name | Game name. |
| slug | Game slug. MUST be a unique string. |
| code | Code of game provider. |
| category_id | 0 |
| free | Determine if the game is a free game. |
| thumbnail | File path. See /api/admin/upload |
| sort | Sort ascending. |
| popular | Determine if the game is a popular game. |
{
"provider_id": 1,
"name": "new name",
"slug": "test",
"code": 1,
"category_id": 0,
"free": 0,
"thumbnail": "thumbnails/e1IPEZZehW0mEFZvGIuvqhFP4hcKOFGGpSBAilk4.jpg",
"sort": 0,
"popular": 1
}
删除游戏
DELETE /api/admin/provider-games/:id
