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.HelpCenterException;
|
import com.yeshi.fanli.exception.HelpClassException;
|
|
public interface HelpClassService {
|
|
/**
|
* 批量删除
|
* @param idList
|
* @return
|
* @throws HelpCenterException
|
*/
|
public int deleteByPrimaryKeyBatch(List<Long> idList);
|
|
|
/**
|
* 批量删除
|
* @param idList
|
* @return
|
* @throws HelpCenterException
|
*/
|
public void save(HelpClass helpClass) throws HelpClassException;
|
|
/**
|
* 查询
|
* @param pageIndex 页码
|
* @param pageSize 页面条数
|
* @param key 搜索条件
|
* @param startTime 起始时间
|
* @param endTime 结束时间
|
* @return
|
*/
|
public List<HelpClass> 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<HelpClass> getClassByState(Integer state) throws HelpClassException;
|
|
/**
|
* 查询所有选项提供选择
|
* @return
|
* @throws HelpClassException
|
*/
|
public List<HelpClass> getProvidedClass() throws HelpClassException;
|
|
|
}
|