简要描述:

  • 奖品-列表

访问权限

账号类型 是否有权限
主账号

接口URL:

http://api.zmengzhu.com/business/v1/prizes/awardList

请求方式:

GET

返回结果格式:

JSON

参数:

参数名 是否必须 类型 默认值 说明
prize_id int 抽奖id

返回示例:

响应成功JSON示例:

// 示例
{
	code: 200,
	msg: "ok",
	data: {
		list: [ //奖品信息
            {
                "id": "46453",
                "prize_id": "26234", //抽奖id
                "name": "奖品1", //奖品名称
                "type": "1",
                "weight": "1", //排序权重
                "goods_name": "奖品1",
                "goods_image": "/upload/img/65/01/6501c8fb7cdc7dba1d17c27b947f8472.jpeg",//奖品图片
                "quantity": "100",//数量
                "remain_quantity": "98", //剩余数量
                "status": "1", //状态 1:奖项未领取完 2:奖项已被领取完
                "created_at": "1723873777",
                "updated_at": "1723888798",
                "probability": "0.000", //概率 
            },
            {
                "id": "46454",
                "prize_id": "26234",
                "name": "奖品2",
                "type": "1",
                "weight": "2",
                "goods_name": "奖品2",
                "goods_image": "/upload/img/65/01/6501c8fb7cdc7dba1d17c27b947f8472.jpeg",
                "quantity": "200",
                "remain_quantity": "200",
                "status": "1",
                "created_at": "1723873777",
                "updated_at": "1723888798",
                "probability": "0.000",
            }
        ]
	},
}

错误时返回:

{
    "code": 20001,
    "msg": "签名校验失败",
    "data": {}
}