>分類列表,獲取頂級菜單
~~~[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": "錯誤信息"
}
~~~