Weteach-小程序


机构教室列表

<p><strong>简要描述:</strong> </p> <ul> <li>机构教室列表</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/super/organization/{oid}/classroom</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>get </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">oid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>机构ID</td> </tr> <tr> <td style="text-align: left;">key</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>搜索</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "result": "success", "data": { "current_page": 1, "data": [ { "id": 5, "name": "class001", "student_capacity": 10, "description": null, "org_id": 1, "created_at": "2019-01-18 10:53:13", "classList": [ { "id": 6, "name": "编辑测试" }, { "id": 44, "name": "编辑测试" } ] }, { "id": 6, "name": "class002", "student_capacity": 8, "description": null, "org_id": 1, "created_at": "2019-01-18 14:46:24", "classList": [] }, { "id": 12, "name": "class003", "student_capacity": 10, "description": null, "org_id": 1, "created_at": "2019-01-18 18:33:17", "classList": [ { "id": 11, "name": "编辑测试" }, { "id": 13, "name": "班级001" }, { "id": 15, "name": "新增班级测试" } ] }, { "id": 14, "name": "class004", "student_capacity": 8, "description": null, "org_id": 1, "created_at": "2019-01-21 15:46:52", "classList": [] }, { "id": 15, "name": "class005", "student_capacity": 10, "description": null, "org_id": 1, "created_at": "2019-01-21 15:47:03", "classList": [ { "id": 14, "name": "班级测试test" }, { "id": 16, "name": "英语基础班" }, { "id": 21, "name": "英语基础班8888----222" }, { "id": 32, "name": "英语基础班" }, { "id": 34, "name": "英语基础班-11" }, { "id": 35, "name": "英语基础班8888----复制" } ] }, { "id": 16, "name": "class006", "student_capacity": 6, "description": null, "org_id": 1, "created_at": "2019-01-21 15:47:14", "classList": [] }, { "id": 17, "name": "class007", "student_capacity": 7, "description": null, "org_id": 1, "created_at": "2019-01-21 15:47:23", "classList": [ { "id": 43, "name": "强化班级" } ] }, { "id": 18, "name": "class008", "student_capacity": 9, "description": null, "org_id": 1, "created_at": "2019-01-21 15:47:43", "classList": [] }, { "id": 19, "name": "class009", "student_capacity": 9, "description": null, "org_id": 1, "created_at": "2019-01-21 15:48:39", "classList": [] }, { "id": 20, "name": "class010", "student_capacity": 10, "description": null, "org_id": 1, "created_at": "2019-01-21 15:48:50", "classList": [] }, { "id": 23, "name": "英语强化班", "student_capacity": 10, "description": null, "org_id": 1, "created_at": "2019-01-22 14:54:29", "classList": [ { "id": 37, "name": "英语强化班级" } ] } ], "first_page_url": "http://localhost:81/api/super/organization/1/classroom?page=1", "from": 1, "last_page": 1, "last_page_url": "http://localhost:81/api/super/organization/1/classroom?page=1", "next_page_url": null, "path": "http://localhost:81/api/super/organization/1/classroom", "per_page": 20, "prev_page_url": null, "to": 11, "total": 11, "order": null, "order_by": null }, "message": "操作成功", "ct": 1553591570 }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML