|
@@ -71,6 +71,16 @@ public class CameraController extends BaseController {
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/unBindCamera")
|
|
|
+ public ResultData unBindCamera(@RequestBody CameraParam param){
|
|
|
+ if(param.getId() == null ){
|
|
|
+ throw new BusinessException(ResultCode.PARAM_MISS);
|
|
|
+ }
|
|
|
+ param.setAgentId(getAgent().getId());
|
|
|
+ agentNewCameraService.unBindCamera(param);
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/giveCameraBatch")
|
|
|
public ResultData giveCameraBatch(
|
|
|
@RequestParam(required = false) Integer subAgentId,
|