简要描述:

获取供应链商品专辑列表

请求域名:

  • http://xx.com

请求URL:

GET/plugin.decorate.admin.decorate-common.get-product-album

参数:

参数名 是否必须 类型 说明
page int 分页
search{ object 搜索对象
name string 搜索关键词
}

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "success",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 14,
        "uniacid": 1,
        "sid": 267,
        "name": "社群引流爆款",
        "describe": "",
        "covers": [
          {
            "src": "https://yunxingongyinglian.oss-cn-guangzhou.aliyuncs.com/2023426/16825029154.png"
          }
        ],
        "is_share": 1,
        "import_count": 0,
        "browse_count": 3,
        "created_at": "2023-06-19 14:12:36",
        "updated_at": "2023-07-31 09:57:35",
        "deleted_at": null,
        "time_name": "06月19日",
        "product_count": 160,
        "sales": "1",
        "has_many_relation_tag": [
          {
            "id": 18,
            "uniacid": 1,
            "product_album_id": 14,
            "tag_id": 8,
            "created_at": "2023-06-19 14:12:36",
            "updated_at": "2023-06-19 14:12:36",
            "deleted_at": null,
            "has_one_tag": {
              "id": 8,
              "uniacid": 1,
              "sid": 4,
              "name": "普通商品",
              "created_at": "2023-06-19 14:12:36",
              "updated_at": "2023-06-19 14:12:36",
              "deleted_at": null
            }
          }
        ]
      }
    ],
    "first_page_url": "https://dev8.yunzmall.com/admin/shop?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://dev8.yunzmall.com/admin/shop?page=1",
    "next_page_url": null,
    "path": "https://dev8.yunzmall.com/admin/shop",
    "per_page": 15,
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

错误时返回:

{
    "result": 0,
    "msg": "",
    "data": []
}

返回参数说明:

参数名 类型 说明
total int 数据总条数
per_page int 每页显示多少条数据
current_page int 当前页

data参数说明:

参数名 类型 说明
id int 专辑id
name string 专辑名称
covers array 专辑封面数组 直接拿数组第一个元素的src就可以了
describe string 专辑描述
product_count int 产品数量
browse_count int 累计访问
sales int 累计销量

备注:

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