文章排名接口

地址:

/HomePage/TopThreeUserArticles

方法:

GET

是否需要登录:

参数说明:

参数名称 是否必选 参数类型 参数描述
categoryName String 文章类别名称

请求示例:

curl -d 'categoryName=技术' '/HomePage/TopThreeUserArticles'

返回值说明:

参数名称 是否必选 参数类型 参数描述
topThreeUserArticles Map<String,UserArticle> 排名最高的三篇用户文章

返回示例:

{"code":200,"message":"请求成功","data":{"mostRecommendArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"},"mostCommentArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"},"mostReadArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"}}}