| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdMapManagement; |
| | | import com.ard.data.service.IArdMapManagementService; |
| | | import com.ard.system.data.domain.ArdMapManagement; |
| | | import com.ard.system.data.service.IArdMapManagementService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | */ |
| | | @Api(tags = "地图管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | @RequestMapping("/data/map") |
| | | public class ArdMapManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | * 查询地图管理列表 |
| | | */ |
| | | @ApiOperation("查询地图管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdMapManagement ardMapManagement) { |
| | | startPage(); |
| | |
| | | * 导出地图管理列表 |
| | | */ |
| | | @ApiOperation("导出地图管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:export')") |
| | | @Log(title = "地图管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdMapManagement ardMapManagement) { |
| | |
| | | * 获取地图管理详细信息 |
| | | */ |
| | | @ApiOperation("获取地图管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardMapManagementService.selectArdMapManagementById(id)); |
| | |
| | | * 新增地图管理 |
| | | */ |
| | | @ApiOperation("新增地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:add')") |
| | | @Log(title = "地图管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdMapManagement ardMapManagement) { |
| | |
| | | * 修改地图管理 |
| | | */ |
| | | @ApiOperation("修改地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:edit')") |
| | | @Log(title = "地图管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdMapManagement ardMapManagement) { |
| | |
| | | * 删除地图管理 |
| | | */ |
| | | @ApiOperation("删除地图管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @PreAuthorize("@ss.hasPermi('system:map:remove')") |
| | | @Log(title = "地图管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |