文档
测试

课程列表

GET
http://jygl.znsite.cn/index.php/index/index/getLessonList

接口描述

获取精品课程列表

请求参数

参数名
类型
描述
必填
type
int
四级分类id
必填
limit
int
必填
page
int
必填

响应参数

参数名
类型
描述
必填
name
string
课程名称
必填
sell_type
int
售卖方式(1免费 2收费)
必填
price
number
课程价格
必填
line_price
number
划线价格
必填
images
text
课程图(多张,用@相隔)
必填
lesson_img
string
课程主图
必填
is_recommend
int
首页推荐(1 是 0否)
必填
detail
text
课程详情
必填
status
int
课程状态(1 在售 0下架)
必填
create_time
int
创建时间
必填
type_name
string
课程类型
必填
teacher_name
string
授课教师
必填

说明 / 示例

{ "code": 200, "msg": "数据获取成功!", "data": [ { "id": 4, "name": "1111", "type_one": 1, "type_two": 4, "type_three": 7, "type_four": 17, "teacher": 1, "sell_type": 2, "price": "158.00", "line_price": "169.00", "images": "http://www.jygl.cn/storage/uploads/20200320/d50bc49bf67b9eb70238883f710972f6.png", "lesson_img": "http://www.jygl.cn/storage/uploads/20200320/d50bc49bf67b9eb70238883f710972f6.png", "is_recommend": 0, "detail": "<p>1111</p>", "status": 1, "create_time": 1584689148, "teacher_name": "李老师" }, { "id": 3, "name": "小学一年级数学知识点详解", "type_one": 1, "type_two": 4, "type_three": 7, "type_four": 17, "teacher": 1, "sell_type": 2, "price": "158.00", "line_price": "229.00", "images": "http://www.jygl.cn/storage/uploads/20200320/a5f801838a751b9b079b5baf694f748a.png@http://www.jygl.cn/storage/uploads/20200320/2410a7f61f0c08110768a461ca115455.jpg", "lesson_img": "http://www.jygl.cn/storage/uploads/20200320/a5f801838a751b9b079b5baf694f748a.png", "is_recommend": 0, "detail": "<p>小学一年级数学知识点详解小学一年级数学知识点详解</p>", "status": 1, "create_time": 1584686196, "teacher_name": "李老师" }, { "id": 1, "name": "一年级数学精品课程", "type_one": 1, "type_two": 4, "type_three": 7, "type_four": 17, "teacher": 1, "sell_type": 2, "price": "598.00", "line_price": "898.00", "images": "http://www.jygl.cn/storage/uploads/20200318/4475f31a50a08ae27b07250bc6b19829.jpg@http://www.jygl.cn/storage/uploads/20200318/7c5e4a77a2eec07cd7051e09ef93383e.png", "lesson_img": "http://www.jygl.cn/storage/uploads/20200318/4475f31a50a08ae27b07250bc6b19829.jpg", "is_recommend": 1, "detail": "<p>12321324</p>", "status": 1, "create_time": 1584493547, "teacher_name": "李老师" } ], "count": 6 }