|
|
@@ -19,6 +19,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -30,7 +31,7 @@ import java.util.List;
|
|
|
@Api(value = "课程控制器", tags = {"课程管理"})
|
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
@RestController
|
|
|
-@RequestMapping("/course")
|
|
|
+@RequestMapping("/app/common/course")
|
|
|
public class CourseController extends BaseController {
|
|
|
|
|
|
private final ICourseService iCourseService;
|
|
|
@@ -41,8 +42,11 @@ public class CourseController extends BaseController {
|
|
|
@ApiOperation("查询课程列表")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<CourseVo> list(CourseQueryBo bo) {
|
|
|
+ List<Integer> statusList = new ArrayList<>();
|
|
|
+ statusList.add(1);
|
|
|
+ bo.setStatus(statusList);
|
|
|
startPage();
|
|
|
- List<CourseVo> list = iCourseService.selectCourseList(bo);
|
|
|
+ List<CourseVo> list = iCourseService.queryList(bo);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|