From bf470b1c797c6596973277e4dd9aaccd63c36cb4 Mon Sep 17 00:00:00 2001 From: GoCo Date: Fri, 29 Aug 2025 05:12:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/biz/controller/CourseBizController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() {