diff --git a/jeecg-boot/jeecg-boot-module/jeecg-module-learn/src/main/java/org/jeecg/modules/biz/controller/CourseBizController.java b/jeecg-boot/jeecg-boot-module/jeecg-module-learn/src/main/java/org/jeecg/modules/biz/controller/CourseBizController.java index 8d169ce6..541cb357 100644 --- a/jeecg-boot/jeecg-boot-module/jeecg-module-learn/src/main/java/org/jeecg/modules/biz/controller/CourseBizController.java +++ b/jeecg-boot/jeecg-boot-module/jeecg-module-learn/src/main/java/org/jeecg/modules/biz/controller/CourseBizController.java @@ -219,6 +219,16 @@ public class CourseBizController { return Result.OK(progress); } + @GetMapping("/count") + @Operation(summary = "查询课程总数", description = "返回系统中所有课程的总数量") + @IgnoreAuth + public Result queryCourseCount() { + long count = courseBizService.count(); + return Result.OK(count); + } + + + @GetMapping("/test") @IgnoreAuth public Result test() {