package com.yeshi.fanli.service.inter.help;
|
|
|
import java.util.List;
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
import com.yeshi.fanli.entity.bus.help.HelpCenter;
|
import com.yeshi.fanli.entity.bus.help.HelpInfo;
|
import com.yeshi.fanli.exception.config.HelpCenterException;
|
|
public interface HelpCenterService {
|
|
/**
|
* 插入对象
|
* @param record
|
* @return
|
* @throws HelpCenterException
|
*/
|
public int insertSelective(HelpCenter record) throws HelpCenterException;
|
|
/**
|
* 更新当前对象所有数据
|
* @param record
|
* @return
|
* @throws HelpCenterException
|
*/
|
public int updateByPrimaryKey(HelpCenter record) throws HelpCenterException;
|
|
/**
|
* 选择性更新内容——不为空则更新该字段
|
* @param record
|
* @return
|
* @throws HelpCenterException
|
*/
|
public int updateByPrimaryKeySelective(HelpCenter record) throws HelpCenterException;
|
|
|
|
/**
|
* 根据id查找当前对象
|
* @param id
|
* @return
|
* @throws HelpCenterException
|
*/
|
public HelpCenter selectByPrimaryKey(Long id) throws HelpCenterException;
|
|
@Cacheable(value = "helpCenterCache")
|
public HelpCenter selectByPrimaryKeyCache(Long id) throws HelpCenterException;
|
|
|
/**
|
* 查询
|
* @param pageIndex 页码
|
* @param pageSize 页面条数
|
* @param key 搜索条件
|
* @param startTime 起始时间
|
* @param endTime 结束时间
|
* @return
|
*/
|
public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid,
|
Integer orderMode) throws HelpCenterException;
|
|
public long countQuery(String key, Long cid) throws HelpCenterException;
|
|
|
/**
|
* 保存信息
|
* @param helpCenter
|
* @param content
|
* @param html
|
* @return
|
* @throws Exception
|
*/
|
public String save(HelpCenter helpCenter, String content, String html) throws HelpCenterException, Exception;
|
|
|
/**
|
* 批量删除
|
* @param idList
|
* @return
|
* @throws HelpCenterException
|
*/
|
public int deleteBatchById(List<String> idList) throws HelpCenterException;
|
|
/**
|
*
|
* @param id
|
* @return
|
* @throws HelpCenterException
|
*/
|
public HelpInfo getHelpInfo(Long id) throws HelpCenterException;
|
|
/**
|
* 查询 只返回id、title
|
* @param pageIndex
|
* @param pageSize
|
* @param key
|
* @return
|
* @throws HelpCenterException
|
*/
|
public List<HelpCenter> queryIdAndTitle(int pageIndex, int pageSize, String key, Long cid) throws HelpCenterException;
|
|
|
/**
|
* 删除帮助详情信息
|
* @param idList
|
* @throws HelpCenterException
|
*/
|
public void deleteInfoBatchById(List<String> idList) throws HelpCenterException;
|
|
|
public HelpInfo getHelpInfoCache(Long id) throws HelpCenterException;
|
|
/**
|
* 版本设置
|
* @param id
|
* @param versions
|
* @throws HelpCenterException
|
*/
|
public void setVersions(Long id, List<Long> versions) throws HelpCenterException;
|
|
|
}
|