获取礼物列表

简要描述
  • 获取礼物列表接口
请求URL
  • http://zhibo.cookiegeeks.com/gift/list
请求方式
  • POST
参数
参数名 必选 类型 说明
token string token
type int 礼物类型;1:直播间礼物(不传默认1);2:聊天室礼物
返回示例
  {
    "code": 200,
    "msg": "操作成功",
    "data": [
        {
            "id": 1,
            "titile": "1coins",
            "price": 1,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 2,
            "titile": "10coins",
            "price": 10,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 3,
            "titile": "100coins",
            "price": 100,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 4,
            "titile": "300coins",
            "price": 300,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 5,
            "titile": "500coins",
            "price": 500,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 6,
            "titile": "1000coins",
            "price": 1000,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 7,
            "titile": "3000coins",
            "price": 3000,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        },
        {
            "id": 8,
            "titile": "5000coins",
            "price": 5000,
            "image": "https://new-dev-1302911647.cos.ap-chengdu.myqcloud.com/coinsIcon/htl.jpg",
            "type": 1,
            "create_time": 0
        }
    ]
}
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述