====== 评论接口 ======
------
===== 1、收藏列表 =====
=== 接口名称 ===
collects/list
=== 请求方式 ===
get
=== 请求参数 ===
^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^
| memberId| int | 是 | 会员id |
| type| int | 是 | 类型(1 产品,2店铺) |
|pageSize|int|否|每页数量 默认为50|
|keyword|string|否|关键字|
=== 返回值 ===
^ 名称 ^ 类型 ^ 说明 ^
| items| data| 数据 |
| _links| data| 分页信息 |
| _meta| data| 查询数据信息 |
=== items数据说明 ===
^ 名称 ^ 类型 ^ 说明 ^
| type| int| 类型(1 产品,2店铺)|
| item_id| int| 产品ID或者店铺id |
| member_id| int| 会员ID |
|addTime|string|收藏时间|
| products| array| 产品详情 {
"id": "16", //产品id
"business_id": "1",//供货商id
"name": "dasfdas",//产品名称
"pic1": "http://pic.8dage.net/data/uploadfile/images/1/20160517/d63d58e36f.png",//产品图片
"shop_price": "112.00",//产品价格
"sales": "1"//销量,
"market_price": "1"//市场价,
"send_point": "1"//赠送积分,
"is_sell": "1"//销售状态 1销售中 2下架 3 删除
} |
|shops| array| 店铺详情 {
"supplier_id": "1",//店铺id
"shop_name": "这是衣服店2",//店铺名称
"area_name": null,//店铺地区
"linkman": null,//店铺联系人
"address": null,//店铺地址
"logo": null//店铺logo,
"service_tel": null//联系电话,
"logo": null//店铺logo,
"goods_count": null//产品数量,
"fav_count": null//收藏数量,
} |
===== 2、添加收藏 =====
=== 接口名称 ===
collects/create
=== 请求方式 ===
post
=== 请求参数 ===
^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^
| memberId| int| 是 |会员id |
| type| int| 是 |类型 (1 产品,2店铺) |
| itemId| int|是 |产品ID或者店铺id |
=== 返回值 ===
^ 名称 ^ 类型 ^ 说明 ^
| result | bool | 返回结果 success 成功 error 失败 |
| message| string | 返回信息 |
===== 3、取消收藏 =====
=== 接口名称 ===
collects/delete
=== 请求方式 ===
post
=== 请求参数 ===
^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^
| memberId| int| 是 |会员id |
| type| int| 是 |类型 (1 产品,2店铺) |
| itemId| int|是 |产品ID或者店铺id |
=== 返回值 ===
^ 名称 ^ 类型 ^ 说明 ^
| result | bool | 返回结果 success 成功 error 失败 |
| message| string | 返回信息 |