SceneEditController.java 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. package com.fdkankan.scene.controller;
  2. import com.fdkankan.common.constant.SceneInfoReqType;
  3. import com.fdkankan.scene.annotation.InitEditInfo;
  4. import com.fdkankan.scene.bean.ResultData;
  5. import com.fdkankan.scene.service.*;
  6. import com.fdkankan.scene.vo.*;
  7. import lombok.extern.log4j.Log4j2;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.validation.annotation.Validated;
  10. import org.springframework.web.bind.annotation.*;
  11. import org.springframework.web.multipart.MultipartFile;
  12. import java.io.IOException;
  13. /**
  14. * 场景编辑管理
  15. */
  16. @Log4j2
  17. @RestController
  18. @RequestMapping("/service/scene/edit")
  19. public class SceneEditController{
  20. // @Value("${spring.profiles.active}")
  21. // private String env;
  22. //
  23. @Autowired
  24. private ISceneProService sceneProService;
  25. @Autowired
  26. private SceneEditInfoService sceneEditInfoService;
  27. @Autowired
  28. private ISceneUploadService sceneUploadService;
  29. @Autowired
  30. private ISceneEditService sceneEditService;
  31. // @Autowired
  32. // private IDownloadTourVideoService downloadTourVideoService;
  33. // @Autowired
  34. // private ISurveillanceService surveillanceService;
  35. // @Autowired
  36. // private IBoxModelService boxModelService;
  37. // @Autowired
  38. // private IScenePlusService scenePlusService;
  39. // @Autowired
  40. // private ISceneAsynOperLogService sceneAsynOperLogService;
  41. @Autowired
  42. private SceneEditInfoExtService sceneEditInfoExtService;
  43. // @Autowired
  44. // private ICutModelService cutModelService;
  45. /**
  46. * <p>
  47. 保存场景编辑数据
  48. * </p>
  49. * @author dengsixing
  50. * @date 2022/1/12
  51. * @param param
  52. * @return com.fdkankan.web.response.ResultData
  53. **/
  54. // @CheckPermit
  55. @PostMapping(value = "/base/save")
  56. public ResultData saveScene(@RequestBody @Validated SceneEditInfoParamVO param){
  57. return ResultData.ok(sceneEditInfoService.saveScene(param));
  58. }
  59. //
  60. // /**
  61. // * <p>
  62. // 发布场景数据
  63. // * </p>
  64. // * @author dengsixing
  65. // * @date 2022/1/12
  66. // * @param param
  67. // * @return com.fdkankan.web.response.ResultData
  68. // **/
  69. // @CheckPermit
  70. // @PostMapping(value = "/publicScene")
  71. // public ResultData publicScene(@RequestBody @Validated SceneEditInfoParamVO param) throws Exception {
  72. // return sceneEditInfoService.publicScene(param);
  73. // }
  74. /**
  75. * <p>
  76. 保存初始页面
  77. * </p>
  78. * @author dengsixing
  79. * @date 2022/1/12
  80. * @param param
  81. * @return com.fdkankan.web.response.ResultData
  82. **/
  83. @PostMapping(value = "/saveInitialPage")
  84. public ResultData saveInitialPage(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
  85. return sceneProService.saveInitialPage(param);
  86. }
  87. /**
  88. * <p>
  89. 新增或修改场景热点
  90. * </p>
  91. * @author dengsixing
  92. * @date 2022/1/12
  93. * @return com.fdkankan.web.response.ResultData
  94. **/
  95. @PostMapping(value = "/tag/save")
  96. public ResultData saveTag(@RequestBody @Validated SaveTagsParamVO param) throws Exception {
  97. return sceneProService.addOrUpdateTag(param);
  98. }
  99. /**
  100. * <p>
  101. 删除热点
  102. * </p>
  103. * @author dengsixing
  104. * @date 2022/2/16
  105. * @return com.fdkankan.web.response.ResultData
  106. **/
  107. @PostMapping(value = "/tag/delete")
  108. public ResultData deleteTag(@RequestBody @Validated DeleteHotParamVO param) throws Exception {
  109. return sceneProService.deleteTag(param);
  110. }
  111. /**
  112. * <p>
  113. 热点列表
  114. * </p>
  115. * @author dengsixing
  116. * @date 2022/8/1
  117. * @param num
  118. * @return com.fdkankan.web.response.ResultData
  119. **/
  120. @PostMapping(value = "/tag/list")
  121. public ResultData listTags(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
  122. return sceneProService.listTags(num, subgroup);
  123. }
  124. /**
  125. * <p>
  126. 删除热点
  127. * </p>
  128. * @author dengsixing
  129. * @date 2022/2/16
  130. * @param param
  131. * @return com.fdkankan.web.response.ResultData
  132. **/
  133. @PostMapping(value = "/icons/delete")
  134. public ResultData deleteIcons(@RequestBody @Validated DeleteHotIconParamVO param) throws Exception {
  135. return sceneProService.deleteIcons(param);
  136. }
  137. /**
  138. * <p>
  139. 保存漫游可行
  140. * </p>
  141. * @author dengsixing
  142. * @date 2022/1/12
  143. * @param param
  144. * @return com.fdkankan.web.response.ResultData
  145. **/
  146. @PostMapping(value = "/saveRoam")
  147. public ResultData saveRoam(@RequestBody @Validated BaseDataParamVO param) throws Exception {
  148. return sceneProService.saveRoam(param);
  149. }
  150. /**
  151. * <p>
  152. 保存热点可见性的数据
  153. * </p>
  154. * @author dengsixing
  155. * @date 2022/8/1
  156. * @return com.fdkankan.web.response.ResultData
  157. **/
  158. @PostMapping(value = "/saveTagsVisible")
  159. public ResultData saveTagsVisible(@RequestBody @Validated SaveTagsVisibleParamVO param) throws Exception {
  160. return sceneProService.saveTagsVisible(param);
  161. }
  162. //
  163. // /**
  164. // * <p>
  165. // 下载模型
  166. // * </p>
  167. // * @author dengsixing
  168. // * @date 2022/8/1
  169. // * @param num
  170. // * @return com.fdkankan.web.response.ResultData
  171. // **/
  172. // @CheckPermit
  173. // @PostMapping(value = "/downloadModel")
  174. // public ResultData downloadModel(@RequestParam("num") String num) throws Exception {
  175. // return sceneProService.downloadModel(num);
  176. // }
  177. //
  178. // /**
  179. // * <p>
  180. // 上传模型
  181. // * </p>
  182. // * @author dengsixing
  183. // * @date 2022/8/1
  184. // * @param num
  185. // * @param file
  186. // * @return com.fdkankan.web.response.ResultData
  187. // **/
  188. // @CheckPermit
  189. // @PostMapping(value = "/uploadModel")
  190. // public ResultData uploadModel(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
  191. // return sceneProService.uploadModel(num, file);
  192. // }
  193. //
  194. // /**
  195. // * <p>
  196. // 保存关联全景图
  197. // * </p>
  198. // * @author dengsixing
  199. // * @date 2022/8/1
  200. // * @param num
  201. // * @param sid
  202. // * @param fileName
  203. // * @param file
  204. // * @return com.fdkankan.web.response.ResultData
  205. // **/
  206. // @CheckPermit
  207. // @PostMapping(value = "/linkPan/upload")
  208. // public ResultData uploadLinkPan(
  209. // @RequestParam(value = "num") String num,
  210. // @RequestParam(value = "sid") String sid,
  211. // @RequestParam(value = "fileName") String fileName,
  212. // @RequestParam("file") MultipartFile file) throws Exception{
  213. // return sceneEditInfoService.uploadLinkPan(num, sid, fileName, file);
  214. // }
  215. //
  216. // /**
  217. // * <p>
  218. // 保存关联全景图
  219. // * </p>
  220. // * @author dengsixing
  221. // * @date 2022/8/1
  222. // * @param param
  223. // * @return com.fdkankan.web.response.ResultData
  224. // **/
  225. // @CheckPermit
  226. // @PostMapping(value = "/linkPan/save")
  227. // public ResultData saveLinkPan(@RequestBody @Validated SaveLinkPanParamVO param) throws Exception{
  228. // return sceneEditInfoService.saveLinkPan(param);
  229. // }
  230. //
  231. // /**
  232. // * <p>
  233. // 删除场景关联
  234. // * </p>
  235. // * @author dengsixing
  236. // * @date 2022/8/1
  237. // * @param param
  238. // * @return com.fdkankan.web.response.ResultData
  239. // **/
  240. // @CheckPermit
  241. // @PostMapping(value = "/linkPan/delete")
  242. // public ResultData deleteLinkPan(@RequestBody @Validated DeleteLinkPanParamVO param) throws Exception {
  243. // return sceneEditInfoService.deleteLinkPan(param);
  244. // }
  245. //
  246. // /**
  247. // * <p>
  248. // 删除场景关联图标
  249. // * </p>
  250. // * @author dengsixing
  251. // * @date 2022/8/1
  252. // * @param param
  253. // * @return com.fdkankan.web.response.ResultData
  254. // **/
  255. // @CheckPermit
  256. // @PostMapping(value = "/styles/delete")
  257. // public ResultData deleteStyles(@RequestBody @Validated DeleteStylesParamVO param) throws Exception {
  258. // return sceneEditInfoService.deleteStyles(param);
  259. // }
  260. /**
  261. * <p>
  262. 场景关联列表
  263. * </p>
  264. * @author dengsixing
  265. * @date 2022/8/1
  266. * @param num
  267. * @return com.fdkankan.web.response.ResultData
  268. **/
  269. @PostMapping(value = "/linkPan/list")
  270. public ResultData listLinkPan(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
  271. return sceneEditInfoService.listLinkPan(num, subgroup);
  272. }
  273. /**
  274. * <p>
  275. 保存户型图
  276. * </p>
  277. * @author dengsixing
  278. * @date 2022/1/20
  279. * @param param
  280. * @return com.fdkankan.web.response.ResultData
  281. **/
  282. @PostMapping(value = "/cad/save")
  283. public ResultData saveCad(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  284. return sceneEditInfoService.saveCad(param);
  285. }
  286. //
  287. // /**
  288. // * <p>
  289. // 保存户型图
  290. // * </p>
  291. // * @author dengsixing
  292. // * @date 2022/1/20
  293. // * @param param
  294. // * @return com.fdkankan.web.response.ResultData
  295. // **/
  296. // @CheckPermit
  297. // @GetMapping(value = "/cad/dxf/download")
  298. // public ResultData saveCadDxf(@RequestParam String num) throws Exception{
  299. // return sceneEditInfoService.downloadDxf(num);
  300. // }
  301. //
  302. // /**
  303. // * <p>
  304. // 保存户型图
  305. // * </p>
  306. // * @author dengsixing
  307. // * @date 2022/1/20
  308. // * @param param
  309. // * @return com.fdkankan.web.response.ResultData
  310. // **/
  311. // @CheckPermit
  312. // @PostMapping(value = "/cad/dxf/upload")
  313. // public ResultData uploadDxf(@RequestParam MultipartFile file, @RequestParam String num) throws Exception{
  314. // return sceneEditInfoService.uploadDxf(file, num);
  315. // }
  316. /**
  317. * <p>
  318. 重置户型图
  319. * </p>
  320. * @author dengsixing
  321. * @date 2022/2/16
  322. * @param num
  323. * @return
  324. **/
  325. @PostMapping(value = "/cad/reset")
  326. public ResultData resetCad(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
  327. return sceneEditInfoService.resetCad(num, subgroup);
  328. }
  329. /**
  330. * <p>
  331. 楼层户型重命名
  332. * </p>
  333. * @author dengsixing
  334. * @date 2022/2/16
  335. * @return
  336. **/
  337. @PostMapping(value = "/cad/rename")
  338. public ResultData renameCad(@RequestBody @Validated RenameCadParamVO param) throws IOException {
  339. return sceneEditInfoService.renameCad(param);
  340. }
  341. /**
  342. * <p>
  343. 获取场景详情
  344. * </p>
  345. * @author dengsixing
  346. * @date 2022/8/1
  347. * @param param
  348. * @return com.fdkankan.scene.vo.SceneInfoVO
  349. **/
  350. @InitEditInfo
  351. @GetMapping(value = "/getInfo")
  352. public SceneInfoVO getInfo(@Validated SceneInfoParamVO param) throws Exception{
  353. param.setReqType(SceneInfoReqType.EDIT.code());
  354. return sceneEditInfoService.getSceneInfo(param);
  355. }
  356. //
  357. // /**
  358. // * <p>
  359. // 上传全景图
  360. // * </p>
  361. // * @author dengsixing
  362. // * @date 2022/2/16
  363. // * @param num
  364. // * @param file
  365. // * @return java.util.List<java.lang.String>
  366. // **/
  367. // @CheckPermit
  368. // @PostMapping(value = "/uploadPanorama")
  369. // public ResultData uploadPanorama(@RequestParam(value = "num") String num,
  370. // @RequestParam("file") MultipartFile file) throws Exception {
  371. // return sceneEditInfoService.uploadPanorama(num, file);
  372. // }
  373. //
  374. // /**
  375. // * <p>
  376. // 下载全景图
  377. // * </p>
  378. // * @author dengsixing
  379. // * @date 2022/2/16
  380. // * @return java.util.List<java.lang.String>
  381. // **/
  382. // @CheckPermit
  383. // @PostMapping(value = "/downloadPanorama")
  384. // public ResultData downloadPanorama(@RequestBody @Validated FileParamVO param) throws Exception {
  385. // return sceneEditInfoService.downloadPanorama(param);
  386. // }
  387. //
  388. // /**
  389. // * <p>
  390. // 保存视频盒子
  391. // * </p>
  392. // * @author dengsixing
  393. // * @date 2022/2/18
  394. // * @param param
  395. // * @return com.fdkankan.web.response.ResultData
  396. // **/
  397. // @CheckPermit
  398. // @PostMapping(value = "/video/box/save")
  399. // public ResultData saveVideoBox(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
  400. // return sceneEditInfoService.saveVideoBox(param);
  401. // }
  402. //
  403. // /**
  404. // * <p>
  405. // 删除视频盒子
  406. // * </p>
  407. // * @author dengsixing
  408. // * @date 2022/2/18
  409. // * @param param
  410. // * @return com.fdkankan.web.response.ResultData
  411. // **/
  412. // @CheckPermit
  413. // @PostMapping(value = "/video/box/delete")
  414. // public ResultData deleteVideoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  415. // return sceneEditInfoService.deleteVideoBox(param);
  416. // }
  417. //
  418. // /**
  419. // * <p>
  420. // 保存空间贴图
  421. // * </p>
  422. // * @author dengsixing
  423. // * @date 2022/2/18
  424. // * @param param
  425. // * @return com.fdkankan.web.response.ResultData
  426. // **/
  427. // @CheckPermit
  428. // @PostMapping(value = "/photo/box/save")
  429. // public ResultData savePhotoBox(@RequestBody @Validated BaseDataParamVO param) throws Exception {
  430. // return sceneEditInfoService.saveBoxPhoto(param);
  431. // }
  432. //
  433. // /**
  434. // * <p>
  435. // 删除空间贴图
  436. // * </p>
  437. // * @author dengsixing
  438. // * @date 2022/2/18
  439. // * @param param
  440. // * @return com.fdkankan.web.response.ResultData
  441. // **/
  442. // @CheckPermit
  443. // @PostMapping(value = "/photo/box/delete")
  444. // public ResultData deletePhotoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  445. // return sceneEditInfoService.deleteBoxPhoto(param);
  446. // }
  447. //
  448. //
  449. // /**
  450. // * <p>
  451. // 下载视频
  452. // * </p>
  453. // * @author dengsixing
  454. // * @date 2022/2/23
  455. // * @param param
  456. // * @return com.fdkankan.scene.vo.DownloadVO
  457. // **/
  458. // @CheckPermit
  459. // @PostMapping(value = "/downloadBallScreenVideo")
  460. // public DownloadVO downloadBallScreenVideo(@RequestBody @Validated BallScreenVideoParamVO param){
  461. // return sceneEditInfoService.downloadBallScreenVideo(param);
  462. // }
  463. //
  464. // /**
  465. // * <p>
  466. // 上传视频
  467. // * </p>
  468. // * @author dengsixing
  469. // * @date 2022/2/23
  470. // * @param num
  471. // * @param fileName
  472. // * @param file
  473. // * @return com.fdkankan.web.response.ResultData
  474. // **/
  475. // @CheckPermit
  476. // @PostMapping(value = "/uploadBallScreenVideo")
  477. // public ResultData uploadBallScreenVideo(
  478. // @RequestParam("num") String num,
  479. // @RequestParam("fileName") String fileName,
  480. // @RequestParam("file") MultipartFile file) throws Exception {
  481. // return sceneEditInfoService.uploadBallScreenVideo(num, fileName, file);
  482. // }
  483. // @CheckPermit
  484. @RequestMapping(value = "/upload/files", method = RequestMethod.POST)
  485. public String uploads(@RequestParam(value = "base64",required = false) String base64,
  486. @RequestParam(value = "fileName",required = false) String fileName,
  487. @RequestParam(value = "bizType",required = false) String bizType,
  488. @RequestParam(value = "files",required = false) MultipartFile[] files,
  489. @RequestParam(value = "num",required = false) String num,
  490. @RequestParam(value = "type",required = false,defaultValue = "1") Integer type,
  491. @RequestParam(value = "uploadPath",required = false) String uploadPath,
  492. @RequestParam(value = "subgroup",defaultValue = "0") Integer subgroup) throws Exception {
  493. return sceneUploadService.uploads(base64,fileName,bizType,files,num,type,uploadPath, subgroup);
  494. }
  495. // /**
  496. // * <p>
  497. // 用户自定义上传文本内容上传
  498. // * </p>
  499. // * @author dengsixing
  500. // * @date 2022/8/1
  501. // * @param param
  502. // * @return java.lang.String
  503. // **/
  504. // @RequestMapping(value = "/upload/content", method = RequestMethod.POST)
  505. // public String uploadContent(@RequestBody @Validated UploadContentParamVO param) throws Exception {
  506. // return sceneUploadService.uploadContent(param);
  507. // }
  508. //
  509. /**
  510. * <p>
  511. 删除文件
  512. * </p>
  513. * @author dengsixing
  514. * @date 2022/2/23
  515. * @param paramVO
  516. * @return com.fdkankan.web.response.ResultData
  517. **/
  518. @PostMapping("/delete/file")
  519. public ResultData delete(@RequestBody @Validated DeleteFileParamVO paramVO) throws Exception{
  520. return sceneUploadService.delete(paramVO);
  521. }
  522. //
  523. // /**
  524. // * <p>
  525. // 场景同步
  526. // * </p>
  527. // * @author dengsixing
  528. // * @date 2022/8/1
  529. // * @param num
  530. // * @param type
  531. // * @param floorPlanJson
  532. // * @param ajkJson
  533. // * @param cameraJson
  534. // * @param files
  535. // * @return com.fdkankan.web.response.ResultData
  536. // **/
  537. // @CheckPermit
  538. // @PostMapping(value = "/sceneSync")
  539. // public ResultData sceneSync(
  540. // @RequestParam("num") String num,
  541. // @RequestParam(value = "type", defaultValue = "ajk") String type,
  542. // @RequestParam("floorPlanJson") String floorPlanJson,
  543. // @RequestParam("ajkJson") String ajkJson,
  544. // @RequestParam("cameraJson") String cameraJson,
  545. // @RequestParam("files") MultipartFile[] files) throws Exception{
  546. // return sceneEditInfoService.sceneSync(num, type, floorPlanJson, ajkJson, cameraJson, files);
  547. // }
  548. /**
  549. * <p>
  550. 获取场景权限
  551. * </p>
  552. * @author dengsixing
  553. * @date 2022/8/1
  554. * @param num
  555. * @return com.fdkankan.scene.vo.SceneAuthVO
  556. **/
  557. @PostMapping(value = "/getAuth")
  558. public SceneAuthVO getAuth(@RequestParam("num") String num, @RequestParam(value = "subgroup", defaultValue = 0)Integer subgroup) throws Exception{
  559. return sceneEditService.getAuth(num, subgroup);
  560. }
  561. //
  562. // /**
  563. // * <p>
  564. // 上传国际化文件
  565. // * </p>
  566. // * @author dengsixing
  567. // * @date 2022/4/11
  568. // * @param param
  569. // * @return com.fdkankan.web.response.ResultData
  570. // **/
  571. // @PostMapping(value = "/locales")
  572. // public ResultData locales(@RequestBody @Validated LocalesParamVO param) throws Exception {
  573. // if("pro".equals(env)){
  574. // throw new BusinessException(ErrorCode.HAVE_NO_RIGHT);
  575. // }
  576. // return sceneEditService.locales(param);
  577. // }
  578. //
  579. /**
  580. * <p>
  581. 保存导览
  582. * </p>
  583. * @author dengsixing
  584. * @date 2022/8/1
  585. * @return com.fdkankan.web.response.ResultData
  586. **/
  587. @PostMapping(value = "/tour/save")
  588. public ResultData saveTour(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  589. return sceneEditService.saveTour(param);
  590. }
  591. /**
  592. * <p>
  593. 删除导览
  594. * </p>
  595. * @author dengsixing
  596. * @date 2022/8/1
  597. * @param param
  598. * @return com.fdkankan.web.response.ResultData
  599. **/
  600. @PostMapping(value = "/tour/delete")
  601. public ResultData deleteTour(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  602. return sceneEditService.deleteTour(param);
  603. }
  604. // @PostMapping(value = "/tour/video/upload")
  605. // public ResultData uploadTourVideo(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
  606. // return downloadTourVideoService.uploadTourVideo(num, file);
  607. // }
  608. //
  609. // @PostMapping(value = "/tour/video/download")
  610. // public ResultData downloadTourVideo(@RequestParam("num") String num) throws Exception {
  611. // return downloadTourVideoService.downloadTourVideo(num);
  612. // }
  613. /**
  614. * <p>
  615. 添加马赛克
  616. * </p>
  617. * @author dengsixing
  618. * @date 2022/8/1
  619. * @param param
  620. * @return com.fdkankan.web.response.ResultData
  621. **/
  622. @PostMapping(value = "/mosaics/add")
  623. public ResultData addMosaics(@RequestBody @Validated BaseDataParamVO param) throws Exception{
  624. return sceneEditInfoService.addMosaics(param);
  625. }
  626. /**
  627. * <p>
  628. 删除马赛克
  629. * </p>
  630. * @author dengsixing
  631. * @date 2022/8/1
  632. * @param param
  633. * @return com.fdkankan.web.response.ResultData
  634. **/
  635. @PostMapping(value = "/mosaics/delete")
  636. public ResultData deleteMosaics(@RequestBody @Validated DeleteMosaicParamVO param) throws Exception{
  637. return sceneEditInfoService.deleteMosaics(param);
  638. }
  639. /**
  640. * <p>
  641. 马赛克列表
  642. * </p>
  643. * @author dengsixing
  644. * @date 2022/8/1
  645. * @param param
  646. * @return com.fdkankan.web.response.ResultData
  647. **/
  648. @PostMapping(value = "/mosaics/list")
  649. public ResultData getMosaicList(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  650. return ResultData.ok(sceneEditInfoService.getMosaicList(param.getNum()));
  651. }
  652. /**
  653. * <p>
  654. 添加水印
  655. * </p>
  656. * @author dengsixing
  657. * @date 2022/8/1
  658. * @param param
  659. * @return com.fdkankan.web.response.ResultData
  660. **/
  661. @PostMapping(value = "/waterMark/add")
  662. public ResultData addWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
  663. return sceneEditInfoService.addWaterMark(param);
  664. }
  665. /**
  666. * <p>
  667. 删除水印
  668. * </p>
  669. * @author dengsixing
  670. * @date 2022/8/1
  671. * @param param
  672. * @return com.fdkankan.web.response.ResultData
  673. **/
  674. @PostMapping(value = "/waterMark/delete")
  675. public ResultData deleteWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
  676. return sceneEditInfoService.deleteWaterMark(param);
  677. }
  678. /**
  679. * 删除水印
  680. * @param param
  681. * @return
  682. * @throws Exception
  683. */
  684. @PostMapping(value = "/filter/save")
  685. public ResultData saveFilter(@RequestBody @Validated SaveFiltersParamVO param) throws Exception{
  686. return sceneEditInfoService.saveFilter(param);
  687. }
  688. /**
  689. * 删除水印
  690. * @param param
  691. * @return
  692. * @throws Exception
  693. */
  694. @PostMapping(value = "/filter/list")
  695. public ResultData listFilter(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
  696. return sceneEditInfoService.listFilter(param);
  697. }
  698. //
  699. // /**
  700. // * <p>
  701. // 添加监控
  702. // * </p>
  703. // * @author dengsixing
  704. // * @date 2022/9/20
  705. // * @param param
  706. // * @return com.fdkankan.common.response.ResultData
  707. // **/
  708. // @CheckPermit
  709. // @PostMapping("/surveillance/save")
  710. // ResultData saveSurveillance(@RequestBody @Validated SurveillanceParamVO param) throws Exception {
  711. // return surveillanceService.saveSurveillance(param);
  712. // }
  713. //
  714. // @CheckPermit
  715. // @PostMapping("/surveillance/delete")
  716. // public ResultData deleteSurveillance(@RequestBody @Validated BaseSidParamVO param) throws IOException {
  717. // return surveillanceService.deleteSurveillance(param);
  718. // }
  719. //
  720. // @CheckPermit
  721. // @PostMapping("/surveillance/list")
  722. // public ResultData listSurveillance(@RequestBody @Validated BaseSceneParamVO param){
  723. // return ResultData.ok(surveillanceService.listSurveillance(param.getNum()));
  724. // }
  725. //
  726. // /**
  727. // * <p>
  728. // 上传空间模型
  729. // * </p>
  730. // * @author dengsixing
  731. // * @date 2022/10/19
  732. // * @param num
  733. // * @param sid
  734. // * @param file
  735. // * @return com.fdkankan.common.response.ResultData
  736. // **/
  737. // @CheckPermit
  738. // @PostMapping("/model/box/upload")
  739. // public ResultData uploadBoxModel(
  740. // @RequestParam(value = "num") String num,
  741. // @RequestParam(value = "sid") String sid,
  742. // @RequestParam(value = "file") MultipartFile file) throws Exception {
  743. // return boxModelService.uploadBoxModel(num, sid, file);
  744. // }
  745. //
  746. // /**
  747. // * <p>
  748. // 保存空间模型
  749. // * </p>
  750. // * @author dengsixing
  751. // * @date 2022/10/19
  752. // * @param param
  753. // * @return com.fdkankan.common.response.ResultData
  754. // **/
  755. // @CheckPermit
  756. // @PostMapping("/model/box/save")
  757. // public ResultData saveBoxModel(@RequestBody @Validated BaseJsonDataParamVO param) throws Exception {
  758. // return boxModelService.saveBoxModel(param);
  759. // }
  760. //
  761. // /**
  762. // * <p>
  763. // 删除空间模型
  764. // * </p>
  765. // * @author dengsixing
  766. // * @date 2022/10/19
  767. // * @param param
  768. // * @return com.fdkankan.common.response.ResultData
  769. // **/
  770. // @CheckPermit
  771. // @PostMapping("/model/box/delete")
  772. // public ResultData delBoxModel(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
  773. // return boxModelService.deleteBoxModel(param);
  774. // }
  775. //
  776. // /**
  777. // * 上传二维码和分享的logo
  778. // * @return
  779. // */
  780. // @PostMapping(value = "/uploadShareLogo")
  781. // public ResultData uploadShareLogo(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
  782. // return scenePlusService.uploadShareLogo(num, file);
  783. // }
  784. //
  785. // /**
  786. // * 获取编辑器版本信息
  787. // * @return
  788. // */
  789. // @GetMapping("/getServiceUpTip")
  790. // public ResultData getServiceUpTip(){
  791. // return sceneEditService.getServiceUpTip();
  792. // }
  793. /**
  794. * 保存或者修改指示牌
  795. * @return
  796. * @throws Exception
  797. */
  798. @PostMapping("/billboards/save")
  799. public ResultData saveBillboards(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
  800. return sceneEditInfoExtService.saveBillboards(param);
  801. }
  802. /**
  803. * 删除指示牌
  804. * @return
  805. * @throws Exception
  806. */
  807. @PostMapping("/billboards/delete")
  808. public ResultData deleteBillboards(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
  809. return sceneEditInfoExtService.deleteBillboards(param);
  810. }
  811. /**
  812. * 获取指示牌列表
  813. * @return
  814. * @throws Exception
  815. */
  816. @PostMapping("/billboards/list")
  817. public ResultData deleteBillboards(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
  818. return ResultData.ok(sceneEditInfoExtService.listBillboards(param));
  819. }
  820. /**
  821. * 获取指示牌列表
  822. * @param param
  823. * @return
  824. * @throws Exception
  825. */
  826. @PostMapping("/billboards/styles/delete")
  827. public ResultData deleteBillboards(@RequestBody @Validated DeleteStylesParamVO param) throws Exception {
  828. return ResultData.ok(sceneEditInfoExtService.deleteBillboardsStyles(param));
  829. }
  830. //
  831. // @CheckPermit
  832. // @PostMapping(value = "/cutModel/save")
  833. // public ResultData saveCutModel(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
  834. // return cutModelService.saveCutModel(param);
  835. // }
  836. //
  837. // @CheckPermit
  838. // @PostMapping(value = "/cutModel/list")
  839. // public ResultData listCutModel(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
  840. // return ResultData.ok(cutModelService.listCutModel(param));
  841. // }
  842. //
  843. // @CheckPermit
  844. // @PostMapping(value = "/cutModel/delete")
  845. // public ResultData deleteCutModel(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
  846. // return cutModelService.deleteCutModel(param);
  847. // }
  848. }