简要描述:
-课程供应链--课程列表
请求域名:
- http://xx.com
请求URL:
plugin.course-supply.api.course.index
请求 参数::
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 页码 |
lecturer_id | 否 | int | 讲师id(用来查询讲师主讲的课程) |
keyword | 否 | string | 搜索关键词 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "测试课程111",
"cover": "http://119.91.205.224/static/upload/images/15/2022/09/510520746843faf1408faa2e34a33888.png",
"lecturer_id": 1,
"goods_id": 251,
"price":0,
"lecturer": {
"id": 1,
"uniacid": 15,
"lecturer_id": 1,
"name": "测试姓名",
"pic": "测试图片",
"label": "测试标签1|测试标签2",
"introduce": "测试介绍",
"created_at": "1970-01-01 08:00:00",
"updated_at": "1970-01-01 08:00:00"
},
"chapter_count": 2,
"sales": 0,
"section_count": 4
}
],
"first_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://119.91.205.224//addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数data说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 课程名称 |
cover | string | 课程封面图 |
chapter_count | int | 章节数量 |
section_count | int | 小节数量 |
sales | int | 销量 |
lecturer_id | int | 讲师id |
price | double | 价格 |
lecturer | object | 讲师信息 |
goods_id | int | 商品id(用来跳转商品详情页) |
返回参数data['lecturer']说明:
参数名 | 类型 | 说明 |
---|---|---|
lecturer_id | int | 讲师id |
name | string | 讲师名称 |
pic | int | 讲师图片 |
introduce | int | 讲师介绍 |
label | array | 讲师标签 |