## 文章或者視頻的列表
~~~[api]
post:/api/article/articleList
_ajax=1#ajax請求標記
token=MDAwMDAwMDAwMJnRs2qNiYSllpjX05l3t6mNaKWXmGKYm4Z9qmSYnKPRmrjJdA#token
is_quanbu=false#false是自己發布的 其余的是全部
<<<
success
{
"code": 1,
"msg": "",
"data": {
"list": [
{
"id": 2,
"title": "作文大賽",
"uid": 0,
"author": null,
"cid": 0,
"view": 0,
"create_time": 0,
"update_time": 0,
"status": 0,
"top": 0,
"sort_order": 0,
"is_wenzhang": 0,
"content": null,
"pics": "\"['12.png','123456.png']\"",
"video": "aaasdsdds",
"banji_id": 2,
"school_id": 1,
"create_time_text": "",
"pics_text": "['12.png','123456.png']"
},
{
"id": 3,
"title": "作文大賽",
"uid": 0,
"author": null,
"cid": 0,
"view": 0,
"create_time": 0,
"update_time": 0,
"status": 0,
"top": 0,
"sort_order": 0,
"is_wenzhang": 0,
"content": null,
"pics": "\"['12.png','123456.png']\"",
"video": "aaasdsdds",
"banji_id": 2,
"school_id": 1,
"create_time_text": "",
"pics_text": "['12.png','123456.png']"
}
],
"lastpage": 1,
"currentpage": 1,
"perpage": 10,
"list_count": 2
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 保存文章或者小視頻
~~~[api]
post:/api/article/savearticle
_ajax=1#ajax請求標記
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
title=作文大賽#標題
is_shipin=false#true是視頻 false不是視頻
content=隨便說點什么#內容
video=aaasdsdds#視頻的路徑
pics=['12.png','123456.png']#視頻的封面圖或者上傳的圖片
xuesheng_ids=[1,2]#指定的學生的id
fengmiantu=''#封面圖
is_lunbo=0#0是不加入 1是加入
<<<
success
{
"code": 1,
"msg": "操作成功",
"data": "",
"url": "/api/Article/savearticle",
"wait": 3
}
<<<
error
~~~
## 獲取當前家長的孩子的文章或者小視頻
~~~[api]
post:/api/article/xueshengschool
_ajax=1#ajax請求標記
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
<<<
success
{
"code": 1,
"msg": "",
"data": {
"list": [],
"lastpage": 0,
"currentpage": 1,
"perpage": 10,
"list_count": 0
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 文章或者小視頻的詳情
~~~[api]
post:/api/article/articledetail
_ajax=1#ajax請求標記
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
id=16#文章或者小視頻的id
<<<
success
{
"code": 1,
"msg": "",
"data": {
"id": 2,
"title": "作文大賽",
"uid": 2,
"author": null,
"cid": 0,
"view": 0,
"create_time": 0,
"update_time": 0,
"status": 0,
"top": 0,
"sort_order": 0,
"is_wenzhang": 0,
"content": null,
"pics": "\"['12.png','123456.png']\"",
"video": "aaasdsdds",
"banji_id": 2,
"school_id": 1,
"pics_text": "['12.png','123456.png']",
"zuozhe": "王老師",
"create_time_text": ""
},
"url": "",
"wait": 3
}
<<<
error
~~~