多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/v1/coach/homework` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |id|否|int|作业id|-| |type|否|string|选中的类型(基础:base,扩展:extend)|-| |sort|否|int|选中的资源sort|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "data": { "id": " 1033146709868481077", "title": "2016-6-28 语文作业", "content": "", "xkid": "1071", "njid": "1510", "bbid": "0", "sxcid": "0", "dyid": "0", "jieid": "0", "fbrxm": "邹峰", "fxfw": 5, "fxd": "0", "is_attach": 0, "is_push": 0, "uid": "1033145308280422915", "schoolid": "01002143798597099273", "nyd": null, "create_time": 1467098684, "update_time": 1467100008, "zys": 13, "status": 0, "areaid": 120101, "sys_code": 1033, "is_mobile": 0, "dansz": null, "is_score": null, "xts": 10, "sys_type": 4, "materiallist": [ { "id": "1033146710000977204", "hwid": "1033146709868481077", "zyid": "1001146673677160145", "zyqf": 1, "ytlx": 3, "zymc": "学案", "tx": null, "sort": 1, "score": null, "txstr": "未知题型", "ksort": 1 //如果要显示序号,用这个 }, { "id": "1033146710000915468", "hwid": "1033146709868481077", "zyid": "1000146649221464326", "zyqf": 2, "ytlx": 1, "zymc": "威威威威威威威威威威威威威威", "tx": "danxt", "sort": 2, "score": null, "txstr": "单选题", "ksort": 2 }, { "id": "1033146710000924971", "hwid": "1033146709868481077", "zyid": "1000146700689922611", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "duoxt", "sort": 3, "score": null, "txstr": "多选题", "ksort": 3 }, { "id": "1033146710000936808", "hwid": "1033146709868481077", "zyid": "1000146700720566300", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "danxt", "sort": 4, "score": null, "txstr": "单选题", "ksort": 4 }, { "id": "1033146710000944540", "hwid": "1033146709868481077", "zyid": "1000146700724060086", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "danxt", "sort": 5, "score": null, "txstr": "单选题", "ksort": 5 }, { "id": "1033146710000952302", "hwid": "1033146709868481077", "zyid": "1000146702912055864", "zyqf": 2, "ytlx": 1, "zymc": "dsadasdsadsf", "tx": "pdt", "sort": 6, "score": null, "txstr": "判断题", "ksort": 6 }, { "id": "1033146710000962284", "hwid": "1033146709868481077", "zyid": "1000146700708461507", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "danxt", "sort": 7, "score": null, "txstr": "单选题", "ksort": 7 }, { "id": "1033146710000970065", "hwid": "1033146709868481077", "zyid": "1001146673439448548", "zyqf": 1, "ytlx": 1, "zymc": "1'11‘.jpg", "tx": null, "sort": 8, "score": null, "txstr": "未知题型", "ksort": 8 }, { "id": "1033146710000977385", "hwid": "1033146709868481077", "zyid": "1000146700693193518", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "pdt", "sort": 9, "score": null, "txstr": "判断题", "ksort": 9 }, { "id": "1033146710000984703", "hwid": "1033146709868481077", "zyid": "1001146673439571343", "zyqf": 1, "ytlx": 1, "zymc": "一年级奥数:简单推理.ppt", "tx": null, "sort": 10, "score": null, "txstr": "未知题型", "ksort": 10 }, { "id": "1033146710000993524", "hwid": "1033146709868481077", "zyid": "1000146700684532572", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "danxt", "sort": 11, "score": null, "txstr": "单选题", "ksort": 11 }, { "id": "1033146710001023074", "hwid": "1033146709868481077", "zyid": "1000146700705179480", "zyqf": 2, "ytlx": 1, "zymc": "单选题", "tx": "danxt", "sort": 12, "score": null, "txstr": "单选题", "ksort": 12 }, { "id": "1033146710001025091", "hwid": "1033146709868481077", "zyid": "1000146700736131736", "zyqf": 2, "ytlx": 1, "zymc": "单选题单选题", "tx": "danxt", "sort": 13, "score": null, "txstr": "单选题", "ksort": 13 } ], "materialtzxt": [], "materialdxa": [ { "id": "1033146710000977204", "hwid": "1033146709868481077", "zyid": "1001146673677160145", "zyqf": 1, "ytlx": 3, "zymc": "学案", "tx": null, "sort": 1, "score": null, "txstr": "未知题型", "ksort": 1 } ], "pushlist": [], "sort": "1", //基础或者扩展的sort "type": "base", //返回基础还是扩展 "active": { //查看的素材 "id": "1033146710000977204", "hwid": "1033146709868481077", "zyid": "1001146673677160145", "zyqf": 1, "ytlx": 3, "zymc": "学案", "tx": null, "sort": 1, "score": null, "txstr": "未知题型", "ksort": 1 } } } ``` - error ```json { "ret": -1, "msg": "参数错误", "data": [] } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| |ksort|string|如果要显示序号,用这个| |sort|string|基础或者扩展的sort| |type|string|返回基础还是扩展| |active|string|查看的素材| --: 该接口最后修订时间:2017-09-08 14:35:37 * * * * *