Commit 7244dcfb authored by 黄奎's avatar 黄奎

页面修改

parent 99c23aad
......@@ -10,5 +10,9 @@ namespace Edu.Model.ViewModel.Exam
/// </summary>
public class RB_StuWords_Exam_Extend : RB_StuWords_Exam
{
/// <summary>
/// 单词考试详情
/// </summary>
public List<RB_StuWords_ExamDetail_Extend> ExamDetailList { get; set; }
}
}
......@@ -508,10 +508,19 @@ namespace Edu.Module.Exam
/// 提交单词测试
/// </summary>
/// <returns></returns>
public bool SubmitStuWordsExamModule()
public bool SubmitStuWordsExamModule(RB_StuWords_Exam_Extend model)
{
bool flag = false;
var newId = stuWords_ExamRepository.Insert(model);
model.Id = newId;
flag = newId > 0;
if (flag && model.ExamDetailList != null && model.ExamDetailList.Count > 0)
{
foreach (var item in model.ExamDetailList)
{
}
}
return flag;
}
}
......
......@@ -102,5 +102,20 @@ namespace Edu.WebApi.Controllers.Applet
var obj = courseExamModule.CreateCourseExamModule(CourseId, ChapterId, NextChapterId);
return ApiResult.Success(data: obj);
}
/// <summary>
/// 提交单词测试
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult SubmitWordsExam()
{
var model = new RB_StuWords_Exam_Extend()
{
};
var flag = courseExamModule.SubmitStuWordsExamModule(model);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment