文档
测试

获取直播间列表

POST
/live-edu/app/live/getLiveList

请求头

参数名
类型
描述
必填
token
String
必填

请求参数

参数名
类型
描述
必填
position
int
位置 0:首页 1:直播分类栏
必填
type
int
1.首页时(position=0),type为课程分类id 2.直播分类栏(position=1) 2.1.type为空时,查询学习人数倒序的直播 2.2.type为0时,查看设置为推荐且上架的直播 3.非以上情况,type为课程分类ID
必填
courseName
String
模糊查询:课程名称
必填
pageIndex
int
页码
必填
pageSize
int
条数
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 0:成功
必填
msg
String
状态信息
必填
obj
object
数据字典
必填
records
array
数据列表
必填
type
int
直播间类型
必填
id
int
直播房间ID
必填
memberId
int
用户id
必填
courseId
int
课程id
必填
courseSortId
int
分类id
必填
courseName
String
课程名称
必填
courseBkUrl
String
课程背景图
必填
cardName
String
讲师姓名
必填
dev
int
直播设备 0:pc(横屏)1:手机(竖屏)
必填
courseSortName
String
课程分类
必填
incomeType
int
收费类型
必填
oriprice
float
金额
必填
isFree
int
是否免费 0否 1是
必填
courseOverview
String
课程简介
必填
urlType
int
[地址类型:0直播地址 ;1回播地址;2录播地址;3视频地址] 备注:值为0时,app跳h5地址;地址字段pushUrl
必填
pushUrl
String
推流地址
必填
total
int
总数
必填
size
int
每页显示条数
必填
current
int
当前页
必填
orders
array
排序字段信息
必填
hitCount
boolean
是否命中count缓存
必填
searchCount
boolean
是否进行 count 查询
必填
pages
int
当前分页总页数
必填

说明 / 示例

`请求示例:` ```javascript { "position": 0, "type": 63, "courseName": "", "pageIndex": 1, "pageSize": 10 } ``` `成功示例:` ```javascript { "code": 0, "msg": "请求成功", "obj": { "records": [ { "type": null, "id": 0, "memberId": null, "courseId": 86, "courseSortId": 63, "courseName": "雅思", "courseBkUrl": "http://qiniu.huituangouyp.com/4180108.png", "cardName": null, "dev": 0, "courseSortName": "化学", "incomeType": 0, "oriprice": null, "isFree": null, "courseOverview": "<p>只要认真学 一定可以过</p>", "courseor": 0, "urlType": 0 } ], "total": 1, "size": 10, "current": 1, "orders": [], "hitCount": false, "searchCount": true, "pages": 1 } } ``` `失败示例:` ```javascript { "code": 500, "msg": "请求失败", "obj": null }