go-common/app/service/live/xlottery/api/http/v1/capsule.md
2019-04-22 18:49:16 +08:00

4.8 KiB

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/get_coin_list

请求参数

参数名 必选 类型 描述
page integer
pageSize integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "total": 0,
        "totalPage": 0,
        "list": [
            {
                "id": 0,
                "title": "",
                "changeNum": 0,
                "startTime": "",
                "endTime": "",
                "status": 0,
                "giftType": 0,
                "giftConfig": "",
                "areaIds": [
                    {
                        "parentId": 0,
                        "isAll": 0,
                        "sonIds": [
                            0
                        ]
                    }
                ]
            }
        ]
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/update_coin_config

请求参数

参数名 必选 类型 描述
id integer
title string
changeNum integer
startTime string
endTime string
status integer
giftType integer
giftConfig string
areaIds 多个unknown
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/update_coin_status

请求参数

参数名 必选 类型 描述
id integer
status integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/delete_coin

请求参数

参数名 必选 类型 描述
id integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/get_pool_config

请求参数

参数名 必选 类型 描述
page integer
pageSize integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "total": 0,
        "totalPage": 0,
        "list": [
            {
                "id": 0,
                "coinTitle": 0,
                "title": "",
                "start_time": "",
                "endTime": "",
                "status": 0,
                "rule": ""
            }
        ]
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/update_pool_config

请求参数

参数名 必选 类型 描述
id integer
coinTitle integer
title string
startTime string
endTime string
rule string
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/delete_pool

请求参数

参数名 必选 类型 描述
id integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/update_pool_status

请求参数

参数名 必选 类型 描述
id integer
status integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/get_pool_detail

请求参数

参数名 必选 类型 描述
poolId integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "list": [
            {
                "ID": 0,
                "poolID": 0,
                "type": 0,
                "num": 0,
                "objectID": 0,
                "webUrl": "",
                "mobileUrl": "",
                "description": "",
                "jumpUrl": "",
                "proType": 0,
                "chance": "",
                "loop": 0,
                "limit": 0
            }
        ]
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/update_pool_detail

请求参数

参数名 必选 类型 描述
id integer
poolId integer
type integer
num integer
objectId integer
webUrl string
mobileUrl string
description string
jumpUrl string
proType integer
chance string
loop integer
limit integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}

GET http://api.live.bilibili.com/xlive/lottery/v1/capsule/delete_pool_detail

请求参数

参数名 必选 类型 描述
id integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "retStatus": true
    }
}