From 00b19991c54d7d4a51d44aa6489818a13809cd62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8F=AE=E5=8F=AE=E5=92=9A=E5=92=9A?= <3107655287@qq.com>
Date: Fri, 7 Jun 2024 17:18:21 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=AB=99=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/courses/CoursesController.java | 15 +++++
.../backend/mapper/courses/CoursesMapper.java | 6 ++
.../teaching/backend/model/vo/CoursesVO.java | 12 ++++
.../service/courses/ICoursesService.java | 4 ++
.../impl/courses/CoursesServiceImpl.java | 58 +++++++++++++++++++
src/main/resources/application.yml | 2 +-
6 files changed, 96 insertions(+), 1 deletion(-)
diff --git a/src/main/java/com/teaching/backend/controller/courses/CoursesController.java b/src/main/java/com/teaching/backend/controller/courses/CoursesController.java
index 9bdde4c..4206336 100644
--- a/src/main/java/com/teaching/backend/controller/courses/CoursesController.java
+++ b/src/main/java/com/teaching/backend/controller/courses/CoursesController.java
@@ -16,7 +16,9 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
/**
*
@@ -33,6 +35,19 @@ public class CoursesController {
@Autowired
ICoursesService coursesService;
+ @ApiOperation("网站首页")
+ @GetMapping("/index")
+ public BaseResponse