文档
测试

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

GET
/app/wtCourse/getCourseParentClassByCid

请求参数

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

响应参数

参数名
类型
描述
必填
code
int
状态码 0 成功 其他失败
必填
msg
String
响应信息
必填
obj
Array
分类列表
必填
id
int
分类id
必填
name
String
分类名称
必填
cid
int
父类id 一级分类固定为 -1 二级分类 固定为 0
必填
img
String
分类图片
必填
status
int
状态:0取消 1正常
必填
addtime
String
创建时间
必填
sort
int
排序
必填
type
int
分类类型 1课程 2题库
必填
doCount
int
必填
totalTopicNum
int
必填
answerTotalNum
int
必填
pid
int
父类id 只有二级分类才有这个字段
必填
childrenTypes
Array
二级分类数据 -- 对应以前的一级分类
必填

说明 / 示例

**现育丁课堂新增了一级分类, 一共有三级三级分类,旧一级分类 改为了 二级分类** ## 这个接口用于此页面 ![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 } ] } ```