|
@@ -1,10 +1,13 @@
|
|
|
package com.fdkankan.scene.controller;
|
|
|
|
|
|
+import com.dtflys.forest.annotation.Post;
|
|
|
import com.fdkankan.common.controller.BaseController;
|
|
|
import com.fdkankan.common.response.ResultData;
|
|
|
import com.fdkankan.scene.service.ISceneEditInfoService;
|
|
|
+import com.fdkankan.scene.service.IScenePlusService;
|
|
|
import com.fdkankan.scene.service.ISceneUpgradeToV4Service;
|
|
|
import com.fdkankan.scene.vo.UpgradeToV4ParamVO;
|
|
|
+import java.util.List;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -30,6 +33,8 @@ public class V3Controller extends BaseController {
|
|
|
private ISceneUpgradeToV4Service sceneUpgradeToV4Service;
|
|
|
@Autowired
|
|
|
private ISceneEditInfoService sceneEditInfoService;
|
|
|
+ @Autowired
|
|
|
+ private IScenePlusService scenePlusService;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -75,5 +80,40 @@ public class V3Controller extends BaseController {
|
|
|
return sceneUpgradeToV4Service.getSceneViewInfo(num);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * <p>
|
|
|
+ v3相机解绑和绑定,需要同步v4场景的userid
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/6/23
|
|
|
+ * @param cameraIdList
|
|
|
+ * @param userId
|
|
|
+ * @return com.fdkankan.common.response.ResultData
|
|
|
+ **/
|
|
|
+ @PostMapping(value = "/updateScenePlusUserIdByCameraId")
|
|
|
+ public ResultData updateScenePlusUserIdByCameraId(
|
|
|
+ @RequestParam(value = "cameraIdList") List<Long> cameraIdList, Long userId){
|
|
|
+ return scenePlusService.updateScenePlusUserIdByCameraId(cameraIdList, userId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>
|
|
|
+ 场景迁移,修改相机id和用户id
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/6/23
|
|
|
+ * @param num
|
|
|
+ * @param cameraId
|
|
|
+ * @param userId
|
|
|
+ * @return com.fdkankan.common.response.ResultData
|
|
|
+ **/
|
|
|
+ @PostMapping(value = "/moveScene")
|
|
|
+ public ResultData moveScene(
|
|
|
+ @RequestParam(value = "numList") List<String> numList,
|
|
|
+ @RequestParam(value = "cameraId") Long cameraId,
|
|
|
+ Long userId){
|
|
|
+ return scenePlusService.moveScene(numList, cameraId, userId);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|