充值套餐
请求URL:
/getRechargePackage
请求方式:
- GET
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| 无 | 无 | 无 | 无 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 1,
"price": 99,
"amount": 150,
"giftAmount": 38,
"productId": "com.pic.1",
"limitBuy": 1,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688644,
"updatedAt": 1746984750
},
{
"id": 2,
"price": 199,
"amount": 300,
"giftAmount": 0,
"productId": "com.pic.2",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688488,
"updatedAt": 1746984764
},
{
"id": 3,
"price": 699,
"amount": 1100,
"giftAmount": 0,
"productId": "com.pic.3",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688579,
"updatedAt": 1746984780
},
{
"id": 4,
"price": 999,
"amount": 1600,
"giftAmount": 0,
"productId": "com.pic.4",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688606,
"updatedAt": 1746984791
},
{
"id": 5,
"price": 1799,
"amount": 2900,
"giftAmount": 0,
"productId": "com.pic.5",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688623,
"updatedAt": 1746984801
},
{
"id": 6,
"price": 2999,
"amount": 4850,
"giftAmount": 0,
"productId": "com.pic.6",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745688664,
"updatedAt": 1746984813
},
{
"id": 7,
"price": 4999,
"amount": 8100,
"giftAmount": 0,
"productId": "com.pic.7",
"limitBuy": 0,
"type": 0,
"originalPrice": 0,
"createdAt": 1745201734,
"updatedAt": 1746984824
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | array | 数据列表 |
| -id | int | ID |
| -price | int | 价格(单位:分) |
| -amount | int | 到账金币数 |
| -giftAmount | int | 额外赠送金币数 |
| -limitBuy | int | 是否限购(同一用户限购一次):1-是;0-否 |
| -type | int | 标签类型: 0:无标签,1:First recharge,2:recommend,3:Hot,4:Best Deal |
| -originalPrice | int | 原价格(单位:分) |
| -productId | string | 产品ID |
备注