#Add to favorites
```javascript
WXAPI.shopFavPut(token, shopId)
```
+ token current user login credentials
+ shopId store ID
```json
{
code: 0,
msg: 'success'
}
```
# Check if it has been collected
```javascript
WXAPI.shopFavCheck(token, shopId)
```
+ token current user login credentials
+ shopId store ID
```json
{
code: 0,
msg: 'success',
data: 'Collected'
}
```
```json
{
code: -1,
msg: 'Server internal error',
data: 'Not favorited'
}
```
# Get the collection list
```javascript
WXAPI.shopFavList({
page: 1
})
```
+ page gets the page data. If this parameter is not passed, the default value is 1.
+ pageSize How many records are obtained per page? If this parameter is not passed, the default is 50
+ nameLike store name keyword fuzzy search
```json
{
"code": 0,
"data": {
"result": [
{
"dateAdd": "2022-04-26 21:02:35",
"id": 2,
"name": "XXXX Foot Bath Shop",
"pic": "https://dcdn.it120.cc/2022/04/25/8ca9988c-b42c-4dab-989b-2fc718cfce6b.jpg",
"shopId": 45154,
"shopInfo": {
"address": "District 2, No. 142-1, Xinghuo South Road, Linping District, Hangzhou City, Zhejiang Province",
"bindUid": 2906486,
"cityId": "140400000000",
"cyTablePayMod": 1,
"dateAdd": "2022-04-18 16:43:38",
"dateUpdate": "2022-04-25 21:34:30",
"districtId": "140403000000",
"goodsNeedCheck": false,
"id": 45154,
"introduce": "Professional massage shop franchise chain Lao Aitang moxibustion and health care franchise Massage + moxibustion tools + products Formal traditional Chinese medicine physiotherapy projects. Professional massage shop franchise chain to solve various sub-health Akka problems around you. Professional massage shop franchise chain Lao Aitang moxibustion health franchise franchise Massage + moxibustion tools + products Formal traditional Chinese medicine physiotherapy projects. Professional massage shop franchise chain to solve various sub-health Aka problems around you. Professional massage shop franchise chain Lao Aitang moxibustion health franchise Massage + moxibustion tools + products Formal Chinese medicine physiotherapy projects. Professional massage parlor chain stores to solve various sub-health Akka problems around you. Professional massage parlor franchise chains Lao Aitang moxibustion and health franchise Massage + moxibustion tools + products Formal Chinese medicine physiotherapy projects. Professional massage parlor chain stores to solve various sub-health Akka problems around you. Professional massage shop franchise chains Lao Aitang moxibustion health franchise franchise Massage + moxibustion tools + products Regular Chinese products Formal traditional Chinese medicine physiotherapy project. Professional massage shop franchise chain to solve various sub-health and Akka problems around you. Professional massage shop franchise chain and Lao Aitang moxibustion and health franchise. Massage + moxibustion tools + products. Formal traditional Chinese medicine physiotherapy project. Professional massage shop franchise chain to solve various sub-health and Akka problems around you. Professional massage shop franchise chain and Lao Aitang moxibustion and health franchise ",
"latitude": 30.389913,
"linkMan": "Boss Zhang",
"linkPhone": "0571-11111111",
"longitude": 119.99081,
"name": "XXXX Foot Bath Shop",
"numberGoodReputation": 0,
"numberOrder": 0,
"numberReputation": 0,
"openScan": false,
"openWaimai": true,
"openZiqu": true,
"openingHours": "08:00-23:00",
"paixu": 0,
"pic": "https://dcdn.it120.cc/2022/04/25/8ca9988c-b42c-4dab-989b-2fc718cfce6b.jpg",
"provinceId": "140000000000",
"status": 1,
"statusStr": "Normal",
"taxGst": 0,
"taxService": 0,
"userId": 22
}
}
],
"totalRow": 1,
"totalPage": 1
},
"msg": "success"
}
```
# Delete collection
```javascript
WXAPI.shopFavDelete(token, shopId)
```
+ token current user login credentials
+ shopId store ID
```json
{
code: 0,
msg: 'success'
}
```