| | |
| | | package com.ruoyi.user.controller; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.user.service.RegionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/region") |
| | | @Api(value = "用户端-首页", tags = {"用户端-首页"}) |
| | | public class RegionController { |
| | | |
| | | @Resource |
| | | private RegionService regionService; |
| | | |
| | | /** |
| | | * 选择城市市区列表 |
| | | */ |
| | | @GetMapping("/urbanArea") |
| | | @ApiOperation(value = "选择城市市区列表", tags = {"用户端-首页"}) |
| | | public R<Object> urbanArea(String keyword) { |
| | | return R.ok(regionService.urbanArea(keyword)); |
| | | } |
| | | |
| | | } |