简要描述:
- 商城专辑列表
请求URL:
GET/plugin.yz-supply.admin.productAlbum.getListByShop
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
search | arr | true | 搜索条件 |
search=>name | str | false | 专辑名称 |
search=>time | arr | false | 时间搜索 |
search=>start | int | false | 开始时间戳 |
search=>end | int | false | 结束时间戳 |
page | int | true | 页码 |
返回示例:
正确时返回:
// 20220803175827
// http://mdzz.com/admin/shop?route=plugin.yz-supply.admin.productAlbum.getListByShop&middleground_configuration_id=1&album_id=6
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 6,
"uniacid": 5,
"sid": 2,
"name": "阿斯顿撒多",
"describe": "的数据库个好看夹覆盖",
"covers": [
{
"src": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022413/1649832489v2-025c02403bde66c4d3e6ef237c7fb7e0_1440w.jpeg"
},
{
"src": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022413/1649832494v2-c057fce621e66b10ddc772423de85127_1440w.jpeg"
}
],
"is_share": 1,
"import_count": 0,
"browse_count": 0,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"time_name": "07月31日",
"goods_count": 2,
"sales": 0,
"has_many_relation_tag": [
{
"id": 3,
"uniacid": 5,
"product_album_id": 6,
"tag_id": 5,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"has_one_tag": {
"id": 5,
"uniacid": 5,
"sid": 2,
"name": "标签1",
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null
}
},
{
"id": 4,
"uniacid": 5,
"product_album_id": 6,
"tag_id": 6,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"has_one_tag": {
"id": 6,
"uniacid": 5,
"sid": 3,
"name": "标签3",
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null
}
}
],
"has_many_relation_product": [
{
"id": 4,
"uniacid": 5,
"product_album_id": 6,
"product_id": 807,
"supply_product_id": 324,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:21",
"deleted_at": null,
"has_one_product": {
"id": 807,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 0,
"display_order": 0,
"title": "商品测试",
"thumb": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"thumb_url": "a:2:{i:0;s:91:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745839高夫洗面奶.png\";i:1;s:115:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022613/1655113191v2-0d3c9c347a80718cee96eba60c37ba17_r.jpeg\";}",
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"stock": 555,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2022-07-31 16:35:20",
"deleted_at": null,
"updated_at": "2022-07-31 16:35:20",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 21,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"status_name": "下架"
}
},
{
"id": 5,
"uniacid": 5,
"product_album_id": 6,
"product_id": 808,
"supply_product_id": 325,
"created_at": "2022-07-31 16:35:21",
"updated_at": "2022-07-31 16:35:21",
"deleted_at": null,
"has_one_product": {
"id": 808,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 0,
"display_order": 0,
"title": "商品测试",
"thumb": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"thumb_url": "a:1:{i:0;s:91:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745839高夫洗面奶.png\";}",
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"stock": 555,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2022-07-31 16:35:21",
"deleted_at": null,
"updated_at": "2022-07-31 16:35:21",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 12,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"status_name": "下架"
}
}
]
}
],
"first_page_url": "http://mdzz.com/admin/shop?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://mdzz.com/admin/shop?page=1",
"next_page_url": null,
"path": "http://mdzz.com/admin/shop",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
list | arr | 专辑列表 |
list=>id | int | 专辑id |
list=>name | str | 专辑名称 |
list=>covers | arr | 专辑封面信息 |
list=>covers=>src | str | 专辑封面 |
list=>has_many_relation_tag | arr | 标签信息 |
list=>has_many_relation_tag=>has_one_tag=>name | str | 标签名称 |
list=>has_many_relation_product | arr | 商品信息 |
list=>has_many_relation_product=>has_one_product=>thumb_url | str | 商品图片 |
list=>has_many_relation_product=>has_one_product=>title | str | 商品名称 |
list=>has_many_relation_product=>has_one_product=>price | float | 现价 |
list=>has_many_relation_product=>has_one_product=>market_price | float | 原价 |
list=>has_many_relation_product=>has_one_product=>cost_price | float | 成本价 |
list=>time_name | str | 时间 |
list=>sales | int | 已售数量 |
list=>browse_count | int | 访问数量 |
list=>product_count | int | 商品数量 |