package com.gkhy.exam.system.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.exam.common.api.CommonPage;
|
import com.gkhy.exam.system.domain.ExResource;
|
|
/**
|
* <p>
|
* 课程资源表 服务类
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-06 10:25:36
|
*/
|
public interface ExResourceService extends IService<ExResource> {
|
|
/**
|
* 根据条件分页查询资源列表
|
* @param resource
|
* @return
|
*/
|
CommonPage selectResourseList(ExResource resource);
|
|
|
/**
|
* 根据id查询资源信息
|
*
|
* @param resourceId 资源ID
|
* @return 资源信息
|
*/
|
public ExResource selectResourceById(Long resourceId);
|
|
/**
|
* 根据课时id查询资源信息
|
* @param periodId
|
* @return
|
*/
|
public ExResource selectResourceByPeriodId(Long periodId);
|
|
|
/**
|
* 新增资源
|
*
|
* @param resource 资源信息
|
* @return 结果
|
*/
|
public int insertResource(ExResource resource);
|
|
|
/**
|
* 修改资源
|
*
|
* @param resource 资源信息
|
* @return 结果
|
*/
|
public int updateResource(ExResource resource);
|
|
/**
|
* 删除资源信息
|
*
|
* @param resourceId 资源ID
|
* @return 结果
|
*/
|
public int deleteResourceById(Long resourceId);
|
|
|
/**
|
* 校验资源名称是否唯一
|
*
|
* @param resource 资源信息
|
* @return boolean
|
*/
|
public boolean checkNameUnique(ExResource resource);
|
}
|