会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
错失单刀
博客园
首页
新随笔
联系
订阅
管理
2020年3月27日
一种封装Retrofit的方法,可以自动解析Gson,回避Method return type must not include a type variable or wildcard: retrofit2.Call<T>的问题
摘要: 封装目的:屏蔽底层实现,提供统一接口,并支持Gson自动转化 最初封装: //请求方法 interface RequestListener { interface PostListener { @POST fun <T>call(@Url url: String, @Body t:Any) : Ca
阅读全文
posted @ 2020-03-27 08:03 李振欣
阅读(2194)
评论(0)
推荐(0)
编辑
公告