[GET] /user/check
检查登录状态
参数:
"any"
响应:
"any"
[POST] /user/login
登录
参数:
{
"id": "string",
"pwd": "string",
"devideId": "string"
}
响应:
{
"token": "string",
"id": "number"
}
[POST] /user/logout
登出
参数:
"any"
响应:
"any"
[GET] /user/search
搜索用户
参数:
{
"name": "string",
"cls": "number",
"auth": "number"
}
响应:
"any"
[GET] /user/int:id/name
获取一个用户的最基础信息(用于登录页面)
参数:
"any"
响应:
{
"clsName": "string",
"userName": "string"
}
[GET] /user/int:id
获取一个用户的详细详细信息
参数:
"any"
响应:
{
"name": "string",
"school_id": "number",
"cls": "number",
"auth": "number",
"clsName": "string"
}
[GET] /user/int:id/time
获取一个用户(学生)的义工分
参数:
"any"
响应:
{
"inside": "number",
"outside": "number",
"large": "number"
}
[POST] /user/mod-pwd
修改自己的密码
参数:
{
"old": "string",
"neo": "string"
}
响应:
"any"
[POST] /user/create
创建用户
参数:
{
"users": [
{
"id": "number",
"name": "string",
"cls": "number",
"auth": "number"
}
]
}
响应:
"any"
[POST] /user/int:id/modify
修改用户信息
参数:
{
"name": "string",
"cls": "number",
"auth": "number"
}
响应:
"any"
[POST] /user/int:id/delete
删除用户
参数:
"any"
响应:
"any"
[POST] /user/int:id/mod-others-pwd
修改他人的密码
参数:
{
"pwd": "string"
}
响应:
"any"
[POST] /report
发送反馈
参数:
{
"report": "string"
}
响应:
"any"
[GET] /report/fetch
获取反馈
参数:
"any"
响应:
[
{
"content": "string",
"reporter": "number",
"reporterName": "string",
"time": "string"
}
]
[GET] /notice/search
搜索通知
参数:
{
"sender": "number",
"receiver": "number",
"cls": "number",
"school": "number"
}
响应:
[
{
"id": "number",
"title": "string",
"content": "string",
"sender": "number",
"sendtime": "string",
"deadtime": "string",
"senderName": "string"
}
]
[POST] /notice/send/user
发送用户通知
参数:
{
"targets": [
"number"
],
"anonymous": "boolean",
"title": "string",
"content": "string",
"deadtime": "string"
}
响应:
"any"
[POST] /notice/send/class
发送班级通知
参数:
{
"targets": [
"number"
],
"anonymous": "boolean",
"title": "string",
"content": "string",
"deadtime": "string"
}
响应:
"any"
[POST] /notice/send/school
发送学校通知
参数:
{
"anonymous": "boolean",
"title": "string",
"content": "string",
"deadtime": "string"
}
响应:
"any"
[POST] /notice/int:id/delete
删除一个通知
参数:
"any"
响应:
"any"
[POST] /notice/int:id/modify
修改一个通知
参数:
{
"title": "string",
"content": "string",
"deadtime": "string"
}
响应:
"any"
[GET] /notice/public
获取公开通知
参数:
"any"
响应:
[
{
"title": "string",
"content": "string"
},
"null"
]
[GET] /signup/list/int:cls
列出一个班级的报名
参数:
"any"
响应:
[
{
"volId": "number",
"volName": "string",
"stuId": "number",
"stuName": "string"
}
]
[POST] /signup/int:volId
报名一个义工
参数:
{
"students": [
"number"
]
}
响应:
"any"
[POST] /signup/int:volId/int:stuId/rollback
撤回一个报名
参数:
"any"
响应:
"any"
[GET] /volunteer/list
列出义工
参数:
{
"cls": "number"
}
响应:
[
{
"id": "number",
"name": "string",
"time": "string",
"status": "number",
"signable": "boolean",
"joiners": [
{
"id": "number",
"name": "string"
}
],
"holderName": "string"
}
]
[GET] /volunteer/search
搜索义工
参数:
{
"holder": "number",
"student": "number",
"cls": "number",
"name": "string",
"status": "VolStatus",
"signable": "boolean"
}
响应:
[
{
"id": "number",
"name": "string",
"time": "string",
"status": "number",
"signable": "boolean",
"joiners": [
{
"id": "number",
"name": "string"
}
],
"holderName": "string"
}
]
[GET] /volunteer/int:id
获取一个义工的详细信息
参数:
"any"
响应:
{
"name": "string",
"description": "string",
"time": "string",
"status": "VolStatus",
"type": "VolType",
"reward": "number",
"signable": "boolean",
"classes": [
{
"name": "string",
"id": "number",
"max": "number"
}
],
"joiners": [
{
"id": "number",
"name": "string"
}
],
"holder": "number",
"holderName": "string"
}
[POST] /volunteer/create
创建一个义工
参数:
{
"classes": [
{
"id": "number",
"max": "number"
}
],
"name": "string",
"description": "string",
"time": "string",
"type": "VolType",
"reward": "number"
}
响应:
"any"
[POST] /volunteer/create/appointed
创建一个成员全部指定的义工
参数:
{
"joiners": [
"number"
],
"name": "string",
"description": "string",
"time": "string",
"type": "VolType",
"reward": "number"
}
响应:
"any"
[POST] /volunteer/int:id/modify
修改义工
参数:
{
"classes": [
{
"id": "number",
"max": "number"
}
],
"name": "string",
"description": "string",
"time": "string",
"type": "VolType",
"reward": "number"
}
响应:
"any"
[POST] /volunteer/int:id/delete
删除义工
参数:
"any"
响应:
"any"
[POST] /volunteer/int:id/audit
审核通过义工
参数:
"any"
响应:
"any"
[POST] /volunteer/int:id/repulse
审核打回义工
参数:
"any"
响应:
"any"
[POST] /volunteer/create/special
...
参数:
{
"name": "string",
"type": "VolType",
"reward": "number",
"joiners": [
"number"
]
}
响应:
"any"
[GET] /thought/student/int:id
搜索学生感想
参数:
{
"status": "ThoughtStatus"
}
响应:
[
{
"volId": "number",
"stuId": "number",
"status": "ThoughtStatus",
"stuName": "string",
"volName": "string",
"volTime": "string"
}
]
[GET] /thought/search
搜索感想
参数:
{
"cls": "number",
"status": "ThoughtStatus",
"student": "number",
"volunteer": "number"
}
响应:
[
{
"volId": "number",
"stuId": "number",
"status": "ThoughtStatus",
"stuName": "string",
"volName": "string",
"volTime": "string"
}
]
[GET] /thought/int:volId/int:stuId
获取一个感想的详细信息
参数:
"any"
响应:
{
"status": "ThoughtStatus",
"thought": "string",
"pics": [
{
"hash": "string",
"type": "string"
}
],
"reward": "number",
"everRepulsed": "boolean",
"reason": "string"
}
[POST] /thought/int:volId/int:stuId/save
保存感想草稿
参数:
{
"thought": "string",
"pictures": [
[
{
"hash": "string",
"type": "string"
},
{
"base64": "string",
"type": "string"
}
]
]
}
响应:
"any"
[POST] /thought/int:volId/int:stuId/submit
提交感想
参数:
{
"thought": "string",
"pictures": [
[
{
"hash": "string",
"type": "string"
},
{
"base64": "string",
"type": "string"
}
]
]
}
响应:
"any"
[POST] /thought/int:volId/int:stuId/audit/first
初审感想(班内)
参数:
"any"
响应:
"any"
[POST] /thought/int:volId/int:stuId/audit/final
审核感想(义管会)
参数:
{
"reward": "number"
}
响应:
"any"
[POST] /thought/int:volId/int:stuId/repulse
打回感想
参数:
{
"reason": "string"
}
响应:
"any"
[POST] /thought/int:volId/int:stuId/fetch-picture
拉取感想图片
参数:
{
"url": "string"
}
响应:
{
"hash": "string",
"type": "string"
}
[GET] /class/list
列出所有班级
参数:
"any"
响应:
[
{
"id": "number",
"name": "string"
}
]
[GET] /class/int:id/student_num
获取一个班级的学生人数
参数:
"any"
响应:
{
"num": "number"
}
[GET] /class/int:id
获取一个班级的详细信息
参数:
"any"
响应:
{
"name": "string",
"students": [
{
"auth": "number",
"id": "number",
"name": "string"
}
],
"teachers": [
{
"auth": "number",
"id": "number",
"name": "string"
}
]
}
[POST] /class/int:id/delete
删除一个班级
参数:
"any"
响应:
"any"
[POST] /class/create
创建一个班级
参数:
{
"name": "string"
}
响应:
"any"
[POST] /class/int:id/modify
修改一个班级的名称
参数:
{
"name": "string"
}
响应:
"any"
[POST] /system/ttyd/restart
...
参数:
"any"
响应:
"any"
[POST] /system/restart
...
参数:
"any"
响应:
"any"