## 文章或者视频的列表
~~~[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
~~~