Commit c49b6f39 authored by liuyang's avatar liuyang

updated

parent f4bf1f32
...@@ -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);
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment