luofl
2025-03-21 0eb28fecafb15512c82aeae00b40fb1bca65f08c
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/BcRegionController.java
@@ -1,9 +1,19 @@
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>
@@ -13,8 +23,15 @@
 * @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());
    }
}