chenhj
2 天以前 a770364a2323290fdf9e3247b47475a12452f401
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
package com.ruoyi.web.controller.system;
 
import com.ruoyi.basic.service.ProvinceService;
import com.ruoyi.common.core.domain.R;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 地区接口
 * </p>
 */
 
@RestController
@AllArgsConstructor
@RequestMapping("/area")
public class AreaController {
    @Autowired
    private ProvinceService provinceService;
 
    @GetMapping("/options")
    public R getOptions() {
        return R.ok(provinceService.getAreaOptions());
    }
}