无关风月
17 小时以前 b5ead35c1d955f2a0e2e10da79254860d0ba95e9
ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/controller/RegionController.java
@@ -1,9 +1,15 @@
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>
@@ -15,6 +21,19 @@
 */
@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));
    }
}