huanghongfa
2021-09-02 177249c76aeea0b4bf8d8816d4994e3b445b45ce
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunitySwitchApi.java
@@ -1,13 +1,14 @@
package com.panzhihua.service_community.api;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import com.panzhihua.common.model.dtos.community.switchs.SearchCommunityDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.service.ComActService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@Slf4j
@RestController
@@ -19,6 +20,7 @@
    /**
     * 查询社区所有列表
     *
     * @return  社区列表
     */
    @GetMapping("/community/all/list")
@@ -28,7 +30,9 @@
    /**
     * 根据名字查询所有社区列表
     * @param name  社区名字
     *
     * @param name
     *            社区名字
     * @return  社区列表
     */
    @GetMapping("/community/search/list")
@@ -38,7 +42,9 @@
    /**
     * 根据经纬度以及距离搜索附近社区列表
     * @param communityDTO  请求参数
     *
     * @param communityDTO
     *            请求参数
     * @return  社区列表
     */
    @PostMapping("/community/search/distance/list")