ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>分类列表,获取顶级菜单 ~~~[api] get:/index.php/curriculum/Apiclass/getTopMenuList int:num=0#获取菜单的个数 ,0或者不填表示获取全部 string:sort=order_num #排序字段 string:sort_type= desc#排序类型 <<< success { "err": 0, "count": 2, "data": [ { "id": 10, "title": "语文", "en_title": "Chinese", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 0 }, { "id": 11, "title": "数学", "en_title": "Maths", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 0 } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >分类多级列表,获取带子集的分类列表或者获取某个分类下的子分类 ~~~[api] get:/index.php/curriculum/Apiclass/getMenuList int:parent_id=0#顶级分类id,0或者不填表示所有的分类 int:num=0#获取菜单的顶级个数 ,0或者不填表示获取全部 int:level=0#获取菜单层数 ,0或者不填表示获取全部 string:sort=order_num #排序字段 string:sort_type= desc#排序类型 <<< success { "err": 0, "count": 2, "data": [ { "id": 10, "title": "语文", "en_title": "Chinese", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 0, "sub": [ { "id": 12, "title": "作文", "en_title": "Composition", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 10, "sub": [ ] }, { "id": 13, "title": "诗词", "en_title": "Poetry", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 10, "sub": [ ] } ] }, { "id": 11, "title": "数学", "en_title": "Maths", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "parent_id": 0 } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取分类详细信息 ~~~[api] get:/index.php/curriculum/Apiclass/getInfo *int:id=1#分类id <<< success { "err": 0, "data": { "id": 10, "title": "语文", "en_title": "Chinese", "ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "order_num": 0, "status": 0, "parent_id": 0 } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请添加课程 ~~~[api] post:/index.php/curriculum/Apicurriculum/member_submit_curriculum *string:title= #课程标题 *int:type=1#课程类型 全部0 视频1 音频2 文章3 *string:thumb= #课程缩略图 *string:videopath= #课程视频 string:price= #课程价格 string:lecturer= #课程讲师 string:content= #图文介绍 <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "content": "课程内容", "price": 100, "type": 1, "status": 1, "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "tags": [ "标签内容", "标签内容" ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请编辑课程 ~~~[api] post:/index.php/curriculum/Apicurriculum/member_curriculum_edit *int:id=1 #课程id *string:title= #课程标题 *int:type=1#课程类型 全部0 视频1 音频2 文章3 *string:thumb= #课程缩略图 *string:videopath= #课程视频 string:price= #课程价格 string:lecturer= #课程讲师 string:content= #图文介绍 <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "content": "课程内容", "price": 100, "type": 1, "status": 1, "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "tags": [ "标签内容", "标签内容" ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请删除课程 ~~~[api] post:/index.php/curriculum/Apicurriculum/member_curriculum_del *int:id=1 #课程id <<< success { "err": 0, "data": {} } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录讲师的课程列表 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_curriculum_list int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:between_price= #价格区间 如100-200 string:keyword= #检索的关键字 string:sort= id #排序字段 string:sort_type= asc#排序类型 int:type=1|2|3#课程类型 不传全部 视频1 音频2 文章3 int:special_id=1#专栏id 获取某个专栏下的课程 int:parent_id=1#课程分类id int:promote= #是否推广 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "price": 100, "type": 1, "status": 1, "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "tags": [ "标签内容", "标签内容" ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录讲师的某个课程详情 ~~~[api] post:/index.php/curriculum/Apicurriculum/member_curriculum_getInfo *int:id=1 #课程id <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "content": "课程内容", "price": 100, "type": 1, "status": 1, "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "tags": [ "标签内容", "标签内容" ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >课程列表 ~~~[api] get:/index.php/curriculum/Apicurriculum/getList int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:between_price= #价格区间 如100-200 string:keyword= #检索的关键字 string:sort= id #排序字段 string:sort_type= asc#排序类型 int:type=1|2|3#课程类型 不传全部 视频1 音频2 文章3 int:special_id=1#专栏id 获取某个专栏下的课程 int:parent_id=1#课程分类id int:promote= #是否推广 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "price": 100, "market_price": 150, "group_price": 150, "coursetypeid": 10, "type": 1, "sort": 1, "status": 1, "vipprice": [ { "group_id": 1, "group_name": "VIP1", "price": 10 } ], "deductionpoint": [ { "point_type_": "point", "point_name_": "积分", "point_unit_": "分", "point_": 200, "point_type": "money", "point_name": "人民币", "point_unit": "元", "point": 20 } ], "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "view_num": 10, "chapter_num": 4, "buy_num": 380, "addtime": 12345678910, "starttime": 123456678910, "endtime": 123456789, "rebate": "0.3 分(积分)", "tags": [ "标签内容", "标签内容" ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >课程详细信息 ~~~[api] get:/index.php/curriculum/Apicurriculum/getInfo *int:id=1#课程id <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "price": 100, "market_price": 150, "group_price": 150, "coursetypeid": 10, "type": 1, "content": "课程内容", "sort": 1, "status": 1, //是否可观看 "vipprice": [ { "group_id": 1, "group_name": "VIP1", "price": 10 } ], "deductionpoint": [ { "point_type_": "point", "point_name_": "积分", "point_unit_": "分", "point_": 200, "point_type": "money", "point_name": "人民币", "point_unit": "元", "point": 20 } ], "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "view_num": 10, "chapter_num": 4, "buy_num": 380, "collection_num": 380, "addtime": 12345678910, "starttime": 123456678910, "endtime": 123456789, "tags": [ "标签内容", "标签内容" ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请添加章节 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_submit_chapter *int:courseid=1#课程id *int:title=10#章节标题 *int:mediapath=1#上传媒体文件 *string:content= #图文信息 <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "courseid": 10, "content": "课程内容", "sort": 1, "status": 1, "paytype": 1, ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请编辑章节 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_chapter_edit *int:courseid=1#课程id *int:id=1#章节id *int:title=10#章节标题 *int:mediapath=1#上传媒体文件 *string:content= #图文信息 <<< success { "err": 0, "data": { "id": 10, "title": "课程名称", "courseid": 10, "content": "课程内容", "sort": 1, "status": 1, "paytype": 1, ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >讲师申请删除章节 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_chapter_del *int:courseid=1#课程id *int:id=1#章节id <<< success { "err": 0, "data": { } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录讲师的某个课程章节列表 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_chapter_list *int:courseid=1#课程id *int:status=1|2# 审核状态 不传为全部 0 未审核 1 等待用户反馈 2 通过 3驳回 int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "章节名称", "courseid": 10, "sort": 1, "status": 1, "paytype": 1, } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录讲师的某个章节详情 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_chapter_getInfo *int:id=1#章节id <<< success { "err": 0, "data": { "id": 10, "title": "标题", "courseid": 10, "mediapath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.MP3", "content": "章节内容", "msg": "审核信息", } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取章节列表 ~~~[api] get:/index.php/curriculum/Apicurriculum/getInfo_chapter *int:courseid=1#课程id int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "章节名称", "courseid": 10, "content": "章节内容", "sort": 1, "status": 1, "paytype": 1, "point": [ { "point_type": "money", "point": 10, "point_name": "人民币", "point_unit": "元" } ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取章节详情 ~~~[api] get:/index.php/curriculum/Apicurriculum/getInfo_chapter *int:id=1#章节id int:point_type=point#兑换的积分类型 <<< success { "err": 0, "data": { "id": 10, "title": "标题", "courseid": 10, "mediapath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.MP3", "content": "章节内容" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取相关列表 ~~~[api] get:/index.php/curriculum/Apicurriculum/getList_relevant *int:id=1#课程id int:pagesize=10#每页显示个数 int:page=1#显示页码数,0表示全部获取 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "标题", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "buy_num": 380, "addtime": 12345678910, "type": 1 } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >提交观看记录 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_browse_records *int:id=1#观看课程id *int:chapter_id=1#观看的章节id *int:time=1000#观看的时间长度,以秒为单位 <<< success { "err": 0, "data": { "id": 10, "chapter_id": 10, "time": 30, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取观看记录 ~~~[api] get:/index.php/curriculum/Apicurriculum/member_get_browse_records int:pagesize=10#每页显示个数 int:page=1#显示页码数,0表示全部获取 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "课程名称", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "videopath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.mp3", "price": 100, "coursetypeid": 10, "type": 1, "status": 1, "lecturer": { "id": 2, "name": "李鹏", "describe": "讲师描述", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" }, "view_num": 10, "chapter_num": 4, "buy_num": 380, "time": 300, "tags": [ "标签内容", "标签内容" ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~