From 6e52f169d9d6503f126b5e623d5067952c97a5b0 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 18:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=A0=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/controller/ChapterController.java | 20 +++++++++++++++++++ .../backend/mapper/ChapterMapper.java | 16 +++++++++++++++ .../backend/service/IChapterService.java | 16 +++++++++++++++ .../service/impl/ChapterServiceImpl.java | 20 +++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 src/main/java/com/teaching/backend/controller/ChapterController.java create mode 100644 src/main/java/com/teaching/backend/mapper/ChapterMapper.java create mode 100644 src/main/java/com/teaching/backend/service/IChapterService.java create mode 100644 src/main/java/com/teaching/backend/service/impl/ChapterServiceImpl.java diff --git a/src/main/java/com/teaching/backend/controller/ChapterController.java b/src/main/java/com/teaching/backend/controller/ChapterController.java new file mode 100644 index 0000000..f10ad15 --- /dev/null +++ b/src/main/java/com/teaching/backend/controller/ChapterController.java @@ -0,0 +1,20 @@ +package com.teaching.backend.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *
+ * 前端控制器 + *
+ * + * @author author + * @since 2024-06-07 + */ +@RestController +@RequestMapping("/chapter") +public class ChapterController { + +} diff --git a/src/main/java/com/teaching/backend/mapper/ChapterMapper.java b/src/main/java/com/teaching/backend/mapper/ChapterMapper.java new file mode 100644 index 0000000..375a19c --- /dev/null +++ b/src/main/java/com/teaching/backend/mapper/ChapterMapper.java @@ -0,0 +1,16 @@ +package com.teaching.backend.mapper; + +import com.teaching.backend.entity.Chapter; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *+ * Mapper 接口 + *
+ * + * @author author + * @since 2024-06-07 + */ +public interface ChapterMapper extends BaseMapper+ * 服务类 + *
+ * + * @author author + * @since 2024-06-07 + */ +public interface IChapterService extends IService+ * 服务实现类 + *
+ * + * @author author + * @since 2024-06-07 + */ +@Service +public class ChapterServiceImpl extends ServiceImpl