简要描述:

  • 获取打赏和鲜花列表接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-04-14

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string 授权凭证

请求参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "获取成功",
    "data": {
        "rewards": [
            {
                "name": "1币",
                "num": 1
            },
            {
                "name": "2币",
                "num": 2
            },
            {
                "name": "5币",
                "num": 5
            },
            {
                "name": "10币",
                "num": 10
            }
        ],
        "user_reading_currency": 100,
        "flowers": [
            {
                "name": "1朵",
                "num": 1
            },
            {
                "name": "2朵",
                "num": 2
            },
            {
                "name": "5朵",
                "num": 5
            },
            {
                "name": "10朵",
                "num": 10
            }
        ],
        "user_flower_num": 209,
        "day_send_flower_num": 5
    }
}

错误时返回:

{
    "status": 0,
    "msg": "token过期"
}

data返回参数说明:

参数名 类型 说明
rewards array 打赏列表
user_reading_currency int 用户拥有的阅读币
flowers array 鲜花列表
user_flower_num int 用户拥有的鲜花
day_send_flower_num int 登录赠送的鲜花

返回参数说明:

参数名 类型 说明
name string 名称
num int 数量【提交接口的参数】
#### 备注:
文档更新时间: 2020-04-14 12:33   作者:admin