# 我的收藏列表
~~~[api]
get:/user/favorites/my
page#分页查询[可选]如:2,3
<<<
success
{
"code": 1,
"msg": "请求成功",
"data": [
{
"id": 7,
"title": "fad",
"url": "http://cmf5-api.im/portal/article/index/id/22/cid/1.html",
"description": "fad",
"create_time": 1496133161
},
{
"id": 6,
"title": "fasd",
"url": "http://cmf5-api.im/portal/article/index/id/16.html",
"description": "fasd",
"create_time": 1496128669
},
{
"id": 5,
"title": "fasdf",
"url": "http://cmf5-api.im/portal/article/index/id/31/cid/1.html",
"description": "fasdf",
"create_time": 1494143215
}
]
}
<<<
success 1.0.0 以后
{
"code": 1,
"msg": "请求成功",
"data": {
"list": [
{
"id": 10,
"user_id": 1,
"title": "test",
"url": "http://cmf5-api.im/portal/article/index/id/1/cid/1.html",
"description": "description",
"table_name": "portal_post",
"object_id": 21,
"create_time": 1528346429
},
{
"id": 9,
"user_id": 1,
"title": "test",
"url": "http://cmf5-api.im/portal/article/index/id/1/cid/1.html",
"description": "description",
"table_name": "portal_post",
"object_id": 2,
"create_time": 1504059294
},
{
"id": 8,
"user_id": 1,
"title": "test",
"url": "",
"description": "description",
"table_name": "portal_post",
"object_id": 12,
"create_time": 1504059199
},
{
"id": 7,
"user_id": 1,
"title": "fad",
"url": "http://cmf5-api.im/portal/article/index/id/22/cid/1.html",
"description": "fad",
"table_name": "portal_post",
"object_id": 22,
"create_time": 1496133161
},
{
"id": 6,
"user_id": 1,
"title": "fasd",
"url": "http://cmf5-api.im/portal/article/index/id/16.html",
"description": "fasd",
"table_name": "portal_post",
"object_id": 16,
"create_time": 1496128669
},
{
"id": 5,
"user_id": 1,
"title": "fasdf",
"url": "http://cmf5-api.im/portal/article/index/id/31/cid/1.html",
"description": "fasdf",
"table_name": "portal_post",
"object_id": 31,
"create_time": 1494143215
}
]
}
}
~~~
## 小程序代码
```
api.get({
url: 'user/favorites/my',
data: {
},
success: data => {
if (data.code == 1) {
// 成功
}
if (data.code == 0) {
// 失败
}
console.log(data);
}
});
```