mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
课时管理
This commit is contained in:
29
src/main/java/xyz/playedu/api/service/CourseHourService.java
Normal file
29
src/main/java/xyz/playedu/api/service/CourseHourService.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package xyz.playedu.api.service;
|
||||
|
||||
import xyz.playedu.api.domain.CourseHour;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import xyz.playedu.api.exception.NotFoundException;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tengteng
|
||||
* @description 针对表【course_hour】的数据库操作Service
|
||||
* @createDate 2023-02-26 17:48:12
|
||||
*/
|
||||
public interface CourseHourService extends IService<CourseHour> {
|
||||
|
||||
List<CourseHour> getHoursByCourseId(Integer courseId);
|
||||
|
||||
CourseHour create(Integer courseId, Integer chapterId, String title, String type, Integer duration, Date publishedAt);
|
||||
|
||||
void update(CourseHour courseHour, Integer chapterId, String title, Integer duration, Date publishedAt);
|
||||
|
||||
CourseHour findOrFail(Integer id) throws NotFoundException;
|
||||
|
||||
CourseHour findOrFail(Integer id, Integer courseId) throws NotFoundException;
|
||||
|
||||
Integer getCourseClassHourByCourseId(Integer courseId);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user