|
@@ -1,6 +1,7 @@
|
|
package com.fdkankan.manage.controller;
|
|
package com.fdkankan.manage.controller;
|
|
|
|
|
|
|
|
|
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
@@ -8,6 +9,9 @@ import com.fdkankan.manage.common.ResultData;
|
|
import com.fdkankan.manage.entity.ScenePlus;
|
|
import com.fdkankan.manage.entity.ScenePlus;
|
|
import com.fdkankan.manage.entity.ScenePro;
|
|
import com.fdkankan.manage.entity.ScenePro;
|
|
import com.fdkankan.manage.httpClient.client.FdKKClient;
|
|
import com.fdkankan.manage.httpClient.client.FdKKClient;
|
|
|
|
+import com.fdkankan.manage.httpClient.client.LaserClient;
|
|
|
|
+import com.fdkankan.manage.httpClient.param.LaserSceneParam;
|
|
|
|
+import com.fdkankan.manage.httpClient.vo.FdkkResponse;
|
|
import com.fdkankan.manage.service.IDownService;
|
|
import com.fdkankan.manage.service.IDownService;
|
|
import com.fdkankan.manage.service.IScenePlusService;
|
|
import com.fdkankan.manage.service.IScenePlusService;
|
|
import com.fdkankan.manage.service.ISceneProService;
|
|
import com.fdkankan.manage.service.ISceneProService;
|
|
@@ -37,6 +41,8 @@ public class SceneController {
|
|
IDownService downService;
|
|
IDownService downService;
|
|
@Autowired
|
|
@Autowired
|
|
FdKKClient fdKKClient;
|
|
FdKKClient fdKKClient;
|
|
|
|
+ @Autowired
|
|
|
|
+ LaserClient laserClient;
|
|
|
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
public ResultData list(@RequestBody SceneParam param){
|
|
public ResultData list(@RequestBody SceneParam param){
|
|
@@ -139,5 +145,24 @@ public class SceneController {
|
|
|
|
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("/sceneDetail")
|
|
|
|
+ public ResultData sceneDetail(@RequestBody LaserSceneParam param){
|
|
|
|
+ FdkkResponse fdkkResponse = laserClient.sceneDetail(param, StpUtil.getTokenValue());
|
|
|
|
+ if(fdkkResponse.getCode() != 200){
|
|
|
|
+ throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|
|
|
|
+ }
|
|
|
|
+ return ResultData.ok(fdkkResponse.getData());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/buildSceneObj")
|
|
|
|
+ public ResultData buildSceneObj(@RequestBody LaserSceneParam param){
|
|
|
|
+
|
|
|
|
+ FdkkResponse fdkkResponse = laserClient.buildSceneObj(param, StpUtil.getTokenValue());
|
|
|
|
+ if(fdkkResponse.getCode() != 200){
|
|
|
|
+ throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|
|
|
|
+ }
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|