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());
|
}
|
}
|