文档
测试

根据分类ID获取课程列表(包括子分类课程)

GET
/app/wtCourse/getCourseByClassId

请求参数

参数名
类型
描述
必填
classId
int
分类ID
必填
indexPage
int
当前页码
必填
pageSize
int
展示条数
必填

响应参数

参数名
类型
描述
必填
code
int
0 成功 其他失败
必填
msg
String
响应信息
必填
obj
object
返回数据
必填
records
array
课程列表
必填
total
int
总条数
必填
size
int
当前数据条数
必填
pages
int
总页数
必填
current
int
当前页
必填

说明 / 示例

## `返回示例 - 带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "id": 1, "classId": 1, // 分类id "uid": 1, // 用户ID "name": "测试", // 课程名 "img": "", // 背景图 "content": "测试", // 课程介绍 "duration": "测试", //无效字段 "cost": 1, // 费用 "num": 0, //无效字段 "status": "1", "frequency": 0,//无效字段 "addtime": "2021-01-04T14:36:32", "isGiveGift": 0 // 是否赠送礼品 0否 1是 } ], "total": 1, // 总条数 "size": 10, // 每页条数 "current": 1, // 当前页 "orders": [], "hitCount": false, "searchCount": true, "pages": 1 // 总页数 } } ``` ## `返回示例 - 不带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "id": 1, "classId": 1, "uid": 1, "name": "测试", "img": "", "content": "测试", "duration": "测试", "cost": 1, "num": 0, "status": "1", "frequency": 0, "addtime": "2021-01-04T14:36:32", "isGiveGift": 0 } ], "total": 1, "size": 10, "current": 1, "orders": [], "hitCount": false, "searchCount": true, "pages": 1 } } ```