SceneEditController.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. package com.fdkankan.scene.controller;
  2. import com.fdkankan.common.constant.SceneInfoReqType;
  3. import com.fdkankan.common.util.ESAPIUtil;
  4. import com.fdkankan.scene.annotation.CheckToken;
  5. import com.fdkankan.scene.annotation.InitEditInfo;
  6. import com.fdkankan.scene.bean.ResultData;
  7. import com.fdkankan.scene.service.*;
  8. import com.fdkankan.scene.vo.*;
  9. import lombok.extern.log4j.Log4j2;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.validation.annotation.Validated;
  12. import org.springframework.web.bind.annotation.*;
  13. import org.springframework.web.multipart.MultipartFile;
  14. import java.io.IOException;
  15. /**
  16. * 场景编辑管理
  17. */
  18. @Log4j2
  19. @RestController
  20. @RequestMapping("/service/scene/edit")
  21. public class SceneEditController extends BaseController{
  22. // @Value("${spring.profiles.active}")
  23. // private String env;
  24. //
  25. @Autowired
  26. private ISceneProService sceneProService;
  27. @Autowired
  28. private SceneEditInfoService sceneEditInfoService;
  29. @Autowired
  30. private ISceneUploadService sceneUploadService;
  31. @Autowired
  32. private ISceneEditService sceneEditService;
  33. // @Autowired
  34. // private IDownloadTourVideoService downloadTourVideoService;
  35. // @Autowired
  36. // private ISurveillanceService surveillanceService;
  37. @Autowired
  38. private IBoxModelService boxModelService;
  39. // @Autowired
  40. // private IScenePlusService scenePlusService;
  41. // @Autowired
  42. // private ISceneAsynOperLogService sceneAsynOperLogService;
  43. @Autowired
  44. private SceneEditInfoExtService sceneEditInfoExtService;
  45. @Autowired
  46. private ICutModelService cutModelService;
  47. /**
  48. * <p>
  49. 保存场景编辑数据
  50. * </p>
  51. * @author dengsixing
  52. * @date 2022/1/12
  53. * @param param
  54. * @return com.fdkankan.web.response.ResultData
  55. **/
  56. // @CheckPermit
  57. @PostMapping(value = "/base/save")
  58. public ResultData saveScene(@RequestBody @Validated SceneEditInfoParamVO param){
  59. param.setSubgroup(this.getSubgroup());
  60. param.setUpTimeKey(this.getUpTime());
  61. return ResultData.ok(sceneEditInfoService.saveScene(param));
  62. }
  63. //
  64. // /**
  65. // * <p>
  66. // 发布场景数据
  67. // * </p>
  68. // * @author dengsixing
  69. // * @date 2022/1/12
  70. // * @param param
  71. // * @return com.fdkankan.web.response.ResultData
  72. // **/
  73. // @CheckPermit
  74. // @PostMapping(value = "/publicScene")
  75. // public ResultData publicScene(@RequestBody @Validated SceneEditInfoParamVO param) throws Exception {
  76. // return sceneEditInfoService.publicScene(param);
  77. // }
  78. /**
  79. * <p>
  80. 保存初始页面
  81. * </p>
  82. * @author dengsixing
  83. * @date 2022/1/12
  84. * @param param
  85. * @return com.fdkankan.web.response.ResultData
  86. **/
  87. @PostMapping(value = "/saveInitialPage")
  88. public ResultData saveInitialPage(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
  89. param.setSubgroup(this.getSubgroup());
  90. param.setUpTimeKey(this.getUpTime());
  91. return sceneProService.saveInitialPage(param);
  92. }
  93. /**
  94. * <p>
  95. 新增或修改场景热点
  96. * </p>
  97. * @author dengsixing
  98. * @date 2022/1/12
  99. * @return com.fdkankan.web.response.ResultData
  100. **/
  101. @PostMapping(value = "/tag/save")
  102. public ResultData saveTag(@RequestBody @Validated SaveTagsParamVO param) throws Exception {
  103. param.setSubgroup(this.getSubgroup());
  104. param.setUpTimeKey(this.getUpTime());
  105. return sceneProService.addOrUpdateTag(param);
  106. }
  107. /**
  108. * <p>
  109. 删除热点
  110. * </p>
  111. * @author dengsixing
  112. * @date 2022/2/16
  113. * @return com.fdkankan.web.response.ResultData
  114. **/
  115. @PostMapping(value = "/tag/delete")
  116. public ResultData deleteTag(@RequestBody @Validated DeleteHotParamVO param) throws Exception {
  117. param.setSubgroup(this.getSubgroup());
  118. param.setUpTimeKey(this.getUpTime());
  119. return sceneProService.deleteTag(param);
  120. }
  121. /**
  122. * <p>
  123. 热点列表
  124. * </p>
  125. * @author dengsixing
  126. * @date 2022/8/1
  127. * @param num
  128. * @return com.fdkankan.web.response.ResultData
  129. **/
  130. @PostMapping(value = "/tag/list")
  131. public ResultData listTags(@RequestParam(value = "num") String num) throws Exception {
  132. Integer subgroup = this.getSubgroup();
  133. String upTime = this.getUpTime();
  134. return sceneProService.listTags(num, subgroup, upTime);
  135. }
  136. /**
  137. * <p>
  138. 删除热点
  139. * </p>
  140. * @author dengsixing
  141. * @date 2022/2/16
  142. * @param param
  143. * @return com.fdkankan.web.response.ResultData
  144. **/
  145. @PostMapping(value = "/icons/delete")
  146. public ResultData deleteIcons(@RequestBody @Validated DeleteHotIconParamVO param) throws Exception {
  147. param.setSubgroup(this.getSubgroup());
  148. param.setUpTimeKey(this.getUpTime());
  149. return sceneProService.deleteIcons(param);
  150. }
  151. /**
  152. * <p>
  153. 保存漫游可行
  154. * </p>
  155. * @author dengsixing
  156. * @date 2022/1/12
  157. * @param param
  158. * @return com.fdkankan.web.response.ResultData
  159. **/
  160. @PostMapping(value = "/saveRoam")
  161. public ResultData saveRoam(@RequestBody @Validated BaseDataParamVO param) throws Exception {
  162. param.setSubgroup(this.getSubgroup());
  163. param.setUpTimeKey(this.getUpTime());
  164. return sceneProService.saveRoam(param);
  165. }
  166. /**
  167. * <p>
  168. 保存热点可见性的数据
  169. * </p>
  170. * @author dengsixing
  171. * @date 2022/8/1
  172. * @return com.fdkankan.web.response.ResultData
  173. **/
  174. @PostMapping(value = "/saveTagsVisible")
  175. public ResultData saveTagsVisible(@RequestBody @Validated SaveTagsVisibleParamVO param) throws Exception {
  176. param.setSubgroup(this.getSubgroup());
  177. param.setUpTimeKey(this.getUpTime());
  178. return sceneProService.saveTagsVisible(param);
  179. }
  180. /**
  181. * <p>
  182. 场景关联列表
  183. * </p>
  184. * @author dengsixing
  185. * @date 2022/8/1
  186. * @param num
  187. * @return com.fdkankan.web.response.ResultData
  188. **/
  189. @PostMapping(value = "/linkPan/list")
  190. public ResultData listLinkPan(@RequestParam(value = "num") String num) throws Exception {
  191. Integer subgroup = this.getSubgroup();
  192. String upTime = this.getUpTime();
  193. return sceneEditInfoService.listLinkPan(num, subgroup, upTime);
  194. }
  195. /**
  196. * <p>
  197. 保存户型图
  198. * </p>
  199. * @author dengsixing
  200. * @date 2022/1/20
  201. * @param param
  202. * @return com.fdkankan.web.response.ResultData
  203. **/
  204. @PostMapping(value = "/cad/save")
  205. public ResultData saveCad(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  206. param.setSubgroup(this.getSubgroup());
  207. param.setUpTimeKey(this.getUpTime());
  208. return sceneEditInfoService.saveCad(param);
  209. }
  210. /**
  211. * <p>
  212. 重置户型图
  213. * </p>
  214. * @author dengsixing
  215. * @date 2022/2/16
  216. * @param num
  217. * @return
  218. **/
  219. @PostMapping(value = "/cad/reset")
  220. public ResultData resetCad(@RequestParam(value = "num") String num) throws Exception {
  221. Integer subgroup = this.getSubgroup();
  222. String upTime = this.getUpTime();
  223. return sceneEditInfoService.resetCad(num, subgroup, upTime);
  224. }
  225. /**
  226. * <p>
  227. 楼层户型重命名
  228. * </p>
  229. * @author dengsixing
  230. * @date 2022/2/16
  231. * @return
  232. **/
  233. @PostMapping(value = "/cad/rename")
  234. public ResultData renameCad(@RequestBody @Validated RenameCadParamVO param) throws IOException {
  235. param.setSubgroup(this.getSubgroup());
  236. param.setUpTimeKey(this.getUpTime());
  237. return sceneEditInfoService.renameCad(param);
  238. }
  239. /**
  240. * <p>
  241. 获取场景详情
  242. * </p>
  243. * @author dengsixing
  244. * @date 2022/8/1
  245. * @param param
  246. * @return com.fdkankan.scene.vo.SceneInfoVO
  247. **/
  248. @CheckToken
  249. @InitEditInfo
  250. @GetMapping(value = "/getInfo")
  251. public SceneInfoVO getInfo(@Validated SceneInfoParamVO param) throws Exception{
  252. param.setReqType(SceneInfoReqType.EDIT.code());
  253. response.setHeader("Set-Cookie","cookiename=cookievalue; path=/; Domain=domainvaule; Max-age=seconds; HttpOnly");
  254. return sceneEditInfoService.getSceneInfo(param.getNum(), param.getSubgroup(), param.getUpTimeKey(), (byte)2);
  255. }
  256. /**
  257. * <p>
  258. 上传全景图
  259. * </p>
  260. * @author dengsixing
  261. * @date 2022/2/16
  262. * @param num
  263. * @param file
  264. * @return java.util.List<java.lang.String>
  265. **/
  266. // @PostMapping(value = "/uploadPanorama")
  267. // public ResultData uploadPanorama(@RequestParam(value = "num") String num,
  268. // @RequestParam("file") MultipartFile file) throws Exception {
  269. // return sceneEditInfoService.uploadPanorama(num, this.getSubgroup(), this.getUpTime(), file);
  270. // }
  271. /**
  272. * <p>
  273. 下载全景图
  274. * </p>
  275. * @author dengsixing
  276. * @date 2022/2/16
  277. * @return java.util.List<java.lang.String>
  278. **/
  279. // @PostMapping(value = "/downloadPanorama")
  280. // public ResultData downloadPanorama(@RequestBody @Validated FileParamVO param) throws Exception {
  281. // param.setSubgroup(this.getSubgroup());
  282. // param.setUpTimeKey(this.getUpTime());
  283. // return sceneEditInfoService.downloadPanorama(param);
  284. // }
  285. // /**
  286. // * <p>
  287. // 下载模型
  288. // * </p>
  289. // * @author dengsixing
  290. // * @param num
  291. // * @return com.fdkankan.web.response.ResultData
  292. // **/
  293. // @PostMapping(value = "/downloadModel")
  294. // public ResultData downloadModel(@RequestParam("num") String num) throws Exception {
  295. // return sceneProService.downloadModel(num, this.getSubgroup(), this.getUpTime());
  296. // }
  297. // /**
  298. // * <p>
  299. // 上传模型
  300. // * </p>
  301. // * @author dengsixing
  302. // * @param num
  303. // * @param file
  304. // * @return com.fdkankan.web.response.ResultData
  305. // **/
  306. // @PostMapping(value = "/uploadModel")
  307. // public ResultData uploadModel(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
  308. // return sceneProService.uploadModel(num, this.getSubgroup(), this.getUpTime(), file);
  309. // }
  310. @RequestMapping(value = "/upload/files", method = RequestMethod.POST)
  311. public String uploads(@RequestParam(value = "base64",required = false) String imgStr,
  312. @RequestParam(value = "fileName",required = false) String fileName,
  313. @RequestParam(value = "bizType",required = false) String bizType,
  314. @RequestParam(value = "files",required = false) MultipartFile[] files,
  315. @RequestParam(value = "num",required = false) String num,
  316. @RequestParam(value = "type",required = false,defaultValue = "1") Integer type,
  317. @RequestParam(value = "uploadPath",required = false) String uploadPath) throws Exception {
  318. Integer subgroup = this.getSubgroup();
  319. String upTime = this.getUpTime();
  320. response.setHeader("Set-Cookie","cookiename=cookievalue; path=/; Domain=domainvaule; Max-age=seconds; HttpOnly");
  321. return sceneUploadService.uploads(imgStr,fileName,bizType,files,num,type,uploadPath, subgroup, upTime);
  322. }
  323. /**
  324. * <p>
  325. 删除文件
  326. * </p>
  327. * @author dengsixing
  328. * @date 2022/2/23
  329. * @param paramVO
  330. * @return com.fdkankan.web.response.ResultData
  331. **/
  332. @PostMapping("/delete/file")
  333. public ResultData delete(@RequestBody @Validated DeleteFileParamVO paramVO) throws Exception{
  334. paramVO.setSubgroup(this.getSubgroup());
  335. paramVO.setUpTimeKey(this.getUpTime());
  336. return sceneUploadService.delete(paramVO);
  337. }
  338. /**
  339. * <p>
  340. 获取场景权限
  341. * </p>
  342. * @author dengsixing
  343. * @date 2022/8/1
  344. * @param num
  345. * @return com.fdkankan.scene.vo.SceneAuthVO
  346. **/
  347. @PostMapping(value = "/getAuth")
  348. public SceneAuthVO getAuth(@RequestParam("num") String num) throws Exception{
  349. return sceneEditService.getAuth(num);
  350. }
  351. /**
  352. * <p>
  353. 保存导览
  354. * </p>
  355. * @author dengsixing
  356. * @date 2022/8/1
  357. * @return com.fdkankan.web.response.ResultData
  358. **/
  359. @PostMapping(value = "/tour/save")
  360. public ResultData saveTour(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  361. param.setSubgroup(this.getSubgroup());
  362. param.setUpTimeKey(this.getUpTime());
  363. return sceneEditService.saveTour(param);
  364. }
  365. /**
  366. * <p>
  367. 删除导览
  368. * </p>
  369. * @author dengsixing
  370. * @date 2022/8/1
  371. * @param param
  372. * @return com.fdkankan.web.response.ResultData
  373. **/
  374. @PostMapping(value = "/tour/delete")
  375. public ResultData deleteTour(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  376. param.setSubgroup(this.getSubgroup());
  377. param.setUpTimeKey(this.getUpTime());
  378. return sceneEditService.deleteTour(param);
  379. }
  380. /**
  381. * <p>
  382. 添加马赛克
  383. * </p>
  384. * @author dengsixing
  385. * @date 2022/8/1
  386. * @param param
  387. * @return com.fdkankan.web.response.ResultData
  388. **/
  389. @PostMapping(value = "/mosaics/add")
  390. public ResultData addMosaics(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  391. param.setSubgroup(this.getSubgroup());
  392. param.setUpTimeKey(this.getUpTime());
  393. return sceneEditInfoService.addMosaics(param);
  394. }
  395. /**
  396. * <p>
  397. 删除马赛克
  398. * </p>
  399. * @author dengsixing
  400. * @date 2022/8/1
  401. * @param param
  402. * @return com.fdkankan.web.response.ResultData
  403. **/
  404. @PostMapping(value = "/mosaics/delete")
  405. public ResultData deleteMosaics(@RequestBody @Validated DeleteMosaicParamVO param) throws Exception{
  406. param.setSubgroup(this.getSubgroup());
  407. param.setUpTimeKey(this.getUpTime());
  408. return sceneEditInfoService.deleteMosaics(param);
  409. }
  410. /**
  411. * <p>
  412. 马赛克列表
  413. * </p>
  414. * @author dengsixing
  415. * @date 2022/8/1
  416. * @param param
  417. * @return com.fdkankan.web.response.ResultData
  418. **/
  419. @PostMapping(value = "/mosaics/list")
  420. public ResultData getMosaicList(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  421. param.setSubgroup(this.getSubgroup());
  422. param.setUpTimeKey(this.getUpTime());
  423. return ResultData.ok(sceneEditInfoService.getMosaicList(param.getNum(), param.getSubgroup(), param.getUpTimeKey()));
  424. }
  425. /**
  426. * <p>
  427. 添加水印
  428. * </p>
  429. * @author dengsixing
  430. * @date 2022/8/1
  431. * @param param
  432. * @return com.fdkankan.web.response.ResultData
  433. **/
  434. @PostMapping(value = "/waterMark/add")
  435. public ResultData addWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
  436. param.setSubgroup(this.getSubgroup());
  437. param.setUpTimeKey(this.getUpTime());
  438. return sceneEditInfoService.addWaterMark(param);
  439. }
  440. /**
  441. * <p>
  442. 删除水印
  443. * </p>
  444. * @author dengsixing
  445. * @date 2022/8/1
  446. * @param param
  447. * @return com.fdkankan.web.response.ResultData
  448. **/
  449. @PostMapping(value = "/waterMark/delete")
  450. public ResultData deleteWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
  451. param.setSubgroup(this.getSubgroup());
  452. param.setUpTimeKey(this.getUpTime());
  453. return sceneEditInfoService.deleteWaterMark(param);
  454. }
  455. /**
  456. * 删除水印
  457. * @param param
  458. * @return
  459. * @throws Exception
  460. */
  461. @PostMapping(value = "/filter/save")
  462. public ResultData saveFilter(@RequestBody @Validated SaveFiltersParamVO param) throws Exception{
  463. param.setSubgroup(this.getSubgroup());
  464. param.setUpTimeKey(this.getUpTime());
  465. return sceneEditInfoService.saveFilter(param);
  466. }
  467. /**
  468. * 删除水印
  469. * @param param
  470. * @return
  471. * @throws Exception
  472. */
  473. @PostMapping(value = "/filter/list")
  474. public ResultData listFilter(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  475. param.setSubgroup(this.getSubgroup());
  476. param.setUpTimeKey(this.getUpTime());
  477. return sceneEditInfoService.listFilter(param);
  478. }
  479. /**
  480. * <p>
  481. 上传空间模型
  482. * </p>
  483. * @author dengsixing
  484. * @param num
  485. * @param sid
  486. * @param file
  487. * @return com.fdkankan.common.response.ResultData
  488. **/
  489. // @PostMapping("/model/box/upload")
  490. // public ResultData uploadBoxModel(
  491. // @RequestParam(value = "num") String num,
  492. // @RequestParam(value = "sid") String sid,
  493. // @RequestParam(value = "file") MultipartFile file) throws Exception {
  494. // return boxModelService.uploadBoxModel(num, this.getSubgroup(), this.getUpTime(), sid, file);
  495. // }
  496. /**
  497. * 保存空间模型
  498. **/
  499. // @PostMapping("/model/box/save")
  500. // public ResultData saveBoxModel(@RequestBody @Validated BaseJsonDataParamVO param) throws Exception {
  501. // param.setSubgroup(this.getSubgroup());
  502. // param.setUpTimeKey(this.getUpTime());
  503. // return boxModelService.saveBoxModel(param);
  504. // }
  505. /**
  506. * 删除空间模型
  507. **/
  508. // @PostMapping("/model/box/delete")
  509. // public ResultData delBoxModel(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  510. // param.setSubgroup(this.getSubgroup());
  511. // param.setUpTimeKey(this.getUpTime());
  512. // return boxModelService.deleteBoxModel(param);
  513. // }
  514. /**
  515. * 保存或者修改指示牌
  516. * @return
  517. * @throws Exception
  518. */
  519. @PostMapping("/billboards/save")
  520. public ResultData saveBillboards(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
  521. param.setSubgroup(this.getSubgroup());
  522. param.setUpTimeKey(this.getUpTime());
  523. return sceneEditInfoExtService.saveBillboards(param);
  524. }
  525. /**
  526. * 删除指示牌
  527. * @return
  528. * @throws Exception
  529. */
  530. @PostMapping("/billboards/delete")
  531. public ResultData deleteBillboards(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
  532. param.setSubgroup(this.getSubgroup());
  533. param.setUpTimeKey(this.getUpTime());
  534. return sceneEditInfoExtService.deleteBillboards(param);
  535. }
  536. /**
  537. * 获取指示牌列表
  538. * @return
  539. * @throws Exception
  540. */
  541. @PostMapping("/billboards/list")
  542. public ResultData deleteBillboards(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
  543. param.setSubgroup(this.getSubgroup());
  544. param.setUpTimeKey(this.getUpTime());
  545. return ResultData.ok(sceneEditInfoExtService.listBillboards(param));
  546. }
  547. /**
  548. * 获取指示牌列表
  549. * @param param
  550. * @return
  551. * @throws Exception
  552. */
  553. @PostMapping("/billboards/styles/delete")
  554. public ResultData deleteBillboards(@RequestBody @Validated DeleteStylesParamVO param) throws Exception {
  555. param.setSubgroup(this.getSubgroup());
  556. param.setUpTimeKey(this.getUpTime());
  557. return ResultData.ok(sceneEditInfoExtService.deleteBillboardsStyles(param));
  558. }
  559. /**
  560. * <p>
  561. 保存视频盒子
  562. * </p>
  563. * @author dengsixing
  564. **/
  565. @PostMapping(value = "/video/box/save")
  566. public ResultData saveVideoBox(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
  567. param.setSubgroup(this.getSubgroup());
  568. param.setUpTimeKey(this.getUpTime());
  569. return sceneEditInfoService.saveVideoBox(param);
  570. }
  571. /**
  572. * <p>
  573. 删除视频盒子
  574. * </p>
  575. **/
  576. @PostMapping(value = "/video/box/delete")
  577. public ResultData deleteVideoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  578. param.setSubgroup(this.getSubgroup());
  579. param.setUpTimeKey(this.getUpTime());
  580. return sceneEditInfoService.deleteVideoBox(param);
  581. }
  582. /**
  583. * <p>
  584. 保存空间贴图
  585. * </p>
  586. **/
  587. @PostMapping(value = "/photo/box/save")
  588. public ResultData savePhotoBox(@RequestBody @Validated BaseDataParamVO param) throws Exception {
  589. param.setSubgroup(this.getSubgroup());
  590. param.setUpTimeKey(this.getUpTime());
  591. return sceneEditInfoService.saveBoxPhoto(param);
  592. }
  593. /**
  594. * <p>
  595. 删除空间贴图
  596. * </p>
  597. **/
  598. @PostMapping(value = "/photo/box/delete")
  599. public ResultData deletePhotoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  600. param.setSubgroup(this.getSubgroup());
  601. param.setUpTimeKey(this.getUpTime());
  602. return sceneEditInfoService.deleteBoxPhoto(param);
  603. }
  604. /**
  605. * 保存裁剪模型
  606. */
  607. @PostMapping(value = "/cutModel/save")
  608. public ResultData saveCutModel(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
  609. param.setSubgroup(this.getSubgroup());
  610. param.setUpTimeKey(this.getUpTime());
  611. return cutModelService.saveCutModel(param);
  612. }
  613. /**
  614. * 裁剪模型列表
  615. */
  616. @PostMapping(value = "/cutModel/list")
  617. public ResultData listCutModel(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
  618. param.setSubgroup(this.getSubgroup());
  619. param.setUpTimeKey(this.getUpTime());
  620. return ResultData.ok(cutModelService.listCutModel(param));
  621. }
  622. /**
  623. * 删除裁剪模型
  624. */
  625. @PostMapping(value = "/cutModel/delete")
  626. public ResultData deleteCutModel(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
  627. param.setSubgroup(this.getSubgroup());
  628. param.setUpTimeKey(this.getUpTime());
  629. return cutModelService.deleteCutModel(param);
  630. }
  631. }