# 添加收藏
~~~[api]
post:/users/post/collection
*int:uid=20180001#用户id
*int:aid=1#收藏的文章id
<<<
success
{
"status": true,
"resdata": [
{
"id": 1,
"title": "天商计科专业简介",
"time": "2018-02-26 15:30:36",
"tagid": "[\"001\"]",
"typeid": 3
}
]
}
<<<
nodata
{
"status": false,
"resdata": []
}
<<<
repatedata
{
"status": false,
"title": "该文章已收藏",
"message": "不能重复收藏文章",
"resdata": [
{
"id": 1,
"title": "天商计科专业简介",
"time": "2018-02-26 15:30:36",
"tagid": "[\"001\"]",
"typeid": 3
}
]
}
~~~
### 说明:
```resdata```字段为操作后的最新返回结果
```json
"resdata": [
{
"id": 1,
"title": "天商计科专业简介",
"time": "2018-02-26 15:30:36",
"tagid": "[\"001\"]",
"typeid": 3
}
]
```