Commit fd811641 authored by 黄奎's avatar 黄奎

页面修改

parent 67599ff6
......@@ -10,13 +10,17 @@ namespace Edu.Common.Enum.Question
/// </summary>
public enum LevelTypeEnum
{
/// <summary>
/// 高考日语
/// </summary>
[EnumField("高考日语")]
GaoKao = 6,
/// <summary>
/// N5
/// </summary>
[EnumField("N5")]
N5 = 5,
/// <summary>
///N4
/// </summary>
......
......@@ -208,6 +208,7 @@ namespace Edu.WebApi.Controllers.Course
item.DifficultyType,
item.CategoryName,
DifficultyTypeName = item.DifficultyType.ToName(),
item.LevelTypeName
}); ;
index++;
}
......@@ -248,6 +249,18 @@ namespace Edu.WebApi.Controllers.Course
return ApiResult.Success(data: list);
}
/// <summary>
/// 问题考级程度
/// </summary>
/// <returns></returns>
[HttpPost]
[HttpGet]
public ApiResult GetQuestionLevelType()
{
var list = Common.Plugin.EnumHelper.EnumToList(typeof(LevelTypeEnum));
return ApiResult.Success(data: list);
}
/// <summary>
/// 获取课程问题列表
/// </summary>
......@@ -282,7 +295,8 @@ namespace Edu.WebApi.Controllers.Course
QuestionTypeKey = base.ParmJObj.GetStringValue("QuestionTypeKey"),
SortNum = base.ParmJObj.GetInt("SortNum"),
Title = base.ParmJObj.GetStringValue("Title"),
Category=(QuestionCategoryEnum)base.ParmJObj.GetInt("Category")
Category=(QuestionCategoryEnum)base.ParmJObj.GetInt("Category"),
LevelType= (LevelTypeEnum)base.ParmJObj.GetInt("LevelType"),
};
if (string.IsNullOrEmpty(extModel.Title))
{
......
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