//设置取消关注
@Headers("Content-Type:application/x-www-form-urlencoded")
@HTTP(method = "DELETE", path = Constant.NEWATTENTION, hasBody = true)
@FormUrlEncoded
Call<ResultInfo> setNotAttention(@Field("user_id") String user_id, @Field("token") String token, @Field("attu_id") String attu_id, @Field("type") String type);

1、首先要设置请求头 application/x-www-form-urlencoded

2、设置请求的方法 因为默认delete请求是不能带body的 所以需要单独设置为true

最新文章

  1. Windows Azure一些小技巧集合
  2. Android USB Host与HID通讯
  3. pvoid64 pvoid
  4. UIGestureRecognizer
  5. Sphinx 实时索引
  6. MVC 详细说明
  7. Dom操作的分类
  8. iOS学习笔记: 使用CAShapeLayer创建带有空心区域的遮罩层
  9. Memcache+Cookie解决分布式系统共享登录状态------------------------------Why Memcached?
  10. 动态规划:最长上升子序列(LIS)
  11. Firemonkey使用iOS的第三方静态库(Link Binary With Libraries)
  12. 一句话解释JVM中空间分配担保的问题
  13. Mysql基本操作整理
  14. MyBatis打印SQL执行时间
  15. 学习ASP.NET Core Razor 编程系列十二——在页面中增加校验
  16. php 积分抽奖活动(大转盘)
  17. VMWare Station 问题汇总
  18. 2013长春网赛1001 hdu 4759 Poker Shuffle
  19. java解析XML之DOM解析和SAX解析(包含CDATA的问题)
  20. 一段javascript设计模式应用场景

热门文章

  1. iOS 两个tableview的 瀑布流
  2. codeforces 469B Chat Online 解题报告
  3. laravel基础课程---2、Laravel配置文件、路由及php artisan(php artisan是什么)
  4. 最小点覆盖 hdu--1054
  5. Java中的final和static
  6. HTTP Status 500 - Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove &#39;readOnly&#39; marker from transaction definition.
  7. linux下配置jdk+tomcat
  8. linux命令:wc命令
  9. css3单位em,rem,px,vw,vh等
  10. CodeForces 1109E. Sasha and a Very Easy Test