| | |
| | | package com.ruoyi.system.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.Region; |
| | | import com.ruoyi.system.service.RegionService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | private RegionService regionService; |
| | | |
| | | @GetMapping("/tree") |
| | | @Tag(name = "获取区域树") |
| | | public List<Region> getRegionTree() { |
| | | return regionService.getRegionTree(); |
| | | @Operation(summary = "获取区域树") |
| | | public R<List<Region>> getRegionTree() { |
| | | return R.ok(regionService.getRegionTree()); |
| | | } |
| | | } |