## 帖子详情
~~~[api]
post:/api/article/info
*int:id#帖子ID
<<<
success
{
"code": 1,
"msg": "获取成功",,
"isJoin": true, // 是否已加入该班级
"info": { // 帖子详情
"id": 2,
"user_id": 1,
"class_id": 1,
"title": "作业标题",
"content": "下面是今天的作业,请各位同学认真完成。也请个人家长认真督促。",
"pageview": 0, // 浏览数
"star": 0, // 点赞数
"receive": 0, // 已收到数量
"success": 0, // 已完成数量
"read_count": 1, // 已读人数
"read_record": 1, // 强制已读状态
"top": 0, // 置顶状态
"create_time": "2018-06-12 17:36:41",
"update_time": "2018-06-12 17:36:41",
"img": [{
"id": 1,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}, {
"id": 2,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}, {
"id": 3,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}]
},
"result": [{ // 作业列表
"id": 1,
"article_id": 2,
"user_id": 0,
"content": "背诵第二单元的单词,明天默写",
"subject": "英语",
"create_time": "2018-06-12 17:36:41",
"img": []
}, {
"id": 2,
"article_id": 2,
"user_id": 0,
"content": "明天带一条小鱼来",
"subject": "生物",
"create_time": "2018-06-12 17:36:41",
"img": [{
"id": 1,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}, {
"id": 2,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}, {
"id": 3,
"bind_id": 2,
"src": "https:\/\/miniprogram.xtow.net\/static\/cover\/b1\/e6b73786e18e1051270130756bc54e.png"
}]
}]
}
<<<
error
{
"code": 0,
"msg": "内容不存在"
}
<<<
error
{
"code": 0,
"msg": "请先加入该班级",
"isJoin": false,
"class_id": 2
}
~~~