| package com.ruoyi.device.noguidezone.controller; | 
|   | 
| import java.util.List; | 
| import javax.servlet.http.HttpServletResponse; | 
|   | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiOperation; | 
| import org.springframework.security.access.prepost.PreAuthorize; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.web.bind.annotation.GetMapping; | 
| import org.springframework.web.bind.annotation.PostMapping; | 
| import org.springframework.web.bind.annotation.PutMapping; | 
| import org.springframework.web.bind.annotation.DeleteMapping; | 
| import org.springframework.web.bind.annotation.PathVariable; | 
| import org.springframework.web.bind.annotation.RequestBody; | 
| import org.springframework.web.bind.annotation.RequestMapping; | 
| import org.springframework.web.bind.annotation.RestController; | 
| import com.ruoyi.common.annotation.Log; | 
| import com.ruoyi.common.core.controller.BaseController; | 
| import com.ruoyi.common.core.domain.AjaxResult; | 
| import com.ruoyi.common.enums.BusinessType; | 
| import com.ruoyi.device.noguidezone.domain.ArdCameraNoGuideZone; | 
| import com.ruoyi.device.noguidezone.service.IArdCameraNoGuideZoneService; | 
| import com.ruoyi.common.utils.poi.ExcelUtil; | 
| import com.ruoyi.common.core.page.TableDataInfo; | 
|   | 
| /** | 
|  * 禁引可视域Controller | 
|  *  | 
|  * @author ard | 
|  * @date 2023-10-28 | 
|  */ | 
| @Api(tags = "禁引可视域管理接口") | 
| @RestController | 
| @RequestMapping("/device/noguidezone") | 
| public class ArdCameraNoGuideZoneController extends BaseController | 
| { | 
|     @Autowired | 
|     private IArdCameraNoGuideZoneService ardCameraNoGuideZoneService; | 
|   | 
|     /** | 
|      * 查询禁引可视域列表 | 
|      */ | 
|     @ApiOperation("查询禁引可视域列表") | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:list')") | 
|     @GetMapping("/list") | 
|     public TableDataInfo list(ArdCameraNoGuideZone ardCameraNoGuideZone) | 
|     { | 
|         startPage(); | 
|         List<ArdCameraNoGuideZone> list = ardCameraNoGuideZoneService.selectArdCameraNoGuideZoneList(ardCameraNoGuideZone); | 
|         return getDataTable(list); | 
|     } | 
|   | 
|     /** | 
|      * 导出禁引可视域列表 | 
|      */ | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:export')") | 
|     @Log(title = "禁引可视域", businessType = BusinessType.EXPORT) | 
|     @PostMapping("/export") | 
|     public void export(HttpServletResponse response, ArdCameraNoGuideZone ardCameraNoGuideZone) | 
|     { | 
|         List<ArdCameraNoGuideZone> list = ardCameraNoGuideZoneService.selectArdCameraNoGuideZoneList(ardCameraNoGuideZone); | 
|         ExcelUtil<ArdCameraNoGuideZone> util = new ExcelUtil<ArdCameraNoGuideZone>(ArdCameraNoGuideZone.class); | 
|         util.exportExcel(response, list, "禁引可视域数据"); | 
|     } | 
|   | 
|     /** | 
|      * 获取禁引可视域详细信息 | 
|      */ | 
|     @ApiOperation("获取禁引可视域详细信息") | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:query')") | 
|     @GetMapping(value = "/{id}") | 
|     public AjaxResult getInfo(@PathVariable("id") String id) | 
|     { | 
|         return success(ardCameraNoGuideZoneService.selectArdCameraNoGuideZoneById(id)); | 
|     } | 
|   | 
|     /** | 
|      * 新增禁引可视域 | 
|      */ | 
|     @ApiOperation("新增禁引可视域") | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:add')") | 
|     @Log(title = "禁引可视域", businessType = BusinessType.INSERT) | 
|     @PostMapping | 
|     public AjaxResult add(@RequestBody ArdCameraNoGuideZone ardCameraNoGuideZone) | 
|     { | 
|         return toAjax(ardCameraNoGuideZoneService.insertArdCameraNoGuideZone(ardCameraNoGuideZone)); | 
|     } | 
|   | 
|     /** | 
|      * 修改禁引可视域 | 
|      */ | 
|     @ApiOperation("修改禁引可视域") | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:edit')") | 
|     @Log(title = "禁引可视域", businessType = BusinessType.UPDATE) | 
|     @PutMapping | 
|     public AjaxResult edit(@RequestBody ArdCameraNoGuideZone ardCameraNoGuideZone) | 
|     { | 
|         return toAjax(ardCameraNoGuideZoneService.updateArdCameraNoGuideZone(ardCameraNoGuideZone)); | 
|     } | 
|   | 
|     /** | 
|      * 删除禁引可视域 | 
|      */ | 
|     @ApiOperation("删除禁引可视域") | 
|     @PreAuthorize("@ss.hasPermi('device:noguidezone:remove')") | 
|     @Log(title = "禁引可视域", businessType = BusinessType.DELETE) | 
|     @DeleteMapping("/{ids}") | 
|     public AjaxResult remove(@PathVariable String[] ids) | 
|     { | 
|         return toAjax(ardCameraNoGuideZoneService.deleteArdCameraNoGuideZoneByIds(ids)); | 
|     } | 
| } |