企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/v2homework/getChaptTree` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |lv|是|string|获取层级|-| |pid|是|string|父级id|-| |xd|是|string|学段|lv>0时| |schoolid|是|string|学校id|lv>0时| |xz|是|string|学制|lv>0时| **返回示例** - success ```json { "ret": 0, "msg": "获取成功~", "data": [{ "id": "6167", "name": "七年级", "pid": "1071", "code": "31_1", "ext": "sys", "type": "Grade", "xd": "31", "nj": "1", "subject": "1071", "grade": "0", "publisher": "0", "volume": "0", "section": "0", "xz": 3, "isParent": "true" }, { "id": "6168", "name": "八年级", "pid": "1071", "code": "31_2", "ext": "sys", "type": "Grade", "xd": "31", "nj": "2", "subject": "1071", "grade": "0", "publisher": "0", "volume": "0", "section": "0", "xz": 3, "isParent": "true" }, { "id": "6169", "name": "九年级", "pid": "1071", "code": "31_3", "ext": "sys", "type": "Grade", "xd": "31", "nj": "3", "subject": "1071", "grade": "0", "publisher": "0", "volume": "0", "section": "0", "xz": 3, "isParent": "true" }] } ``` - error ```json { "ret": -1, "msg": "参数错误或者未定义" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2019-04-20 15:13:30 * * * * *