| | |
| | | package com.ard.qs.api; |
| | | |
| | | import com.ard.common.core.domain.R; |
| | | import com.ard.common.core.web.domain.AjaxResult; |
| | | import com.ard.common.log.annotation.Log; |
| | | import com.ard.common.log.enums.BusinessType; |
| | | import com.ard.common.security.annotation.InnerAuth; |
| | | import com.ard.qs.api.domain.QsDevice; |
| | | import com.ard.qs.service.IQsDeviceService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | Boolean result = qsDeviceService.updateDeviceStatusByJtMobileNo(jtMobileNo, deviceStatus); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除视频监控设备 |
| | | */ |
| | | @InnerAuth |
| | | @DeleteMapping("/removeQsDevice/{ids}") |
| | | public R<Boolean> remove(@PathVariable Long[] ids) { |
| | | return qsDeviceService.deleteQsDeviceByIds(ids) > 0 ? R.ok(true) : R.ok(false); |
| | | } |
| | | } |