🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/teacher/homeworks` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |p|否|int|显示页数|-| |num|否|int|每页显示条数|10| |is_push|否|int| 2未发送 1已发送 3全部|3| **返回示例** - success ```json { "ret": 0, "msg": "ok", "count": "27", "totalPages": 3, "totalRows": "27", "nowPage": 1, "data": [ { "id": "1003145561848350639", "title": "aaaaaaa2016-2-16 化学作业", "content": "aaaaaaa", "xkid": "1", "zys": "1", "njid": "2", "uid": "1003143997294121958", "collect_total": "0", "quote_total": "0", "create_time": "1455618483", "update_time": "1455618483", "xkcode": "1", "xkname": "化学", "njcode": "31_3", "njname": "八年级", "color": "huaxue", "count": "0", "fxfw": "5", "fxd": "0", "finish_time": "2016-02-16", "classes_unsent": [ { "classname": "123", "njmc": "2016", "bjid": "100014551795176418", "uid": "1003143997294121958", "type": "2", "bjbm": "h2IxZMkZKP", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "13", "xd": "31", "duty": "2", "bjmc": "2016级123" }, { "classname": "九班", "njmc": "2014", "bjid": "1000145466778522008", "uid": "1003143997294121958", "type": "2", "bjbm": "RxtSUWrLVh", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "15", "xd": "21", "duty": "2", "bjmc": "2014级九班" }, { "classname": "三班", "njmc": "2015", "bjid": "1000145466799464975", "uid": "1003143997294121958", "type": "2", "bjbm": "PqwmZw6bet", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "16", "xd": "21", "duty": "2", "bjmc": "2015级三班" }, { "classname": "二班", "njmc": "2013", "bjid": "100014546727032090", "uid": "1003143997294121958", "type": "2", "bjbm": "VsAvd1jlrK", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "17", "xd": "21", "duty": "2", "bjmc": "2013级二班" }, { "classname": "一年级一班", "njmc": "2013", "bjid": "1000145527344788397", "uid": "1003143997294121958", "type": "1", "bjbm": "uHHj0MMaX7", "identitytype": "2", "schoolid": "1002143804554287036", "gradeid": "21", "xd": "21", "duty": "2", "bjmc": "2013级一年级一班" } ], "classes_sent": [ { "classname": "九班", "njmc": "2016", "bjid": "1003143997295184793", "uid": "1003143997294121958", "type": "1", "bjbm": "9", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "9", "xd": "21", "duty": "2", "bjmc": "2016级九班" } ], "skrq": "2016-02-16", "gxrq": "02月16日" }, { "id": "1003145553075317057", "title": "888888888882016-2-15 化学作业", "content": "", "xkid": "1", "zys": "0", "njid": "2", "uid": "1003143997294121958", "collect_total": "0", "quote_total": "0", "create_time": "1455530753", "update_time": "1455530753", "xkcode": "1", "xkname": "化学", "njcode": "31_3", "njname": "八年级", "color": "huaxue", "count": "0", "fxfw": "5", "fxd": "0", "finish_time": "2016-02-19", "classes_unsent": [], "classes_sent": [ { "classname": "九班", "njmc": "2016", "bjid": "1003143997295184793", "uid": "1003143997294121958", "type": "1", "bjbm": "9", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "9", "xd": "21", "duty": "2", "bjmc": "2016级九班" }, { "classname": "123", "njmc": "2016", "bjid": "100014551795176418", "uid": "1003143997294121958", "type": "2", "bjbm": "h2IxZMkZKP", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "13", "xd": "31", "duty": "2", "bjmc": "2016级123" }, { "classname": "九班", "njmc": "2014", "bjid": "1000145466778522008", "uid": "1003143997294121958", "type": "2", "bjbm": "RxtSUWrLVh", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "15", "xd": "21", "duty": "2", "bjmc": "2014级九班" }, { "classname": "三班", "njmc": "2015", "bjid": "1000145466799464975", "uid": "1003143997294121958", "type": "2", "bjbm": "PqwmZw6bet", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "16", "xd": "21", "duty": "2", "bjmc": "2015级三班" }, { "classname": "二班", "njmc": "2013", "bjid": "100014546727032090", "uid": "1003143997294121958", "type": "2", "bjbm": "VsAvd1jlrK", "identitytype": "2", "schoolid": "1003143997288692791", "gradeid": "17", "xd": "21", "duty": "2", "bjmc": "2013级二班" }, { "classname": "一年级一班", "njmc": "2013", "bjid": "1000145527344788397", "uid": "1003143997294121958", "type": "1", "bjbm": "uHHj0MMaX7", "identitytype": "2", "schoolid": "1002143804554287036", "gradeid": "21", "xd": "21", "duty": "2", "bjmc": "2013级一年级一班" } ], "skrq": "2016-02-19", "gxrq": "02月15日" }, ...... ] } ``` - error ```json { "ret": -1, "msg": "未知错误" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2017-09-05 16:31:00 * * * * *