btgxq-partybuilding/src/main/java/com/cm/partybuilding/service/advancedmodel/IAdvancedModelService.java
2020-10-22 14:27:27 +08:00

156 lines
3.9 KiB
Java

package com.cm.partybuilding.service.advancedmodel;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.partybuilding.pojo.dtos.advancedmodel.AdvancedModelDTO;
import com.cm.partybuilding.pojo.vos.advancedmodel.AdvancedModelVO;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IAdvancedModelService
* @Description: 先进典型
* @Author: WenG
* @Date: 2020-10-19 11:24
* @Version: 1.0
**/
public interface IAdvancedModelService {
/**
* 新增先进典型
*
* @param advancedModelVO
* @return
* @throws Exception
*/
SuccessResult saveAdvancedModel(AdvancedModelVO advancedModelVO) throws Exception;
/**
* 新增先进典型(APP)
*
* @param token
* @param advancedModelVO
* @return
* @throws Exception
*/
SuccessResult saveAdvancedModelByToken(String token, AdvancedModelVO advancedModelVO) throws Exception;
/**
* 新增先进典型
*
* @param advancedModelVO
* @return advancedModelId
* @throws Exception
*/
String saveAdvancedModelReturnId(AdvancedModelVO advancedModelVO) throws Exception;
/**
* 新增先进典型(APP)
*
* @param token
* @param advancedModelVO
* @return advancedModelId
* @throws Exception
*/
String saveAdvancedModelByTokenReturnId(String token, AdvancedModelVO advancedModelVO) throws Exception;
/**
* 删除先进典型
*
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeAdvancedModel(String ids) throws RemoveException;
/**
* 删除先进典型(物理删除)
*
* @param ids
* @throws RemoveException
*/
void deleteAdvancedModel(String ids) throws RemoveException;
/**
* 删除先进典型(APP)
*
* @param token
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeAdvancedModelByToken(String token, String ids) throws RemoveException;
/**
* 修改先进典型
*
* @param advancedModelId
* @param advancedModelVO
* @return
* @throws Exception
*/
SuccessResult updateAdvancedModel(String advancedModelId, AdvancedModelVO advancedModelVO) throws Exception;
/**
* 修改先进典型(APP)
*
* @param token
* @param advancedModelId
* @param advancedModelVO
* @return
* @throws Exception
*/
SuccessResult updateAdvancedModelByToken(String token, String advancedModelId, AdvancedModelVO advancedModelVO) throws Exception;
/**
* 先进典型详情(通过ID)
*
* @param advancedModelId
* @return
* @throws SearchException
*/
AdvancedModelDTO getAdvancedModelById(String advancedModelId) throws SearchException;
/**
* 先进典型列表
*
* @param params
* @return
* @throws SearchException
*/
List<AdvancedModelDTO> listAdvancedModel(Map<String, Object> params) throws SearchException;
/**
* 先进典型分页列表
*
* @param page
* @return
* @throws SearchException
*/
SuccessResultList<List<AdvancedModelDTO>> listPageAdvancedModel(ListPage page) throws SearchException;
/**
* 先进典型统计
*
* @param params
* @return
* @throws SearchException
*/
Integer countNumberAdvancedModel(Map<String, Object> params) throws SearchException;
/**
* 先进典型统计
*
* @param params
* @return
* @throws SearchException
*/
SuccessResultData<Integer> countAdvancedModel(Map<String, Object> params) throws SearchException;
}