diff --git a/src/main/java/com/guwan/backend/controller/CoursesController.java b/src/main/java/com/guwan/backend/controller/CoursesController.java index 9dfb49a..a56389b 100644 --- a/src/main/java/com/guwan/backend/controller/CoursesController.java +++ b/src/main/java/com/guwan/backend/controller/CoursesController.java @@ -12,6 +12,7 @@ import com.guwan.backend.service.BSCategoryService; import com.guwan.backend.service.CoursesService; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.data.domain.PageRequest; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @@ -28,6 +29,7 @@ import java.util.stream.Collectors; * @author Guwan * @since 2025-03-13 22:47:31 */ +@Slf4j @RestController @RequestMapping("/bs/courses") @RequiredArgsConstructor @@ -50,8 +52,10 @@ public class CoursesController { @GetMapping("/homePage") public Result queryByPage(@RequestParam("page") Integer pageNumber, @RequestParam("size") Integer size) { + // return Result.success(this.coursesService.queryByPage(courses, pageRequest)); + log.debug("cscscs"); Page page = new Page<>(pageNumber, size); LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>();