OPEN2U基础服务 - 教学服务
Simulation
获取模拟练习列表 。 (GetSimulationList)
查看
接口地址:~/Exam/Simulation/GetSimulationList
接口方法:public string GetSimulationList(System.Guid CourseID,System.String Name,System.Int32 rows,System.Int32 page)
返回数据:returns
课程ID(CourseID):
模拟练习名称(Name):
行(rows):
页(page):
当前用户token(token):
添加模拟练习 。 (AddSimulation)
查看
接口地址:~/Exam/Simulation/AddSimulation
接口方法:public string AddSimulation(System.Guid CourseID,System.String Name,System.Int32 Type,System.Nullable{System.Int32} TimeLimit,System.Nullable{System.Int32} ParticularYear,System.Int32 BeginDate,System.String EndDate, Status)
返回数据:returns
课程ID(CourseID):
模拟练习名称(Name):
类型 1 模拟题 2 练习题 3 历年真题(Type):
限时(TimeLimit):
年份(ParticularYear):
开始时间(BeginDate):
结束时间(EndDate):
状态:-1 删除 0 停用 1 启用 2 发布(Status):
当前用户token(token):
修改模拟练习 。 (UpdateSimulation)
查看
接口地址:~/Exam/Simulation/UpdateSimulation
接口方法:public string UpdateSimulation(System.Guid ID,System.Guid CourseID,System.String Name,System.Int32 Type,System.Nullable{System.Int32} TimeLimit,System.Nullable{System.Int32} ParticularYear,System.Int32 BeginDate,System.String EndDate, Status)
返回数据:returns
ID(ID):
课程ID(CourseID):
模拟练习名称(Name):
类型 1 模拟题 2 练习题 3 历年真题(Type):
限时(TimeLimit):
年份(ParticularYear):
开始时间(BeginDate):
结束时间(EndDate):
状态:-1 删除 0 停用 1 启用 2 发布(Status):
当前用户token(token):
删除模拟练习 。 (DeleteSimulation)
查看
接口地址:~/Exam/Simulation/DeleteSimulation
接口方法:public string DeleteSimulation(System.Guid ID)
返回数据:returns
ID(ID):
当前用户token(token):
获取模拟练习的详细信息 。 (GetSimulationByID)
查看
接口地址:~/Exam/Simulation/GetSimulationByID
接口方法:public string GetSimulationByID(System.Guid ID)
返回数据:returns
ID(ID):
当前用户token(token):
变更模拟练习试卷状态 。 (UpdateSimulationType)
查看
接口地址:~/Exam/Simulation/UpdateSimulationType
接口方法:public string UpdateSimulationType(System.Guid ID,System.Nullable{System.Int32} type)
返回数据:returns
模拟练习ID(ID):
类型 1、手工录入 2、题库选题 3、策略出题(type):
当前用户token(token):
向对应练习插入试卷 。 (AddSimulationTestpaper)
查看
接口地址:~/Exam/Simulation/AddSimulationTestpaper
接口方法:public string AddSimulationTestpaper(System.String TestPaperID,System.int TopicQuantity,System.int TestPaperScore,System.Guid SimulationExaminationID,System.String token)
返回数据:returns
试卷ID,如果有多个按照,分割(TestPaperID):
题目总数(TopicQuantity):
试卷总分(TestPaperScore):
模拟练习ID(SimulationExaminationID):
token(token):
当前用户token(token):
根据模拟ID获取最新需要变更的试卷数据 。 (GetSimulationTestpaperByID)
查看
接口地址:~/Exam/Simulation/GetSimulationTestpaperByID
接口方法:public string GetSimulationTestpaperByID(System.String SimulationExaminationID)
返回数据:returns
模拟练习ID(SimulationExaminationID):
当前用户token(token):
获取学生练习列表及答题列表(GetStuSimulationList)
查看
接口地址:~/Exam/Simulation/GetStuSimulationList
接口方法:public string GetStuSimulationList(Guid courseID, int? type, int? year, int rows, int page,string callback)
返回数据:returns
课程ID(courseID):
类型 1 模拟题 2练习题 3历年真题 不传为全部(type):
年份 不传为全部(year):
行 必须传入(rows):
页数 必须传入(page):
当前用户token(token):
获取学生练习列表及答题列表(新)(GetStuSimulationList_V2)
查看
接口地址:~/Exam/Simulation/GetStuSimulationList_V2
接口方法:public string GetStuSimulationList_V2(Guid studentCourseID, int? type, int? year, int rows, int page, string callback)
返回数据:returns
选课ID(studentCourseID):
类型 1 模拟题 2练习题 3历年真题 不传为全部(type):
年份 不传为全部(year):
行 必须传入(rows):
页数 必须传入(page):
当前用户token(token):
模拟练习学生获取试卷(GetExamTestPaper)
查看
接口地址:~/Exam/Simulation/GetExamTestPaper
接口方法:public string GetExamTestPaper(System.Guid ID)
返回数据:returns
模拟练习ID(ID):
当前用户token(token):
模拟练习学生获取试卷(新)(GetExamTestPaper_V2)
查看
接口地址:~/Exam/Simulation/GetExamTestPaper_V2
接口方法:public string GetExamTestPaper_V2(Guid ID, Guid studentCourseID, string callback)
返回数据:returns
模拟练习ID(ID):
选课ID(studentCourseID):
当前用户token(token):
开始答题(DoExamTestPaper)
查看
接口地址:~/Exam/Simulation/DoExamTestPaper
接口方法:public string DoExamTestPaper(System.Guid ID)
返回数据:returns
模拟练习ID(ID):
当前用户token(token):
开始答题(新)(DoExamTestPaper_V2)
查看
接口地址:~/Exam/Simulation/DoExamTestPaper_V2
接口方法:public string DoExamTestPaper_V2(Guid ID, Guid studentCourseID, string callback)
返回数据:returns
模拟练习ID(ID):
选课ID(studentCourseID):
当前用户token(token):
提交 。 (SubmitExam)
查看
接口地址:~/Exam/Simulation/SubmitExam
接口方法:public string SubmitExam(System.Guid AnswerID,System.String AnswerSheet,System.Int32 Type)
返回数据:returns
答题卡ID(AnswerID):
答案(AnswerSheet):
0、放弃答题 1、提交(Type):
当前用户token(token):
修改答题卡 。 (UpdateAnswer)
查看
接口地址:~/Exam/Simulation/UpdateAnswer
接口方法:public string UpdateAnswer(System.Guid AnswerID,System.String AnswerSheet)
返回数据:returns
答题卡ID(AnswerID):
答案(AnswerSheet):
当前用户token(token):
获取作答记录详细信息 。 (GetStuAnswer)
查看
接口地址:~/Exam/Simulation/GetStuAnswer
接口方法:public string GetStuAnswer(System.String AnsID)
返回数据:returns
答题卡ID 必须(AnsID):
当前用户token(token):
生成试卷 。 (CreateTestPaper)
查看
接口地址:~/Exam/Simulation/CreateTestPaper
接口方法:public string CreateTestPaper(System.Guid SimulationExaminationID,System.Guid courseID,System.Guid ruleID)
返回数据:returns
模拟练习ID(SimulationExaminationID):
课程ID(courseID):
策略ID(ruleID):
当前用户token(token):
策略试卷列表 。 (GetExamPaperList)
查看
接口地址:~/Exam/Simulation/GetExamPaperList
接口方法:public string GetExamPaperList(System.Guid SimulationExaminationID)
返回数据:returns
模拟练习ID(SimulationExaminationID):
当前用户token(token):
删除策略试卷 。 (DelExamPaper)
查看
接口地址:~/Exam/Simulation/DelExamPaper
接口方法:public string DelExamPaper(System.Guid ID)
返回数据:returns
ID(ID):
当前用户token(token):
预览策略试卷 。 (GetExamPaper)
查看
接口地址:~/Exam/Simulation/GetExamPaper
接口方法:public string GetExamPaper(Guid SimulationExaminationID, Guid TestPaperID)
返回数据:returns
模拟练习ID(SimulationExaminationID):
试卷ID(TestPaperID):
当前用户token(token):
修改模拟练习试卷分数 。 (UpdatePaperScore)
查看
接口地址:~/Exam/Simulation/UpdatePaperScore
接口方法:public string UpdatePaperScore(System.Guid paperid,System.Decimal score)
返回数据:returns
试卷ID(paperid):
总分(score):
当前用户token(token):
单个试题判分(TopicJudge)
查看
接口地址:~/Exam/Simulation/TopicJudge
接口方法: public string TopicJudge(string testPaperID, string jsonAnswer, string callback)
返回数据:{"Success":true,"Message":"判分成功!","ErrCode":"","Data":0.0,"StartTime":"2019/12/25 11:13:50:202","EndTime":"2019/12/25 11:13:50:467"}
试卷ID(testPaperID):
学生答题json(jsonAnswer): 如: {'TestPaperID':'3c976cdf-3f81-49b5-9386-40937ff319b1','ResultList':[{'I1':'a468d33f-43af-4caa-bc4d-4e22a4e7a36e','I15':['0'],'Sub':null}]}
当前用户token(token):
联系人:朱利戈
E-Mail:zhulg@mail.open.com.cn