|
@@ -15,11 +15,7 @@ import com.fdkankan.agent.service.ICameraService;
|
|
|
import com.fdkankan.agent.service.ISceneProService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -83,5 +79,16 @@ public class SceneController extends BaseController {
|
|
|
sceneProService.copy(param.getNum());
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 场景复制
|
|
|
+ * num 场景码
|
|
|
+ */
|
|
|
+ @GetMapping("/rebuildScene")
|
|
|
+ public JSONObject rebuildScene(@RequestParam(required = false) String num) throws Exception {
|
|
|
+ if(StringUtils.isEmpty(num)){
|
|
|
+ throw new BusinessException(ResultCode.PARAM_MISS);
|
|
|
+ }
|
|
|
+ return fdMangeService.rebuildScene(num);
|
|
|
+ }
|
|
|
}
|
|
|
|