简要描述:

  • 我的藏品

请求域名:

  • http://xx.com

请求URL:

POST/plugin.collection-center.frontend.controllers.collection.collection-manage

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "collection_list": {
            "current_page": 1,
            "data": [
                {
                    "total": 1,
                    "goods_id": 111,
                    "goods": {
                        "id": 111,
                        "title": "测试2-藏品1-1",
                        "thumb": "https://img0.baidu.com/it/u=1937665916,307154246&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333",
                        "status_name": null
                    }
                },
                {
                    "total": 1,
                    "goods_id": 112,
                    "goods": {
                        "id": 112,
                        "title": "测试1-藏品1-1",
                        "thumb": "https://img0.baidu.com/it/u=1937665916,307154246&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333",
                        "status_name": null
                    }
                }
            ],
            "first_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://yzhonshop.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        }
    }
}

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
collection_list.total int 藏品数量
collection_list.goods_id int 藏品id
collection_list.goods.title string 藏品名称
collection_list.goods.thumb string 藏品图片
collection_list.can_use_total int 可使用藏品的数量

备注:

  • 更多返回错误代码请看首页的错误代码描述