企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 获取编辑作业帖的信息 > 请注意 `帖子信息` 的 `isEdit` 属性,当为false时,仅允许查看不能编辑(任课老师) > 任课老师在编辑作业的情况下,能看帖子内容,但不能编辑帖子内容 ~~~[api] get:/api/article/edit *int:id#帖子ID <<< success { "code": 1, "msg": "获取成功", "info": { // 帖子信息 "id": 2, "user_id": 1, "class_id": 1, "title": "作业标题", "content": "下面是今天的作业,请各位同学认真完成。也请个人家长认真督促。", "pageview": 0, "star": 1, "receive": 2, "success": 0, "top": 0, "create_time": "2018-06-12 17:36:41", "update_time": "2018-06-12 17:36:41", "isEdit": true, // 是否允许编辑 "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": "内容不存在" } ~~~