文档
测试

获取我的帖子

GET
/app/userCenter/getMyPost

请求头

参数名
类型
描述
必填
token
String
必填

请求参数

参数名
类型
描述
必填
pageIndex
int
当前页
必填
pageSize
int
显示条数
必填
type
int
类型 1主帖 2提问
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 0 成功 其他失败
必填
msg
String
响应信息
必填
obj
Object
响应信息
必填

说明 / 示例

## `返回示例 - 带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "postId": 40, // 帖子id "forumClassId": 301, // 论坛频道ID "content": "测试发帖子", // 帖子内容 "contentType": 2, // 内容类型:1纯文字 2图片+文字 3视频+文字 "imgs": "http://cunchu.yudingketang.com/q,http://cunchu.yudingketang.com/b", // "imgList": [ "http://cunchu.yudingketang.com/q", "http://cunchu.yudingketang.com/b" ], // 图片列表 "video": null, // 视频链接 "memberId": 83, // 发帖用户ID "themeId": 2, // 论坛话题ID "themeName": "学习心得", // 论坛话题名称 "nickName": "高老师", // 用户昵称 "avatar": "http://cunchu.yudingketang.com/9F84E335ABA34EC7A2B08F9662A86D57.png", // 头像 "isLecturer": null, // 是否为讲师 0否 1是 "likeCount": 0, // 点赞数 "isLike": 0, // 是否点赞 0否 1是 "commentCount": 4, // 评论数 "isComment": 1, // 是否评论 0否 1是 "forwardCount": 0, // 转发数 "isTechComment": 0, // 是否有讲师评论 0否 1是 "isTop": 0, // 是否置顶 0否 1是 "topTime": null, // 置顶时间 "createTime": "2021-08-25 14:31:56", // 发帖时间 "isDel": 0, // 是否删除 0否 1是 "delTime": null, // 删除时间 "isFollower": null, // 用户是否关注发帖人 0否 1是 "isRelation": null // 用户和发帖人是否互相关注 0否 1是 } ], "total": 1, // 总共数据量 "size": 10, // 显示条数 "current": 1, // 当前页 "orders": [], "hitCount": false, "searchCount": true, "pages": 1 // 总共多少页 } } ``` ## `返回示例 - 不带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "postId": 40, "forumClassId": 301, "content": "测试发帖子", "contentType": 2, "imgs": "http://cunchu.yudingketang.com/q,http://cunchu.yudingketang.com/b", "imgList": [ "http://cunchu.yudingketang.com/q", "http://cunchu.yudingketang.com/b" ], "video": null, "memberId": 83, "themeId": 2, "themeName": "学习心得", "nickName": "高老师", "avatar": "http://cunchu.yudingketang.com/9F84E335ABA34EC7A2B08F9662A86D57.png", "isLecturer": null, "likeCount": 0, "isLike": 0, "commentCount": 4, "isComment": 1, "forwardCount": 0, "isTechComment": 0, "isTop": 0, "topTime": null, "createTime": "2021-08-25 14:31:56", "isDel": 0, "delTime": null, "isFollower": null, "isRelation": null } ], "total": 1, "size": 10, "current": 1, "orders": [], "hitCount": false, "searchCount": true, "pages": 1 } } ```