| | |
| | | package com.panzhihua.sangeshenbian.controller; |
| | | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.sangeshenbian.model.vo.RegionVO; |
| | | import com.panzhihua.sangeshenbian.service.IBcRegionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import me.chanjar.weixin.common.annotation.Required; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author |
| | | * @since 2025-02-23 |
| | | */ |
| | | @Api(tags = {"行政区划管理相关接口"}) |
| | | @RestController |
| | | @RequestMapping("/bc-region") |
| | | @RequiredArgsConstructor |
| | | public class BcRegionController { |
| | | |
| | | private final IBcRegionService bcRegionService; |
| | | @GetMapping("/regionTree-applet") |
| | | @ApiOperation(value = "获取区县-街道-社区树") |
| | | public R<List<RegionVO>> regionTree() { |
| | | return R.ok(bcRegionService.regionTree()); |
| | | } |
| | | } |