New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 行政区划表(BcRegion)表控制层 |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * description: 行政区划表相关功能 |
| | | * |
| | | * @author zzj |
| | | * @since 2022-04-20 14:26:14 |
| | | */ |
| | | @Api(tags = {"行政区划"}) |
| | | @RestController |
| | | @RequestMapping("bcRegion") |
| | | public class BcRegionApi extends BaseController { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation("四级联动接口") |
| | | @GetMapping("levelList") |
| | | public R levelList(@RequestParam("level")Integer level,@RequestParam("code")String code){ |
| | | return this.communityService.levelList(level,code); |
| | | } |
| | | } |