1092772959 / AppDevelopment

夏季小学期app开发
0 stars 1 forks source link

我的收藏接口 #10

Open yangdongchao opened 5 years ago

yangdongchao commented 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。用户删除收藏

{ "method":"GET", "headers":"你们看", "Content-Type":"application/json" } 后端需要参数: userId,articleId. 后端返回参数: 返回数据格式 { "status":"success",//status表示成功或失败 "message":null, }