- 单用户登录
- 德育,智育,综合,班级,专业排名
- code :
- 0 : 一切正常
- 1 : 直接将 message 展示给用户
- 2 : 验证用户无效,跳转至登录页
- POST /xkp/academy
- payload :
{
"code": 0,
"message": "",
"data": 23
}
- GET /xkp/academy
- return :
{
"code": 0,
"message": "",
"data": [
{
"id": 23,
"name": "信息"
},
{
"id": 24,
"name": "文法"
}
]
}
- GET /xkp/academy/{systemId}
- return :
{
"code": 0,
"message": "",
"data": "信息学院"
}
- DELETE /xkp/academy/{systemId}
- return :
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/manager
- payload :
{
"username": "xxxykpzx",
"academyId": 2,
"specialtyId": 2,
"classId": 2,
"grade": "2015",
"type": "C"
}
{
"code": 0,
"message": "",
"data": {
"username": "xxxykpzx",
"password": "qazwsxed"
}
}
- GET /xkp/manager?
- academyId : 学院 id (必须)
- specialtyId : 专业 id
- classId : 班级 id
- grade : 年级
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 23,
"username": "xxxy"
},
{
"systemId": 24,
"username": "wexy"
}
]
}
- PUT /xkp/manager/reset/{systemId}
- return :
{
"code": 0,
"message": "",
"data": {
"username": "xxxykpzx",
"password": "qazwsxed"
}
}
- PUT /xkp/manager/change
- payload :
{
"systemId": 2,
"oldPassword": "asdfg",
"newPassword": "asdfg"
}
{
"code": 0,
"message": "",
"data": true
}
- DELETE /xkp/manager/{systemId}
- return :
{
"code": 0,
"message": "",
"data": true
}
{
"username": "2015111363",
"password": "123456789"
}
- return :
- type : A 管理员 | B 学院 | C 学生
{
"code": 0,
"message": "",
"data": {
"systemId": 12,
"token": "asdfgh",
"type": "C",
"grade": "2017",
"academyId": 12,
"specialtyId": 3,
"classId": 13
}
}
- PUT /xkp/#
- payload :
- academyId : 学院 id
- grade : 年级
- enable : true 允许登录 | false 禁止登录
{
"academyIds": [
12,
32
],
"grades": [
"2014",
"2015"
],
"status": true
}
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/grade
- payload :
{
"code": 0,
"message": "",
"data": "2015"
}
{
"code": 0,
"message": "",
"data": [
"2015",
"2016"
]
}
- DELETE /xkp/grade/{grade}
- return :
{
"code": 0,
"message": "",
"data": true
}
{
"code": 0,
"message": "",
"data": true
}
- GET /xkp/benchmark/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"studentNumber": 2017111363,
"name": "zhang",
"marks": [
{
"courseId": 1234,
"type": true,
"examination": 70,
"inspection": null
}
],
"academic": 3.5,
"point": 2.333,
"behavior": "优",
"moral": 4.000,
"activity": 5.000,
"other": 2.750,
"dutyDesc": "班长",
"score": 71.4830,
"total": 82.5500,
"complexRank": 1,
"scoreRank": 2
}
]
}
- GET /xkp/benchmark/download-docx/{classId}
- GET /xkp/benchmark/download-xlsx/{classId}
- POST /xkp/specialty
- payload :
{
"academyId": 213,
"name": "电气自动化"
}
{
"code": 0,
"message": "",
"data": 23
}
- GET /xkp/specialty/{academyId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 23,
"name": "电气自动化"
},
{
"systemId": 24,
"name": "机械电子"
}
]
}
- GET /xkp/specialty-name/{systemId}
- return :
{
"code": 0,
"message": "",
"data": "机械电子"
}
- DELETE /xkp/specialty/{systemId}
- return :
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/class
- payload :
{
"specialtyId": 2345,
"grade": "2014",
"name": "一班"
}
{
"code": 0,
"message": "",
"data": 23
}
- GET /xkp/class?
- specialtyId : 专业 id
- grade : 年级
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 23,
"name": "一班"
},
{
"systemId": 24,
"name": "二班"
}
]
}
- GET /xkp/class/{systemId}
- return :
{
"code": 0,
"message": "",
"data": "一班"
}
- DELETE /xkp/class/{systemId}
- return :
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/student
- paylaod :
{
"classId": 22,
"studentNumber": 2015113633,
"name": "zhang"
}
{
"code": 0,
"message": "",
"data": 123456
}
- GET /xkp/student/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 123,
"name": "zhang",
"studentNumber": "2015113633"
}
]
}
- GET /xkp/student?
- return :
{
"code": 0,
"message": "",
"data": "信息学院-信息安全-二班"
}
- DELETE /xkp/student/{systemId}
- return :
{
"code": 0,
"message": "",
"data": true
}
- GET /xkp/base-score/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 231,
"studentNumber": "2015111363",
"name": "张三",
"moral": 20.3,
"activity": 23.5,
"duty": 12.0,
"academic": 30.0,
"behavior": "优",
"academicDesc": "论文一篇",
"dutyDesc": "班长"
}
]
}
- PUT /xkp/base-score
- payload :
- moral : 德育
- activity : 文体
- duty : 职务
- academic : 学术
- behavior : 操行评等 优 | 良 | 中 | 差
{
"systemId": 231,
"moral": 20.3,
"activity": 23.5,
"duty": 12.0,
"academic": 30.0,
"behavior": "优",
"academicDesc": "论文一篇",
"dutyDesc": "班长"
}
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/course
- payload :
- credit : 学分
- type : true 考试 | false 考察
{
"classId": 1234,
"name": "高数",
"credit": 4.5,
"type": true
}
{
"code": 0,
"message": "",
"data": 123456
}
- GET /xkp/course/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 12,
"courseId": 1234,
"name": "高数",
"credit": 4.5,
"type": true
}
]
}
- DELETE /xkp/course/{courseId}
- return :
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/score
- payload :
- studentId : 学生 id
- courseId : 课程 id
- type : true 考试 | false 考察
- examination : 分数 (考试)
- inspection : 优秀 | 良好 | 中等 | 及格 | 不及格 (考察)
{
"studentId": 231,
"marks": [
{
"courseId": 1234,
"type": true,
"examination": 70,
"inspection": null
}
]
}
{
"code": 0,
"message": "",
"data": true
}
- GET /xkp/score/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"studentId": 231,
"studentNumber": "2015111363",
"name": "张三",
"marks": [
{
"courseId": 1234,
"type": true,
"examination": 70,
"inspection": null
}
]
}
]
}
- PUT /xkp/score
- payload :
- studentId : 学生 id
- courseId : 课程 id
- type : true 考试 | false 考察
- examination : 分数 (考试)
- inspection : 优秀 | 良好 | 中等 | 及格 | 不及格 (考察)
{
"studentId": 231,
"marks": [
{
"courseId": 1234,
"type": true,
"examination": 70,
"inspection": null
}
]
}
{
"code": 0,
"message": "",
"data": true
}
- POST /xkp/score-table
- payload :
- Content-Type = multipart/form-data
- file = 2015.xlsx
- return :
{
"code" : 0,
"message": "",
"data" : true
}
- GET /xkp/history/title/{classId}
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 123,
"name": "2018-2019年度上学期"
},
{
"systemId": 321,
"name": "2018-2019年度下学期"
}
]
}
- GET /xkp/history/benchmark?classId=208&titleId=321
- classId : 班级 id
- titleId : 学期id
- return :
{
"code": 0,
"message": "",
"data": [
{
"studentNumber": 2017111363,
"name": "zhang",
"marks": [
{
"courseId": 1234,
"type": true,
"examination": 70,
"inspection": null
}
],
"academic": 3.5,
"point": 2.333,
"behavior": "优",
"moral": 4.000,
"activity": 5.000,
"other": 2.750,
"dutyDesc": "班长",
"score": 71.4830,
"total": 82.5500,
"complexRank": 1,
"scoreRank": 2
}
]
}
- GET /xkp/history/grade
- return :
{
"code": 0,
"message": "",
"data": [
"2015"
]
}
- GET /xkp/history/course
- return :
{
"code": 0,
"message": "",
"data": [
{
"systemId": 12,
"courseId": 1234,
"name": "高数",
"credit": 4.5,
"type": true
}
]
}