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 params) throws SaveException, SearchException; /** * 删除社区 * * @param params * @return * @throws RemoveException */ SuccessResult removeCommunity(Map params) throws RemoveException; /** * 修改社区 * * @param params * @return * @throws UpdateException */ SuccessResult updateCommunity(Map params) throws UpdateException; /** * 全部社区列表 * * @param params * @return * @throws SearchException */ List listCommunityAll(Map params) throws SearchException; /** * 社区详情 * * @param params * @return * @throws SearchException */ CommunityDTO getCommunity(Map params) throws SearchException; /** * 社区分页列表 * * @param page * @return */ SuccessResultList> listPageCommunity(ListPage page) throws SearchException; /** * 社区列表,无分页 * * @param params * @return * @throws SearchException */ List listCommunity(Map params) throws SearchException; /** * 社区数量 * * @param params * @return * @throws SearchException */ SuccessResultData countCommunity(Map params) throws SearchException; /** * 网格长所在片区列表 * * @param params * @return * @throws SearchException */ List listCommunityByCommunityBoss(Map params) throws SearchException; /** * 社区列表 * * @param communityBossIds 网格长ID列表 * @return */ List listByCommunityBossIds(List communityBossIds); /** * 初始化村社区信息到Mongo */ void initCommunityToMongo(); /** * 初始化行政区划信息到Mongo */ void initAreaToMongo(); }