Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
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
viitto
EduSpider
Commits
f0b2e33e
Commit
f0b2e33e
authored
Jun 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
773d748e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
IStuCommentRepository.cs
EduSpider.IRepository/IStuCommentRepository.cs
+1
-0
ICourseService.cs
EduSpider.IServices/ICourseService.cs
+1
-0
CourseService.cs
EduSpider.Services/CourseService.cs
+1
-0
TeacherController.cs
EduSpider.WebApi/Controllers/Student/TeacherController.cs
+17
-0
No files found.
EduSpider.IRepository/IStuCommentRepository.cs
View file @
f0b2e33e
...
@@ -19,6 +19,7 @@ namespace EduSpider.IRepository
...
@@ -19,6 +19,7 @@ namespace EduSpider.IRepository
/// <returns></returns>
/// <returns></returns>
public
bool
SetStuCommentRepository
(
RB_Stu_Comment
model
);
public
bool
SetStuCommentRepository
(
RB_Stu_Comment
model
);
/// <summary>
/// <summary>
/// 查询学员评语列表
/// 查询学员评语列表
/// </summary>
/// </summary>
...
...
EduSpider.IServices/ICourseService.cs
View file @
f0b2e33e
...
@@ -87,6 +87,7 @@ namespace EduSpider.IServices
...
@@ -87,6 +87,7 @@ namespace EduSpider.IServices
/// <returns></returns>
/// <returns></returns>
public
bool
SetStuComment
(
RB_Stu_Comment
model
);
public
bool
SetStuComment
(
RB_Stu_Comment
model
);
/// <summary>
/// <summary>
/// 获取学员评价列表
/// 获取学员评价列表
/// </summary>
/// </summary>
...
...
EduSpider.Services/CourseService.cs
View file @
f0b2e33e
...
@@ -363,6 +363,7 @@ namespace EduSpider.Services
...
@@ -363,6 +363,7 @@ namespace EduSpider.Services
return
StuCommentRepository
.
SetStuCommentRepository
(
model
);
return
StuCommentRepository
.
SetStuCommentRepository
(
model
);
}
}
/// <summary>
/// <summary>
/// 获取学员评价列表
/// 获取学员评价列表
/// </summary>
/// </summary>
...
...
EduSpider.WebApi/Controllers/Student/TeacherController.cs
View file @
f0b2e33e
...
@@ -278,6 +278,23 @@ namespace EduSpider.WebApi.Controllers
...
@@ -278,6 +278,23 @@ namespace EduSpider.WebApi.Controllers
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
[
HttpPost
]
[
HttpGet
]
/// <summary>
/// 修改学员评价
/// </summary>
/// <returns></returns>
public
ApiResult
SetStuCommentInfo
()
{
var
model
=
new
RB_Stu_Comment
()
{
Id
=
base
.
ReqParameters
.
GetInt
(
"Id"
),
Info
=
base
.
ReqParameters
.
GetString
(
"Info"
),
};
var
flag
=
CourseService
.
SetStuComment
(
model
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
[
HttpPost
]
[
HttpPost
]
[
HttpGet
]
[
HttpGet
]
...
...
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