## 创建班级
~~~[api]
post:/api/class_room/create
*file:cover#封面图片
*string:name#班级名称
*string:school_name#学校名称
*int:which#入学年份
*string:area#所在区域
*json:teacher_list#任课老师名单
*json:student_list#学生名单
<<<
success
{
"code": 1,
"msg": "创建班级成功",
"result": {
"id": 1,
"user_id": 1,
"name": "1111",
"school_name": "德玛西亚",
"cover": "/static/cover/9d/840e4e9fb823c250f24da6f9dd9a61.png",
"which": 2018,
"area": "北京市-北京市-东城区",
"status": 0,
"teacher_list": {
"英文": "代码"
},
"student_list": [
"嘻嘻"
],
"create_time": "2018-06-07 17:53:48",
"update_time": "2018-06-07 17:53:48"
}
}
<<<
error
{
"code": 0,
"msg": "请上传班级封面图片"
}
<<<
error
{
"code": 0,
"msg": "您的身份不能创建班级,Group:4"
}
~~~