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
90931cd2
Commit
90931cd2
authored
Apr 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增官网接口
parent
b4ea9827
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
WebController.cs
Edu.WebApi/Controllers/Web/WebController.cs
+28
-0
No files found.
Edu.WebApi/Controllers/Web/WebController.cs
View file @
90931cd2
...
...
@@ -340,6 +340,34 @@ namespace Edu.WebApi.Controllers.Web
return
ApiResult
.
Success
(
data
:
result
);
}
/// <summary>
/// 获取课程列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetCourseList
()
{
var
query
=
new
RB_Course_ViewModel
()
{
CateId
=
base
.
ParmJObj
.
GetInt
(
"CateId"
,
0
),
Group_Id
=
base
.
ParmJObj
.
GetInt
(
"Group_Id"
),
};
if
(
query
.
Group_Id
<=
0
)
{
string
Domain
=
base
.
ParmJObj
.
GetStringValue
(
"Domain"
);
int
groupId
=
groupModule
.
GetGroupIdByDomainModule
(
Domain
);
query
.
Group_Id
=
groupId
;
}
var
list
=
courseModule
.
GetCourseListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
.
Select
(
qitem
=>
new
{
qitem
.
CourseId
,
qitem
.
CourseName
,
}));
}
/// <summary>
/// 官网开班计划
/// </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