文档
测试

初始化转盘

POST
http://localhost/api/turntable/initTurntable

请求头

参数名
类型
描述
必填
Authorization
string
token值
必填

请求参数

参数名
类型
描述
必填
data
string
参数封装:传mainType(转盘类型:1金币,2分红鸡转盘);示例:{"mainType":"2"}
必填
unionId
string
用户unionId
必填

响应参数

参数名
类型
描述
必填
msg
string
提示信息
必填
code
number
1成功,0失败
必填
data
object
数据字典
必填
todayExchangeLotteryNum
number
金币转盘数量
必填
todayTurnNum
number
分红鸡转盘数量
必填
turnList
array
转盘数据列表
必填
id
number
示例:20
必填
mainType
string
示例:2
必填
turnType
string
示例:1
必填
turnChildType
string
示例:
必填
img
string
示例:
必填
title
string
示例:永久分红鸡
必填
rate
number
示例:0
必填
todayExchangeLotteryNum
string
示例:
必填
todayTurnNum
string
示例:
必填

说明 / 示例

```json { "msg": "操作成功", "code": 1, "data": { "todayExchangeLotteryNum": 14, "turnList": [ { "id": 20, "mainType": "2", "turnType": "1", "turnChildType": "", "img": "", "title": "永久分红鸡", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 21, "mainType": "2", "turnType": "2", "turnChildType": "1", "img": "", "title": "5分钟", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 22, "mainType": "2", "turnType": "3", "turnChildType": "1", "img": "", "title": "最大1元", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 23, "mainType": "2", "turnType": "2", "turnChildType": "7", "img": "", "title": "1年", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 24, "mainType": "2", "turnType": "2", "turnChildType": "2", "img": "", "title": "10分钟", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 25, "mainType": "2", "turnType": "2", "turnChildType": "6", "img": "", "title": "7天", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 26, "mainType": "2", "turnType": "4", "turnChildType": "", "img": "", "title": "少量金币", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 27, "mainType": "2", "turnType": "2", "turnChildType": "5", "img": "", "title": "1天", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 28, "mainType": "2", "turnType": "2", "turnChildType": "3", "img": "", "title": "30分钟", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 29, "mainType": "2", "turnType": "3", "turnChildType": "2", "img": "", "title": "最大5元", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 30, "mainType": "2", "turnType": "2", "turnChildType": "4", "img": "", "title": "1小时", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" }, { "id": 31, "mainType": "2", "turnType": "2", "turnChildType": "", "img": "", "title": "大量金币", "rate": 0, "todayExchangeLotteryNum": "", "todayTurnNum": "" } ], "todayTurnNum": 11 } } ```