| | |
| | | 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 |
| | |
| | | |
| | | /** |
| | | * 查询社区所有列表 |
| | | * @return 社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/community/all/list") |
| | | public R getCommunityAllList() { |
| | |
| | | |
| | | /** |
| | | * 根据名字查询所有社区列表 |
| | | * @param name 社区名字 |
| | | * @return 社区列表 |
| | | * |
| | | * @param name |
| | | * 社区名字 |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/community/search/list") |
| | | public R communitySwitchSearchList(@RequestParam(value = "name") String name) { |
| | |
| | | |
| | | /** |
| | | * 根据经纬度以及距离搜索附近社区列表 |
| | | * @param communityDTO 请求参数 |
| | | * @return 社区列表 |
| | | * |
| | | * @param communityDTO |
| | | * 请求参数 |
| | | * @return 社区列表 |
| | | */ |
| | | @PostMapping("/community/search/distance/list") |
| | | public R communitySwitchSearchDistanceList(@RequestBody SearchCommunityDTO communityDTO) { |