>講師申請提交
~~~[api]
post:/index.php/curriculum/Apilecturer/member_submit_lecturer
*string:nickname= #講師名字
*string:mobile= #講師手機號
*string:province= #講師身份證號
string:province_positive= #講師身份證正面
string:thumb= #講師縮略圖
string:tags= #講師標簽
string:content= #圖文介紹
<<<
success
{
"err": 0,
"data": {
"id": 10,
"nickname": "講師名稱",
"mobile": 123345656,
"status": 0, //審核狀態 0 未審核 2 通過 3駁回
"province": "身份證號",
"province_positive": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"province_back": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"tags": [ ],
"content": "圖文信息"
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>講師編輯
~~~[api]
post:/index.php/curriculum/Apilecturer/member_lecturer_edit
*int:id= 1#講師id
*string:nickname= #講師名字
*string:mobile= #講師手機號
*string:province= #講師身份證號
string:province_positive= #講師身份證正面
string:thumb= #講師縮略圖
string:tags= #講師標簽
string:content= #圖文介紹
<<<
success
{
"err": 0,
"data": {
"id": 10,
"nickname": "講師名稱",
"mobile": 123345656,
"status": 0, //審核狀態 0 未審核 2 通過 3駁回
"province": "身份證號",
"province_positive": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"province_back": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"tags": [ ],
"content": "圖文信息"
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶講師列表
~~~[api]
get:/index.php/helper/Apihelper/member_lecturer_list
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
string:status=0|2|3 #審核狀態 不傳為全部 0 未審核 2 通過 3駁回
string:keyword= #檢索的關鍵字
string:sort= id #排序字段
string:sort_type= asc#排序類型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"data": [
{
"id": 10,
"nickname": "講師名稱",
"mobile": 123345656,
"status": 0, //審核狀態 0 未審核 2 通過 3駁回
"tags": [ ],
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶講師列表,用在下拉列表
~~~[api]
get:/index.php/helper/Apihelper/member_lecturer_list
string:sort= id #排序字段
string:sort_type= asc#排序類型
<<<
success
{
"err": 0,
"count": 1,
"data": [
{
"id": 10,
"nickname": "講師名稱",
"mobile": 123345656,
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取某個講師信息
~~~[api]
post:/index.php/curriculum/Apilecturer/member_lecturer_getInfo
*int:id= 1#講師id
<<<
success
{
"err": 0,
"data": {
"id": 10,
"nickname": "講師名稱",
"mobile": 123345656,
"status": 0, //審核狀態 0 未審核 2 通過 3駁回
"province": "身份證號",
"province_positive": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"province_back": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"tags": [ ],
"content": "圖文信息",
"msg": "審核意見",
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>講師刪除
~~~[api]
post:/index.php/curriculum/Apilecturer/member_lecturer_del
*int:id= 1#講師id
<<<
success
{
"err": 0,
"data": {
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~