Files
cms/API.md

72 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# V3.0 Beta API文档不稳定
## 登录
**请求URL**
- ` http://s4.fjy8018.top:8085/cms/login/dologin `
**请求方式:**
- POST
**参数:**
| 参数名 | 必选 | 类型 | 说明 |
| :---------- | :--- | :----- | ---- |
| colname | 是 | string | 无 |
| colpassword | 是 | string | 无 |
**返回示例**
``` json
{
"code": 0,
"message": "成功",
"data": {
"coluserid": 1,
"colname": "root",
"colpassword": null,
"colemail": "root@gmail.com",
"colstudentno": "00001",
"colrealname": "admin"
}
}
```
## 指定课程和作业名,返回未交人员名单
**请求URL**
- ` http://s4.fjy8018.top:8085/cms/home/admin/findStudentInCourseFile?Folder=第一次作业&CourseName=信息安全 `
**请求方式:**
- GET
**参数:**
| 参数名 | 必选 | 类型 | 说明 |
| :---------- | :--- | :----- | ---- |
| colname | 是 | string | 无 |
| colpassword | 是 | string | 无 |
**返回示例**
``` json
[
{
"listid": 1,
"colstudentno": "14251101208",
"colrealname": "廖俊宝",
"sex": "男",
"registered": 1
},
{
"listid": 2,
"colstudentno": "15251101201",
"colrealname": "麦贵淇",
"sex": "男",
"registered": 1
}
]
```