## 获取学校
~~~[api]
post:/api/user/getschool
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
<<<
success
{
"code": 1,
"msg": "",
"data": [
{
"id": 1,
"name": "晨琛幼儿园"
},
{
"id": 2,
"name": "启智幼儿园"
}
],
"url": "",
"wait": 3
}
<<<
error
~~~
## 获取班级
~~~[api]
post:/api/user/getbanji
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
school_id=1#学校的id
<<<
success
{
"code": 1,
"msg": "",
"data": [
{
"id": 1,
"name": "太阳班",
"school_id": 1
},
{
"id": 2,
"name": "星星班",
"school_id": 1
}
],
"url": "",
"wait": 3
}
<<<
error
~~~
## 绑定学生
~~~[api]
post:/api/user/bangding
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
school_id=1#学校的id
banji_id=2#班级的id
name=慕容嫣#学生的名字
<<<
success
{
"code": 1,
"msg": "操作成功",
"data": "",
"url": "/api/User/bangding",
"wait": 3
}
<<<
error
~~~
## 是否绑定学生
~~~[api]
post:/api/user/is_bangding
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMISXu2eYeIyrltPT2Zl6nqqXepbYhYdsqph9mqeOn2yYhKi3dA#token
<<<
success
{
"code": 1,
"msg": "",
"data": true,//true是不需要验证 false是需要验证
"url": "",
"wait": 3
}
<<<
error
~~~
## 获取用户信息
~~~[api]
post:/api/user/getinfo
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMISXu2eYeIyrltPT2Zl6nqqXepbYhYdsqph9mqeOn2yYhKi3dA#token
<<<
success
{
"code": 1,
"msg": "",
"data": {
"touxiang": null,
"banji": "星星班",
"school": "晨琛幼儿园",
"username": "慕容嫣",
"created_time_text": "2019-04-29",
"xingbie": "男"
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 修改密码
~~~[api]
post:/api/user/updatemima
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMISXu2eYeIyrltPT2Zl6nqqXepbYhYdsqph9mqeOn2yYhKi3dA#token
old_mima=123456#旧密码
new_mima=123456#新密码
again_mima=123456#再一次确认密码
<<<
success
{
"code": 1,
"msg": "修改成功",
"data": "",
"url": "/api/User/updatemima",
"wait": 3
}
<<<
error
~~~
## 获取消息列表
~~~[api]
post:/api/user/message
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJjeu2uOm55igeC03IOKzp6MsIDVhWKNrJt90GODnInXmLizdA
#token
<<<
success
{
"code": 1,
"msg": "",
"data": {
"list": [
{
"id": 1,
"title": "测试",
"content": "测试",
"uid": 1,
"read_time": 0,
"created_time": 1515151,
"object_id": 1,
"created_time_text": "1970-01-18 20:52"
}
],
"lastpage": 1,
"currentpage": 1,
"perpage": 10,
"list_count": 1
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 阅读消息
~~~[api]
post:/api/user/readmessage
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJjeu2uOm55igeC03IOKzp6MsIDVhWKNrJt90GODnInXmLizdA#token
id=1#消息的id
#token
<<<
success
{
"code": 1,
"msg": "阅读成功",
"data": "",
"url": "/api/User/readmessage",
"wait": 3
}
<<<
error
~~~