简要描述:

  • 礼品券列表

请求URL:

POST/wapapi/addons/execute/addons/giftvoucher/controller/giftvoucher/action/userGiftvoucher

参数:

参数名 是否必须 类型 说明
state int 礼品券状态 1已领用(未使用) 2已使用 3已过期
page_index int 当前页数
page_size int 分页大小,默认20

返回示例:

正确时返回:

{
    "code": 1,
    "message": "操作成功",
    "data": {
        "data": [
            {
                "state_name": "未使用",
                "state": 1,
                "start_time": 1551369600,
                "end_time": 1559318399,
                "record_id": 14,
                "shop_id": 0,
                "pic_cover_mid": "https://pic.vslai.com.cn/upload/69/0/common/2482d484865039ea2b1f48e359b54efd2.jpg",
                "pic_cover_big": "https://pic.vslai.com.cn/upload/69/0/common/2482d484865039ea2b1f48e359b54efd1.jpg",
                "gift_name": "纸巾一包",
                "giftvoucher_name": "礼品券"
            }
        ],
        "total_count": 1,
        "page_count": 1
    }
}

错误时返回:

{
    "code": -1,
    "message": "系统繁忙"
}

返回参数说明:

参数名 类型 说明
record_id int 记录ID
shop_id int 店铺ID
state_name string 状态描述
state int 状态 1已领用(未使用) 2已使用 3已过期
start_time string 有效日期开始时间
end_time string 有效日期结束时间
pic_cover_mid string 中图路径
pic_cover_big string 大图路径
gift_name string 赠品名称
giftvoucher_name string 礼品券名称