liusuyi
2025-10-16 f3c21be2c841b45d7d435b1be5610e6a5de56a1a
ard-admin/src/main/java/com/ard/web/controller/device/ArdCameraController.java
@@ -29,7 +29,7 @@
 */
@Slf4j
@RestController
@RequestMapping("/device/cameras")
@RequestMapping("/device/camera")
@Api(tags = "相机管理接口")
public class ArdCameraController extends BaseController {
@@ -39,7 +39,7 @@
    /**
     * 查询相机设备列表
     */
    @PreAuthorize("@ss.hasPermi('device:cameras:list')")
    @PreAuthorize("@ss.hasPermi('device:camera:list')")
    @GetMapping("/list")
    @ApiOperation("查询相机设备列表")
    public TableDataInfo list(ArdCamera ardCamera) {
@@ -53,7 +53,7 @@
     * 导出相机设备列表
     */
    @ApiOperation("导出相机设备列表")
    @PreAuthorize("@ss.hasPermi('device:cameras:export')")
    @PreAuthorize("@ss.hasPermi('device:camera:export')")
    @Log(title = "相机设备", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ArdCamera ardCamera) {
@@ -66,7 +66,7 @@
     * 获取相机设备详细信息
     */
    @ApiOperation("获取相机设备详细信息")
    @PreAuthorize("@ss.hasPermi('device:cameras:query')")
    @PreAuthorize("@ss.hasPermi('device:camera:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id) {
        return success(ardCameraService.selectArdCameraById(id));
@@ -76,7 +76,7 @@
     * 新增相机设备
     */
    @ApiOperation("新增相机设备")
    @PreAuthorize("@ss.hasPermi('device:cameras:add')")
    @PreAuthorize("@ss.hasPermi('device:camera:add')")
    @Log(title = "相机设备", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ArdCamera camera) {
@@ -90,7 +90,7 @@
     * 修改相机设备
     */
    @ApiOperation("修改相机设备")
    @PreAuthorize("@ss.hasPermi('device:cameras:edit')")
    @PreAuthorize("@ss.hasPermi('device:camera:edit')")
    @Log(title = "相机设备", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ArdCamera camera) {
@@ -104,7 +104,7 @@
     * 删除相机设备
     */
    @ApiOperation("删除相机设备")
    @PreAuthorize("@ss.hasPermi('device:cameras:remove')")
    @PreAuthorize("@ss.hasPermi('device:camera:remove')")
    @Log(title = "相机设备", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable String[] ids) {
@@ -113,7 +113,7 @@
    @Log(title = "导入相机设备", businessType = BusinessType.IMPORT)
    @PreAuthorize("@ss.hasPermi('device:cameras:import')")
    @PreAuthorize("@ss.hasPermi('device:camera:import')")
    @PostMapping("/importData")
    @ApiOperation("导入相机设备")
    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {