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
29dba483
Commit
29dba483
authored
Oct 10, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增处理类
parent
d2fa0358
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
277 additions
and
6 deletions
+277
-6
RB_Course_Discuss_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Course_Discuss_ViewModel.cs
+18
-0
RB_Course_Source_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Course_Source_ViewModel.cs
+19
-0
CourseModule.cs
Edu.Module.Course/CourseModule.cs
+1
-2
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+239
-4
No files found.
Edu.Model/ViewModel/Course/RB_Course_Discuss_ViewModel.cs
View file @
29dba483
...
...
@@ -9,6 +9,24 @@ namespace Edu.Model.ViewModel.Course
/// </summary>
public
class
RB_Course_Discuss_ViewModel
:
Model
.
Entity
.
Course
.
RB_Course_Discuss
{
/// <summary>
/// 创建人
/// </summary>
public
string
CreateByName
{
get
;
set
;
}
/// <summary>
/// 修改人
/// </summary>
public
string
UpdateByName
{
get
;
set
;
}
/// <summary>
/// 创建时间字符串
/// </summary>
public
string
CreateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatTime
(
this
.
CreateTime
);
}
}
/// <summary>
/// 修改时间字符串
/// </summary>
public
string
UpdateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatTime
(
this
.
UpdateTime
);
}
}
}
}
\ No newline at end of file
Edu.Model/ViewModel/Course/RB_Course_Source_ViewModel.cs
View file @
29dba483
...
...
@@ -9,5 +9,24 @@ namespace Edu.Model.ViewModel.Course
/// </summary>
public
class
RB_Course_Source_ViewModel
:
Model
.
Entity
.
Course
.
RB_Course_Source
{
/// <summary>
/// 创建人
/// </summary>
public
string
CreateByName
{
get
;
set
;
}
/// <summary>
/// 更新人
/// </summary>
public
string
UpdateByName
{
get
;
set
;
}
/// <summary>
/// 创建时间字符串
/// </summary>
public
string
CreateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatTime
(
this
.
CreateTime
);
}
}
/// <summary>
/// 修改时间字符串
/// </summary>
public
string
UpdateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatTime
(
this
.
UpdateTime
);
}
}
}
}
\ No newline at end of file
Edu.Module.Course/CourseModule.cs
View file @
29dba483
...
...
@@ -237,7 +237,7 @@ namespace Edu.Module.Course
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
AddNoticeRevice
(
RB_Course_NoticeRevice_ViewModel
model
)
public
bool
AddNoticeRevice
Module
(
RB_Course_NoticeRevice_ViewModel
model
)
{
var
newId
=
noticeReviceRepository
.
Insert
(
model
);
model
.
ReviceId
=
newId
;
...
...
@@ -348,7 +348,6 @@ namespace Edu.Module.Course
/// <returns></returns>
public
bool
RemoveChapterModule
(
object
ChapterId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Course_Chapter_ViewModel
.
Status
)
,(
int
)
DateStateEnum
.
Delete
},
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
29dba483
This diff is collapsed.
Click to expand it.
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