简要描述:
- 查看商品
请求URL:
GET/plugin.yz-supply.admin.productAlbum.getDetailByUid
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
search | arr | true | 条件 |
search=>id | int | true | 专辑id |
search=>page | int | true | 页码 |
search=>pageSize | int | false | 每页数量 |
返回示例:
正确时返回:
// 20220803162658
// http://mdzz.com/admin/shop?route=plugin.yz-supply.admin.productAlbum.getDetail&middleground_configuration_id=1
{
"result": 1,
"msg": "获取成功",
"data": {
"album": {
"id": 2,
"created_at": 1655361360,
"updated_at": 1659515218,
"uid": 1,
"name": "阿斯顿撒多",
"describe": "的数据库个好看夹覆盖",
"covers": [
{
"src": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202283/1659507956上树.png"
}
],
"relations": [
{
"id": 15,
"created_at": 1659507974,
"updated_at": 1659507974,
"product_album_id": 2,
"tag_id": 2,
"tag": {
"id": 2,
"created_at": 1655197351,
"updated_at": 1655197351,
"name": "标签1"
}
},
{
"id": 16,
"created_at": 1659507974,
"updated_at": 1659507974,
"product_album_id": 2,
"tag_id": 3,
"tag": {
"id": 3,
"created_at": 1655197371,
"updated_at": 1655197371,
"name": "标签3"
}
}
],
"is_share": 1,
"import_count": 0,
"browse_count": 38,
"product_count": 2,
"sales": 33,
"time_name": "6月16日"
},
"list": [
{
"id": 324,
"updated_at": 1655113195,
"created_at": 1654745869,
"title": "商品测试",
"origin_price": "100.00",
"guide_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"activity_price": "100.00",
"min_price": 10000,
"stock": 555,
"sales": 21,
"feedback_rate": 0,
"cost_rate": 10,
"sn": "",
"code": "",
"image_url": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"video_url": "",
"agreement_price": "100.00",
"market_price": "100.00",
"sale_price": "100.00",
"origin_rate": "0.00",
"activity_rate": "0.00",
"is_presence": 1
},
{
"id": 325,
"updated_at": 1654766521,
"created_at": 1654745869,
"title": "商品测试",
"origin_price": "100.00",
"guide_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"activity_price": "100.00",
"min_price": 10000,
"stock": 555,
"sales": 12,
"feedback_rate": 0,
"cost_rate": 10,
"sn": "",
"code": "",
"image_url": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"video_url": "",
"agreement_price": "100.00",
"market_price": "100.00",
"sale_price": "100.00",
"origin_rate": "0.00",
"activity_rate": "0.00",
"is_presence": 1
}
],
"page": 1,
"pageSize": 15,
"total": 2
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
album | arr | 专辑信息 |
album=>id | int | 专辑id |
album=>name | str | 专辑名称 |
album=>covers | arr | 专辑封面信息 |
album=>covers=>src | str | 专辑封面 |
album=>describe | str | 专辑描述 |
album=>relations | arr | 标签信息 |
album=>relations=>tag=>name | str | 标签名称 |
album=>time_name | str | 时间 |
album=>product_count | int | 商品数量 |
album=>sales | int | 已售数量 |
album=>sales | int | 已售数量 |
album=>browse_count | int | 访问数量 |
list | arr | 商品信息 |
list=>image_url | str | 商品图片 |
list=>title | str | 商品名称 |
list=>activity_rate | float | 营销利润率 |
list=>origin_rate | float | 利润率 |
list=>agreement_price | float | 协议价 |
list=>guide_price | float | 指导价 |
list=>ctivity_price | float | 营销价 |
list=>is_presence | int | 1:已导入 |