package com.yeshi.fanli.service.inter.customerservice;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion;
|
import com.yeshi.fanli.exception.CustomerServiceCommonQuestionException;
|
|
public interface CustomerServiceCommonQuestionService {
|
/**
|
* 通过关键字检索
|
*
|
* @param key
|
* @return
|
*/
|
public CustomerServiceCommonQuestion searchByKey(String key);
|
|
/**
|
* 通过关键字检索(带有缓存)
|
*
|
* @param key
|
* @return
|
*/
|
public CustomerServiceCommonQuestion searchByKeyCache(String key);
|
|
/**
|
* 添加问题
|
*
|
* @param question
|
*/
|
public void addCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question)
|
throws CustomerServiceCommonQuestionException;
|
|
/**
|
* 更新某个常见问题(主键更新)
|
*
|
* @param question
|
* @throws CustomerServiceCommonQuestionException
|
*/
|
public void updateCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question)
|
throws CustomerServiceCommonQuestionException;
|
|
/**
|
* 删除问题
|
*
|
* @param id-主键ID
|
*/
|
public void deleteCustomerServiceCommonQuestion(Long id);
|
|
/**
|
* 查询所有的KEY值(按权重大小排序)
|
*
|
* @return
|
*/
|
public List<String> listKeysCache();
|
|
/**
|
* 获取常见问题列表(按更新时间排序-倒序)
|
*
|
* @param page
|
* @param pageSize
|
* @return
|
*/
|
public List<CustomerServiceCommonQuestion> listCustomerServiceCommonQuestion(int page, int pageSize);
|
|
/**
|
* 查询总共有多少条信息
|
*
|
* @return
|
*/
|
public Long countCustomerServiceCommonQuestion();
|
|
}
|