Variant List (By Game)
INFO
Get all variants for the specified game
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/variant/list_by_game |
| Request Method | GET |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | View details | |
| game_code | string | Y | The index of game data |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | Message for debug |
| data | array | Y | Variant Items |
| page | object | Y | Pagination |
Variant Items
| Name | Type | Required | Description |
|---|---|---|---|
| variant_id | int | Y | Variant Id |
| game_code | string | Y | The index of game data |
| name | string | N | Variant Name |
| cover_url | string | Y | Variant Cover Url |
| creator | string | Y | Creator |
| status | int | Y | Status: 1=enable; 2=disable |
| created_at | int | Y | Create Time |
Pagination
| Name | Type | Required | Description |
|---|---|---|---|
| size | int | Y | Page size |
| current | int | Y | Current page |
Sample
Http Request
GET: Method
URL: /variant/list_by_game?mid=demo&sign=ac304cdd3e4f3ad98bb08a52e8b1e40cc76303fcf9aa72558368ff1c8e35be52&ts=1713768205&game_code=gp_lottery_45
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
}
}