Commit 054b764c authored by 黄奎's avatar 黄奎

新增实体

parent 5f62a6a8
......@@ -72,5 +72,15 @@ namespace Edu.Model.Entity.Course
/// 删除状态
/// </summary>
public DateStateEnum Status { get; set; }
/// <summary>
/// 教师编号
/// </summary>
public int Teacher_Id { get; set; }
/// <summary>
/// 是否显示章节编号
/// </summary>
public int IsShowChapterNo { get; set; }
}
}
\ No newline at end of file
......@@ -23,6 +23,11 @@ namespace Edu.Model.Entity.Course
/// </summary>
public int CourseId { get; set; }
/// <summary>
/// 章节编号
/// </summary>
public string ChapterNo { get; set; }
/// <summary>
/// 章节名称
/// </summary>
......
......@@ -95,6 +95,22 @@ namespace Edu.Module.Course
return flag;
}
/// <summary>
/// 是否显示章节编号
/// </summary>
/// <param name="CourseId"></param>
/// <param name="IsShowChapterNo">是否显示章节编号(1-显示,0-不显示)</param>
/// <returns></returns>
public bool SetCourseIsShowChapterNo(int CourseId, int IsShowChapterNo)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Course_ViewModel.IsShowChapterNo),IsShowChapterNo },
};
bool flag = courseRepository.Update(fileds, new WhereHelper(nameof(RB_Course_ViewModel.CourseId), CourseId));
return flag;
}
/// <summary>
/// 删除课程
/// </summary>
......
......@@ -240,7 +240,7 @@ namespace Edu.WebApi.Controllers.User
}
pageModel.Count = rowsCount;
pageModel.PageData = list;
return ApiResult.Success(data: list);
return ApiResult.Success(data: pageModel);
}
/// <summary>
......@@ -341,7 +341,7 @@ namespace Edu.WebApi.Controllers.User
}
pageModel.Count = rowsCount;
pageModel.PageData = list;
return ApiResult.Success(data: list);
return ApiResult.Success(data: pageModel);
}
/// <summary>
......
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