-
Notifications
You must be signed in to change notification settings - Fork 1
我收藏的主题
HanJie edited this page May 28, 2020
·
1 revision
请求方法 | 请求地址 | 是否需要登录 |
---|---|---|
GET | https://v2ex.com/my/topics | 是 |
查询参数
参数名 | 参数值 | 类型 |
---|---|---|
p | 当前页码,从 1 开始 | Int |
返回结果:com.imhanjie.v2ex.api.model.FavoriteTopics
{
"code": 1,
"data": {
"currentPage": 1, // 当前页
"totalPage": 2, // 总页数
"topics": [
{
"id": 676139,
"isTop": false,
"latestReplyTime": "5 分钟前",
"nodeName": "programmer",
"nodeTitle": "程序员",
"replies": 36,
"title": "我想做一个很厉害的计时软件 提高在家工作效率",
"userAvatar": "https://cdn.v2ex.com/avatar/7ccf/9ed7/258756_normal.png?m\u003d1532050545",
"userName": "sited"
},
{
"id": 676171,
"isTop": false,
"latestReplyTime": "27 分钟前",
"nodeName": "career",
"nodeTitle": "职场话题",
"replies": 34,
"title": "工作中科班出身和转专业的人的表现是否有差距?",
"userAvatar": "https://cdn.v2ex.com/gravatar/a19cf4180202dab1be072042bd9c990b?s\u003d48\u0026d\u003dretro",
"userName": "1oNflow"
}
]
}
}
@GET("/my/topics") suspend fun loadFavoriteTopics( @Query("p") pageIndex: Int ): RestfulResult<FavoriteTopics>