地址:
/WebBlog/GetUserHotBlog
方法:
GET
是否需要登录:
否
参数说明:
参数名称 | 是否必选 | 参数类型 | 参数描述 |
---|---|---|---|
userId | 是 | Integer | 用户id |
num | 否 | Integer | 获取数量,不填是10 |
请求示例:
curl -d 'userId=1&num=5' '/WebBlog/GetUserHotBlog'
返回示例:
{"code":200,"message":"请求成功","data":[{"webUserId":1,"categoryId":1,"title":"测试第一篇","content":"圣达菲","readTimes":136,"thumbupTimes":13,"isMainPage":1,"status":1,"commentTimes":5,"id":1,"createTime":"2016-06-10 13:51:25","updateTime":"2016-06-17 16:39:08"},{"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"},{"webUserId":1,"categoryId":1,"title":"第三篇","content":"阿水电费","readTimes":1,"thumbupTimes":1,"isMainPage":0,"status":1,"commentTimes":1,"id":3,"createTime":"2016-06-18 00:00:23","updateTime":"2016-06-18 00:00:23"},{"webUserId":1,"categoryId":1,"title":"第四篇","content":"阿水电费","readTimes":1,"thumbupTimes":1,"isMainPage":0,"status":1,"commentTimes":1,"id":4,"createTime":"2016-06-18 00:00:34","updateTime":"2016-06-18 00:00:34"},{"webUserId":1,"categoryId":1,"title":"第五篇","content":"阿水电费","readTimes":1,"thumbupTimes":1,"isMainPage":0,"status":1,"commentTimes":1,"id":5,"createTime":"2016-06-18 00:00:40","updateTime":"2016-06-18 00:00:40"}]}