获取用户博客接口

地址:

/WebBlog/GetUserBlog

方法:

GET

是否需要登录:

参数说明:

参数名称 是否必选 参数类型 参数描述
userId Integer 用户id
pageSize String 获取数量,不填是10
offset String 起始位子,因为是按id倒序,第一次不填,后面请求传入最后一条的数据id

请求示例:

curl -d 'userId=1&pageSize=5&offset=6' '/WebBlog/GetUserBlog'

返回示例:

{"code":200,"message":"请求成功","data":[{"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"},{"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"}]}