Commit Graph

1 Commits

Author SHA1 Message Date
En
67b87fae73 refactor(service): Service 层重构 - 接口与实现分离
重构以下服务类为接口 + 实现类结构,符合三层架构规范:
- CourseCollectionService → CourseCollectionService + CourseCollectionServiceImpl
- CourseLessonService → CourseLessonService + CourseLessonServiceImpl
- ResourceLibraryService → ResourceLibraryService + ResourceLibraryServiceImpl
- ThemeService → ThemeService + ThemeServiceImpl

变更详情:
- 接口继承 IService<Entity>,定义业务方法签名
- 实现类继承 ServiceImpl 并实现对应接口,添加 @Override 注解
- CourseCollectionServiceImpl 注入 CourseLessonService 接口依赖
- FileStorageService 保持原结构(纯工具类无需拆分)

验证:
- mvn compile -DskipTests 编译通过

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 15:08:01 +08:00