文档
测试

根据一级分类ID查询二级分类

GET
/live-edu/app/wtCourse/getCourseParentClassByCid

请求参数

参数名
类型
描述
必填
parentClassId
int
一级分类 固定为 -1
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 0成功 其它失败
必填

说明 / 示例

**现育丁课堂新增了一级分类, 一共有三级三级分类,旧一级分类 改为了 二级分类** 这个接口用于此页面 ![image.png](https://cos.easydoc.net/72898399/files/krxas7tr.png) `请求示例` `返回示例` ```java { "code": 0, "msg": "请求成功", "obj": [ { "id": 323, // 一级分类数据 "name": "我是测试一级分类", "cid": -1, "img": "xxx", "status": "1", "addtime": "2021-08-04 17:31:45", "sort": 2, "type": 1, "doCount": 0, "totalTopicNum": 0, "answerTotalNum": 0, "pid": null, "childrenTypes": [ // 二级分类数据 { "id": 313, "name": "我是测试二级分类3", "cid": 0, "img": "xxx", "status": "1", "addtime": "2021-08-04 16:56:59", "sort": 2, "type": 1, "doCount": 0, "totalTopicNum": 0, "answerTotalNum": 0, "pid": null, "childrenTypes": null, "subjectList": null } ], "subjectList": null } ] } ```