文档
测试

1:获取考试列表

POST
api/Teacher/GetExams

接口描述

获取考试列表

请求参数

参数名
类型
描述
必填
TermInfo
string
学期
必填
nTestType
int
考试类型:0-全部考试 1-平时考试 2-期中考试 3-期末考试
必填
nState
int
考试状态 :0-全部状态 2-未开始 3-进行中 4-已结束
必填
sTName
string
按教师名称搜索
必填
ClassID
string
班级ID
必填
PageIndex
int
页码
必填
PageSize
int
每页数量
必填

输入示例

```JSON { "TermInfo": null, "nTestType": 0, "nState": 0, "sTName": null, "ClassID": "76722BD6-C975-4756-96C0-582844E2FF11", "PageIndex": 1, "PageSize": 8 } ```

响应参数

参数名
类型
描述
必填
Code
int
1为成功,0为失败
必填
Msg
string
失败返回的错误信息
必填
Data
dynamic
返回数据
必填
ExamCount
int
考试个数
必填
lstExamInfo
List<ExamInfo>
考试数据列表
必填
sTID
string
考试ID,经过系统ID加密
必填
sTName
string
考试名称
必填
ClassID
string
班级ID
必填
nTestType
int
考试类型(1代表平时考试,2代表期中考试,3代表期末考试)
必填
nState
int
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": "一题多空测试", "ClassID": "76722BD6-C975-4756-96C0-582844E2FF11", "nTestType": 1, "nState": 2, "nStudentCount": 180, "sTestSubName": "英语,数学,语文", "tBeginDate": "2020-06-16T00:00:00", "tEndDate": "2020-07-15T00:00:00", "nTestState": 20 } ] } } ```