🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/parent/course` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |uid|否|bigint|用户id|-| |kcid|是|bigint|课程id|-| |zyqf|否|string|资源区分 1:素材,2:习题|-| |classid|是|bigint|班级id|-| |type|否|int|要不要展示答题结果 1的时候需返回习题的正确错误|-| |schoolid|否|int|学校id,如果是家长,要必传|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "id": "1007140651401487960", "kclx": "2", "title": "我们的民族小学", "ks": "ks02", "xkid": "1071", "njid": "1243", "bbid": "1244", "sxcid": "1245", "dyid": "1246", "jieid": "1247", "fbrxm": "管理员", "fxd": null, "fxfw": null, "uid": "1007140619119350707", "ispush": "1", "schoolid": "1007140619088112564", "create_time": "1406514014", "update_time": "1406514014", "status": "0", "areaid": "370602", "sys_code": "1007", "collect_total": null, "quote_total": null, "comment_total": null, "ksname": "第二课时", "xkcode": "1071", "xkname": "语文", "njcode": "21_3", "njname": "三年级", "bbcode": "1244", "bbname": "鲁教版", "sxccode": "1245", "sxcname": "上册", "dycode": "1246", "dyname": "第一单元", "jiename": "我们的民族小学", "color": "yuwen", "classes_unsent": [ { "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级三班" }, ...... ], "classes_sent": [ { "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级一年级一班" }, ...... ], "materiallist": { "jksc": [ { "id": "1007140651401488373", "kcid": "1007140651401487960", "zyid": "1007140651327472411", "sksylx": "1", "zyqf": "1", "kclx": "2", "xsmc": "示例视频1.avi", "tx": null, "sort": "0", "pid": "0", "is_true": "-1" }, { "id": "1007140651401488533", "kcid": "1007140651401487960", "zyid": "1007140651327213013", "sksylx": "1", "zyqf": "1", "kclx": "2", "xsmc": "弟子规.jpg", "tx": null, "sort": "0", "pid": "0", "is_true": "-1" }, ], "kqxt": [ { "id": "1007140651401488710", "kcid": "1007140651401487960", "zyid": "1007140651327190641", "sksylx": "1", "zyqf": "2", "kclx": "2", "xsmc": "测试用课前习题", "tx": null, "sort": "0", "pid": "0", "is_true": "-1" }, .... ], "khxt": [ { "id": "1007140651401488864", "kcid": "1007140651401487960", "zyid": "1007140651327171316", "sksylx": "1", "zyqf": "2", "kclx": "2", "xsmc": "课后习题", "tx": null, "sort": "0", "pid": "0", "is_true": "-1" }, ...... ] } } ``` - error ```json { "ret": -1, "msg": "参数错误" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2017-09-05 09:37:16 * * * * *