文档
测试

首页直播间列表

GET
/app/live/getLiveListForHome

请求参数

参数名
类型
描述
必填
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
int
直播课程价格。0为免费
必填
isFree
int
是否免费 0否 1是
必填
courseOverview
String
直播课程详情
必填
courseor
int
必填
startTime
String
直播课程开始时间
必填
endTime
String
直播课程结束时间
必填
status
int
直播状态 0关播 1开播
必填
total
int
总共数据量
必填
size
int
当前显示条数
必填
current
int
当前页
必填
pages
int
总共多少页
必填

说明 / 示例

## `返回示例 - 带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "id": 34, // 直播间ID "courseId": 88, // 直播课程ID "courseName": "世界近代史", // 直播课程名称 "courseBkUrl": "微信图片_20200714180108.png", // 课程背景图 "cardName": "吕老师", // 讲师名字 "dev": 0, // 直播设备 0:pc(横屏)1:手机(竖屏) "oriprice": 0, // 直播课程价格。0为免费 "courseOverview": "<p>多年知识积累,讲课生动易于理解</p>",//直播课程详情 "startTime": "2020-06-18 08:00:00", // 直播课程开始时间 "endTime": "2020-06-19 02:00:00", // 直播课程结束时间 "status": 1 // 直播状态 0关播 1开播 }, { "type": null, "id": 31, "memberId": null, "courseId": 85, "courseSortId": 0, "courseName": "疯狂英语", "courseBkUrl": "微信图片_20200714180108.png", "cardName": "刘老师", "dev": 0, "courseSortName": null, "incomeType": 0, "oriprice": 0.00, "isFree": null, "courseOverview": "<p>经典疯狂英语,快速学习完美</p>", "courseor": 0, "startTime": "2020-06-17 19:00:00", "endTime": "2020-06-18 05:00:00", "status": 1 } ], "total": 2, // 总条数 "size": 10, // 每页条数 "current": 1, // 当前页码 "pages": 1 // 总页数 } } ``` ## `返回示例 - 不带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "id": 34, "courseId": 88, "courseName": "世界近代史", "courseBkUrl": "微信图片_20200714180108.png", "cardName": "吕老师", "dev": 0, "oriprice": 0, "courseOverview": "<p>多年知识积累,讲课生动易于理解</p>", "startTime": "2020-06-18 08:00:00", "endTime": "2020-06-19 02:00:00", "status": 1 }, { "type": null, "id": 31, "memberId": null, "courseId": 85, "courseSortId": 0, "courseName": "疯狂英语", "courseBkUrl": "微信图片_20200714180108.png", "cardName": "刘老师", "dev": 0, "courseSortName": null, "incomeType": 0, "oriprice": 0.00, "isFree": null, "courseOverview": "<p>经典疯狂英语,快速学习完美</p>", "courseor": 0, "startTime": "2020-06-17 19:00:00", "endTime": "2020-06-18 05:00:00", "status": 1 } ], "total": 2, "size": 10, "current": 1, "pages": 1 } } ```