3 Star 0 Fork 0

商城项目 / doc.weecot.com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
valuecard.md 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
Jade 提交于 2021-03-01 10:25 . first commit

储值卡列表

接口描述:

  • 储值卡列表(valuecard)

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 wanganlin 2017-03-20 2017-03-25

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
Content-Type String 请求类型: application/json
token String 请求内容签名

请求参数:

参数名 是否必须 默认值 类型 说明
page String
size String

返回示例:

正确时返回:

{
    "status": "success",
    "data": [
        {
            "vid": 1,
            "tid": 1,
            "value_card_sn": "dc00000002",
            "value_card_password": "SZMLLIG1",
            "user_id": 60,
            "vc_value": "¥10.00",
            "card_money": "¥8.00",
            "bind_time": "2018-05-29 19:33:07",
            "end_time": "2021-05-29 19:33:07",
            "id": 1,
            "name": "测试储值卡",
            "use_condition": "指定商品",
            "is_rec": 0,
            "status": true
        }
    ],
    "time": 1554370519
}

错误时返回:

{
    "status": 'failed',
    "errors": {
        "code": 404,
        "message": "message"
    },
    "time": 1553515084
}

返回参数说明:

参数名 类型 说明
valuecard List[]
├─ vid Number 储值卡id
├─ tid Number 储值卡类型ID
├─ value_card_sn String 储值卡序列号
├─ value_card_password String 储值卡密码
├─ user_id Number 绑定用户ID
├─ vc_value String 储值卡面值
├─ card_money String 储值卡余额
├─ bind_time String 绑定时间
├─ end_time String 截止日期
├─ id Number 储值卡类型ID
├─ name String 储值卡类型名称
├─ use_condition String 储值卡使用条件
├─ is_rec Number 可否充值
├─ status Bool 状态

备注:

  • 更多返回错误代码请看首页的错误代码描述
其他
1
https://gitee.com/dscmall_test/doc.weecot.com.git
git@gitee.com:dscmall_test/doc.weecot.com.git
dscmall_test
doc.weecot.com
doc.weecot.com
master

搜索帮助