获取抽奖信息

请求地址

GET /api/live/v1/room/{id}/lucky-draw/{luckyDrawId}
字段 是否可选 类型 描述
Authorization string 认证信息,格式:bearer ${token}
Accept-Language string 选择语言,(zh-CN)(zh-TW)(en-US)
默认值: zh-CN
Content-Type string application/json

响应参数

字段 类型 描述
resCode int 响应码
resMessage String 提示消息(根据language参数,选择语言返回)
data json 响应数据

成功返回

http/1.1 200 OK
{
    "resCode": 1,
    "resMessage": "success"
    "data":{
        "id":1,
        "liveRoomId":111,
        "title":"这是第一个抽奖",
        "prizeName":"奖品",
        "prizeNum":500,
        "participants":0,
        "winCount":0,
        "status":0,
        "startTime":15465212000,
        "endTime":182165321000,
        "type":1,
        "prizeType":1,
        "redPacket":{
        "amount":10000,
        "num":100,
        "minimumAmount":1,
        "type":1
    }
    }
}

失败返回

http/1.1 200 OK
{
    "resCode": -1,
    "resMessage": "xxx"
}

results matching ""

    No results matching ""