huanghongfa
2021-08-21 2e64c232ab6b51b2cecf1ee96e1e9b709234f326
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActService.java
New file
@@ -0,0 +1,83 @@
package com.panzhihua.service_community.service;
import com.panzhihua.common.model.dtos.community.PageComActDTO;
import com.panzhihua.common.model.dtos.community.switchs.SearchCommunityDTO;
import com.panzhihua.common.model.dtos.user.PageFeedBackDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.ComActVO;
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 社区
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-15 10:13
 **/
public interface ComActService {
    /**
     * 新增社区
     * @param comActVO 社区信息
     * @return 新增结果
     */
    R addCommunity(ComActVO comActVO);
    /**
     * 编辑社区
     * @param comActVO 编辑内容
     * @return 编辑结果
     */
    R putCommunity(ComActVO comActVO);
    /**
     * 查询社区
     * @param comActVO 登录人的经纬度、或者指定区域的社区
     * @return 社区集合
     */
    R listCommunity(ComActVO comActVO);
    /**
     * 社区详情
     * @param communityId 社区id
     * @return 社区详情
     */
    R detailCommunity(Long communityId);
    /**
     * 分页查询社区
     * @param pageComActDTO 查询参数
     * @return 分页集合
     */
    R pageCommunity(PageComActDTO pageComActDTO);
    /**
     * 查询平台所有的社区
     * @return 社区集合 按照创建顺序倒序排列
     */
    R listCommunityAll();
    /**
     * 删除社区
     * @param communityId 社区id
     * @return 删除结果
     */
    R delectCommunity(Long communityId);
    /**
     * 综治后台-查询社区列表
     * @return  社区列表
     */
    R getCommunityLists();
    /**
     * 查询社区所有列表
     * @return  社区列表
     */
    R getCommunityAllList();
    /**
     * 根据名字查询所有社区列表
     * @param name  社区名字
     * @return  社区列表
     */
    R communitySwitchSearchList(String name);
    /**
     * 根据经纬度以及距离搜索附近社区列表
     * @param communityDTO  请求参数
     * @return  社区列表
     */
    R communitySwitchSearchDistanceList(SearchCommunityDTO communityDTO);
}