PVP开箱
请求URL:
/pvpOpenBox
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| pvpRoomId | 是 | int | PVP房间号 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 3,
"userBoxId": 4,
"boxId": 2,
"userId": 1,
"pvpRoomId": 1,
"pvpRound": 0,
"isWinner": 1,
"goodsId": 6,
"goodsPrice": 5000,
"goodsName": "Cash*50",
"goodsLevel": 20,
"goodsImg": "",
"goodsType": 2,
"goodsAppearRate": 0.25,
"state": 10,
"createdAt": 1789955275,
"updatedAt": 1789955275
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| -id | int | 用户物品记录ID |
| -userBoxId | int | 用户宝箱ID |
| -boxId | int | 宝箱ID |
| -userId | int | 用户ID |
| -pvpRoomId | int | PVP房间ID |
| -pvpRound | int | PVP回合数 |
| -goodsId | int | 物品ID |
| -goodsPrice | int | 物品价值 |
| -goodsName | string | 物品名称 |
| -goodsLevel | int | 物品等级 |
| -goodsImg | string | 物品图片 |
| -goodsType | string | 物品分类 |
备注