Open yangdongchao opened 5 years ago
url:"api/user/favorite/add" // 请求1。用户添加收藏
{ "method":"GET", "headers":"你们看", "Content-Type":"application/json" } 后端需要参数: userId,articleId. 后端返回参数: 返回数据格式 { "status":"success",//status表示成功或失败 "message":null, }
url:"api/user/favorite/delete" // 请求1。用户删除收藏
url:"api/user/favorite/add" // 请求1。用户添加收藏
{ "method":"GET", "headers":"你们看", "Content-Type":"application/json" } 后端需要参数: userId,articleId. 后端返回参数: 返回数据格式 { "status":"success",//status表示成功或失败 "message":null, }
url:"api/user/favorite/delete" // 请求1。用户删除收藏
{ "method":"GET", "headers":"你们看", "Content-Type":"application/json" } 后端需要参数: userId,articleId. 后端返回参数: 返回数据格式 { "status":"success",//status表示成功或失败 "message":null, }