Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
online-edu-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
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
online-edu
online-edu-backend
Commits
c49b6f39
Commit
c49b6f39
authored
Jun 01, 2021
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
f4bf1f32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
MainPageController.java
...ava/com/qkdata/biz/web/controller/MainPageController.java
+0
-3
application.yml
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/com/qkdata/biz/web/controller/MainPageController.java
View file @
c49b6f39
...
@@ -58,14 +58,12 @@ public class MainPageController {
...
@@ -58,14 +58,12 @@ public class MainPageController {
}
}
@ApiOperation
(
"首页推存课程列表"
)
@ApiOperation
(
"首页推存课程列表"
)
@PostMapping
(
"/course/recommend/list"
)
@PostMapping
(
"/course/recommend/list"
)
@RequiresRoles
(
value
=
{
BizConstants
.
ROLE_USER
,
BizConstants
.
ROLE_ENTERPRISE_ADMIN
},
logical
=
Logical
.
OR
)
public
PageResult
<
SearchCourseResultModel
>
recommendCourseList
(
@RequestBody
SearchCourseConditionModel
model
){
public
PageResult
<
SearchCourseResultModel
>
recommendCourseList
(
@RequestBody
SearchCourseConditionModel
model
){
return
courseService
.
mainPageRecommendList
(
model
);
return
courseService
.
mainPageRecommendList
(
model
);
}
}
@ApiOperation
(
"搜索课程"
)
@ApiOperation
(
"搜索课程"
)
@PostMapping
(
"/course/search"
)
@PostMapping
(
"/course/search"
)
@RequiresRoles
(
value
=
{
BizConstants
.
ROLE_USER
,
BizConstants
.
ROLE_ENTERPRISE_ADMIN
},
logical
=
Logical
.
OR
)
@SysLog
(
"搜索课程"
)
@SysLog
(
"搜索课程"
)
public
PageResult
<
SearchCourseResultModel
>
searchCourse
(
@RequestBody
SearchCourseConditionModel
model
){
public
PageResult
<
SearchCourseResultModel
>
searchCourse
(
@RequestBody
SearchCourseConditionModel
model
){
return
courseService
.
search
(
model
);
return
courseService
.
search
(
model
);
...
@@ -73,7 +71,6 @@ public class MainPageController {
...
@@ -73,7 +71,6 @@ public class MainPageController {
@ApiOperation
(
"获取全部标签"
)
@ApiOperation
(
"获取全部标签"
)
@GetMapping
(
"/course/tags"
)
@GetMapping
(
"/course/tags"
)
@RequiresRoles
(
value
=
{
BizConstants
.
ROLE_USER
,
BizConstants
.
ROLE_ENTERPRISE_ADMIN
},
logical
=
Logical
.
OR
)
public
Result
<
List
<
CourseTagPO
>>
findCourseTags
(){
public
Result
<
List
<
CourseTagPO
>>
findCourseTags
(){
List
<
CourseTagPO
>
tags
=
tagService
.
list
();
List
<
CourseTagPO
>
tags
=
tagService
.
list
();
return
Result
.
succeed
(
tags
);
return
Result
.
succeed
(
tags
);
...
...
src/main/resources/application.yml
View file @
c49b6f39
...
@@ -23,7 +23,7 @@ spring:
...
@@ -23,7 +23,7 @@ spring:
max-file-size
:
10MB
max-file-size
:
10MB
datasource
:
datasource
:
druid
:
druid
:
url
:
jdbc:mysql://mysql:3306/
framework
?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false
url
:
jdbc:mysql://mysql:3306/
online-edu
?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false
username
:
root
username
:
root
password
:
qkdata
password
:
qkdata
driver-class-name
:
com.mysql.jdbc.Driver
driver-class-name
:
com.mysql.jdbc.Driver
...
...
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