package com.yeshi.fanli.service.inter.help; import java.io.IOException; import java.util.List; import org.springframework.web.multipart.MultipartFile; import com.yeshi.fanli.entity.bus.help.HelpClass; import com.yeshi.fanli.exception.config.HelpCenterException; import com.yeshi.fanli.exception.config.HelpClassException; public interface HelpClassService { /** * 批量删除 * @param idList * @return * @throws HelpCenterException */ public int deleteByPrimaryKeyBatch(List idList); /** * 批量删除 * @param idList * @return * @throws HelpCenterException */ public void save(HelpClass helpClass, MultipartFile file) throws HelpClassException,Exception; /** * 查询 * @param pageIndex 页码 * @param pageSize 页面条数 * @param key 搜索条件 * @param startTime 起始时间 * @param endTime 结束时间 * @return */ public List query(int start, int count, String key, Integer state) throws HelpClassException; public long countQuery(String key, Integer state); /** * 根据id查询 * @param id * @return */ public HelpClass selectByPrimaryKey(Long id); /** * 更新装态 * @param id * @return * @throws HelpClassException */ public int updateShowState(Long id) throws HelpClassException; /** * 移动位置 * @param moveType * @param id * @throws HelpClassException */ public void updateSort(Integer moveType, Long id) throws HelpClassException; /** * 上传图片 * @param file * @param id * @throws HelpClassException */ public void uploadPic(MultipartFile file, Long id) throws HelpClassException, IOException; /** * 根据状态查询 * @param state * @return * @throws HelpClassException */ public List getClassByState(Integer state) throws HelpClassException; /** * 查询所有选项提供选择 * @return * @throws HelpClassException */ public List getProvidedClass() throws HelpClassException; /** * 版本设置 * @param id * @param versions * @throws HelpClassException */ public void setVersions(Long id, List versions) throws HelpClassException; /** * 状态切换 * @param id * @throws HelpClassException */ public void switchState(Long id) throws HelpClassException; }