## 工作收藏添加和取消
~~~[api]
post:/favorite-action.json
int:id#工作ID
string:type#操作[add=添加收藏,delete=删除收藏]
<<<
success
{
"status": "success",
"msg": "收藏成功"
}
<<<
success
{
"status": "success",
"msg": "取消收藏成功"
}
<<<
fail
{
"status": "success",
"msg": "您已收藏该工作,无需重复收藏"
}
<<<
fail
{
"status": "success",
"msg": "您未收藏该工作,无需重复取消"
}
<<<
error
{
"status": "success",
"msg": "未知操作" // type参数不正确
}
~~~