游戏变体列表
描述
获取全部游戏变体列表
请求方式
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/variant/list_all |
| Request Method | GET |
请求参数
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | Api接入规范 |
返回参数
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | 对应 code 的错误描述 |
| data | array | Y | Variant Items |
| page | object | Y | 分页信息 |
Variant Items
| Name | Type | Required | Description |
|---|---|---|---|
| variant_id | int | Y | 变体 Id |
| game_code | string | Y | 游戏索引 用于获取游戏数据 |
| name | string | N | 变体名称 |
| cover_url | string | Y | 变体封面图 |
| creator | string | Y | 创建者 |
| status | int | Y | 状态: 1=启用 2=不启用 |
| created_at | int | Y | 创建时间 |
分页信息
| Name | Type | Required | Description |
|---|---|---|---|
| size | int | Y | 每页数量 |
| current | int | Y | 当前页码 |
请求示例
Http Request
GET: Method
URL: /variant/list_all?mid=1705374337&sign=ac304cdd3e4f3ad98bb08a52e8b1e40cc76303fcf9aa72558368ff1c8e35be52&ts=1713768205
Http Response(success)
{
"code": 0,
"msg": "",
"data": [
{
"variant_id": 2,
"game_code": "gp_lottery_87",
"name": "",
"cover_url": "https://vc-r2.dev.pre-release.xyz/2/cover.jpeg",
"creator": "10021",
"status": 1,
"created_at": 1768991589
}
],
"page": {
"size": 0,
"current": 0
}
}