Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
054b764c
Commit
054b764c
authored
Sep 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实体
parent
5f62a6a8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
RB_Course.cs
Edu.Model/Entity/Course/RB_Course.cs
+10
-0
RB_Course_Chapter.cs
Edu.Model/Entity/Course/RB_Course_Chapter.cs
+5
-0
CourseModule.cs
Edu.Module.Course/CourseModule.cs
+16
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+2
-2
No files found.
Edu.Model/Entity/Course/RB_Course.cs
View file @
054b764c
...
...
@@ -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
Edu.Model/Entity/Course/RB_Course_Chapter.cs
View file @
054b764c
...
...
@@ -23,6 +23,11 @@ namespace Edu.Model.Entity.Course
/// </summary>
public
int
CourseId
{
get
;
set
;
}
/// <summary>
/// 章节编号
/// </summary>
public
string
ChapterNo
{
get
;
set
;
}
/// <summary>
/// 章节名称
/// </summary>
...
...
Edu.Module.Course/CourseModule.cs
View file @
054b764c
...
...
@@ -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>
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
054b764c
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment