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 { + +} diff --git a/src/main/java/com/teaching/backend/service/IChapterService.java b/src/main/java/com/teaching/backend/service/IChapterService.java new file mode 100644 index 0000000..4d3ff34 --- /dev/null +++ b/src/main/java/com/teaching/backend/service/IChapterService.java @@ -0,0 +1,16 @@ +package com.teaching.backend.service; + +import com.teaching.backend.entity.Chapter; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author author + * @since 2024-06-07 + */ +public interface IChapterService extends IService { + +} diff --git a/src/main/java/com/teaching/backend/service/impl/ChapterServiceImpl.java b/src/main/java/com/teaching/backend/service/impl/ChapterServiceImpl.java new file mode 100644 index 0000000..7cfafc6 --- /dev/null +++ b/src/main/java/com/teaching/backend/service/impl/ChapterServiceImpl.java @@ -0,0 +1,20 @@ +package com.teaching.backend.service.impl; + +import com.teaching.backend.entity.Chapter; +import com.teaching.backend.mapper.ChapterMapper; +import com.teaching.backend.service.IChapterService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author author + * @since 2024-06-07 + */ +@Service +public class ChapterServiceImpl extends ServiceImpl implements IChapterService { + +}