[TOC]
* * * * *
### WeEngine Android、IOS Favorite api
#### 關注列表
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.favorite.get_list
*string:page=1#頁碼
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"list": [
{
"id": "", //關注ID
"goodsid": "", //商品ID
"title": "", //商品標題
"thumb": "", //縮略圖
"marketprice": "", //商品現價
"productprice": "", //商品原價
"merchid": "", //商戶ID
"merchname": "", //商戶名稱
"openmerch": //是否開啟多商戶 0否 1是
}
],
"total": "", 數量
"pagesize": , //每頁數量
"openmerch": , //是否開啟多商戶 0否 1是
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 添加關注
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.favorite.toggle
*string:id=默認值#商品ID
*string:openid=默認值#openid
*string:isfavorite=默認值#
<<<
success
{
"status": 1,
"result": {
"isfavorite": 1
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 移除關注
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.favorite.remove
*array:ids=默認值#關注ID組
*string:openid=默認值#openid
<<<
success
{
"status": 1
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~