文档
测试

搜索课程

GET
/app/wtCourse/searchCourse

请求参数

参数名
类型
描述
必填
searchContent
string
课程名
必填
indexPage
int
当前页码
必填
pageSize
int
展示条数
必填

响应参数

参数名
类型
描述
必填
code
int
0 成功 其他失败
必填
msg
String
响应信息
必填
obj
object
课程信息
必填
records
array
课程列表
必填
total
int
总条数
必填
size
int
当前数据条数
必填
current
int
当前页
必填
pages
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 } } ```