8.3
luodangjia
2024-08-03 67157345fe1878681e39ec186ef37ff6b3b5c1fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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>
 * 省市区三级联动 前端控制器
 * </p>
 *
 * @author hjl
 * @since 2024-06-12
 */
@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));
    }
 
}