124 lines
2.8 KiB
Java
Executable File
124 lines
2.8 KiB
Java
Executable File
package com.cm.systemcity.service.community;
|
|
|
|
import com.cm.common.exception.RemoveException;
|
|
import com.cm.common.exception.SaveException;
|
|
import com.cm.common.exception.SearchException;
|
|
import com.cm.common.exception.UpdateException;
|
|
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.systemcity.pojo.dtos.community.CommunityDTO;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* @ClassName: ICommunityService
|
|
* @Description: 社区
|
|
* @Author: admin
|
|
* @Date: 2019-07-28 14:56:52
|
|
* @Version: 1.0
|
|
**/
|
|
public interface ICommunityService {
|
|
|
|
/**
|
|
* 新增社区
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SaveException
|
|
*/
|
|
SuccessResult saveCommunity(Map<String, Object> params) throws SaveException, SearchException;
|
|
|
|
/**
|
|
* 删除社区
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws RemoveException
|
|
*/
|
|
SuccessResult removeCommunity(Map<String, Object> params) throws RemoveException;
|
|
|
|
/**
|
|
* 修改社区
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws UpdateException
|
|
*/
|
|
SuccessResult updateCommunity(Map<String, Object> params) throws UpdateException;
|
|
|
|
/**
|
|
* 全部社区列表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<CommunityDTO> listCommunityAll(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 社区详情
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
CommunityDTO getCommunity(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 社区分页列表
|
|
*
|
|
* @param page
|
|
* @return
|
|
*/
|
|
SuccessResultList<List<CommunityDTO>> listPageCommunity(ListPage page) throws SearchException;
|
|
|
|
/**
|
|
* 社区列表,无分页
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<CommunityDTO> listCommunity(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 社区数量
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
SuccessResultData<Integer> countCommunity(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 网格长所在片区列表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<CommunityDTO> listCommunityByCommunityBoss(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 社区列表
|
|
*
|
|
* @param communityBossIds 网格长ID列表
|
|
* @return
|
|
*/
|
|
List<CommunityDTO> listByCommunityBossIds(List<String> communityBossIds);
|
|
|
|
/**
|
|
* 初始化村社区信息到Mongo
|
|
*/
|
|
void initCommunityToMongo();
|
|
|
|
/**
|
|
* 初始化行政区划信息到Mongo
|
|
*/
|
|
void initAreaToMongo();
|
|
}
|