文档
测试

1:获取考试列表

POST
api/Student/GetExams

接口描述

获取考试列表

请求参数

参数名
类型
描述
必填
TermInfo
string
学期,示例 2019-202002
必填
nTestType
int
考试类型:0-全部考试 1-平时考试 2-期中考试 3-期末考试
必填
nState
int
考试状态 :0-全部状态 1-未发布 2-未开始 3-进行中 4-已结束
必填
sTName
string
按考试名称搜索
必填
PageIndex
int
页码
必填
PageSize
int
每页数量
必填
StuID
string
学生ID
必填

输入示例

```JSON { "TermInfo": null, "nTestType": 0, "nState": 0, "sTName": null, "PageIndex": 1, "PageSize": 8, "StuID" : "Stu001" } ```

响应参数

参数名
类型
描述
必填
Code
int
1为成功,0为失败
必填
Msg
string
失败返回的错误信息
必填
Data
dynamic
返回数据
必填
ExamCount
int
考试个数
必填
lstExamInfo
List<ExamInfo>
考试数据列表
必填
sTID
string
考试ID,经过系统ID加密
必填
sTName
string
考试名称
必填
nTestType
int
考试类型(1代表平时考试,2代表期中考试,3代表期末考试)
必填
nState
int
1-未发布 2-未开始 3-进行中 4-已结束
必填
nStudentCount
int
考生人数
必填
sTestSubName
string
考试科目名称 示例:英语,数学,语文
必填
tBeginDate
string
考试开始日期 示例:2020-06-16T00:00:00
必填
tEndDate
string
考试结束日期 示例:2020-07-15T00:00:00
必填
nTestState
int
考试状态 示例:12
必填

输出示例

```JSON { "Code": 1, "Msg": null, "Data": { "ExamCount": 1, "lstExamInfo": [ { "sTID": "110900100900800010010310900510900410800800010800010801", "sTName": "一题多空测试", "nTestType": 1, "nState": 1, "nStudentCount": 180, "sTestSubName": "英语,数学,语文", "tBeginDate": "2020-06-16T00:00:00", "tEndDate": "2020-07-15T00:00:00", "nTestState": 12 } ] } } ```