123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884 |
- package com.fdkankan.scene.controller;
- import com.fdkankan.common.constant.SceneInfoReqType;
- import com.fdkankan.scene.annotation.InitEditInfo;
- import com.fdkankan.scene.bean.ResultData;
- import com.fdkankan.scene.service.*;
- import com.fdkankan.scene.vo.*;
- import lombok.extern.log4j.Log4j2;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- import org.springframework.web.multipart.MultipartFile;
- import java.io.IOException;
- /**
- * 场景编辑管理
- */
- @Log4j2
- @RestController
- @RequestMapping("/service/scene/edit")
- public class SceneEditController{
- // @Value("${spring.profiles.active}")
- // private String env;
- //
- @Autowired
- private ISceneProService sceneProService;
- @Autowired
- private SceneEditInfoService sceneEditInfoService;
- @Autowired
- private ISceneUploadService sceneUploadService;
- @Autowired
- private ISceneEditService sceneEditService;
- // @Autowired
- // private IDownloadTourVideoService downloadTourVideoService;
- // @Autowired
- // private ISurveillanceService surveillanceService;
- // @Autowired
- // private IBoxModelService boxModelService;
- // @Autowired
- // private IScenePlusService scenePlusService;
- // @Autowired
- // private ISceneAsynOperLogService sceneAsynOperLogService;
- @Autowired
- private SceneEditInfoExtService sceneEditInfoExtService;
- // @Autowired
- // private ICutModelService cutModelService;
- /**
- * <p>
- 保存场景编辑数据
- * </p>
- * @author dengsixing
- * @date 2022/1/12
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- // @CheckPermit
- @PostMapping(value = "/base/save")
- public ResultData saveScene(@RequestBody @Validated SceneEditInfoParamVO param){
- return ResultData.ok(sceneEditInfoService.saveScene(param));
- }
- //
- // /**
- // * <p>
- // 发布场景数据
- // * </p>
- // * @author dengsixing
- // * @date 2022/1/12
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/publicScene")
- // public ResultData publicScene(@RequestBody @Validated SceneEditInfoParamVO param) throws Exception {
- // return sceneEditInfoService.publicScene(param);
- // }
- /**
- * <p>
- 保存初始页面
- * </p>
- * @author dengsixing
- * @date 2022/1/12
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/saveInitialPage")
- public ResultData saveInitialPage(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
- return sceneProService.saveInitialPage(param);
- }
- /**
- * <p>
- 新增或修改场景热点
- * </p>
- * @author dengsixing
- * @date 2022/1/12
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/tag/save")
- public ResultData saveTag(@RequestBody @Validated SaveTagsParamVO param) throws Exception {
- return sceneProService.addOrUpdateTag(param);
- }
- /**
- * <p>
- 删除热点
- * </p>
- * @author dengsixing
- * @date 2022/2/16
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/tag/delete")
- public ResultData deleteTag(@RequestBody @Validated DeleteHotParamVO param) throws Exception {
- return sceneProService.deleteTag(param);
- }
- /**
- * <p>
- 热点列表
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param num
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/tag/list")
- public ResultData listTags(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
- return sceneProService.listTags(num, subgroup);
- }
- /**
- * <p>
- 删除热点
- * </p>
- * @author dengsixing
- * @date 2022/2/16
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/icons/delete")
- public ResultData deleteIcons(@RequestBody @Validated DeleteHotIconParamVO param) throws Exception {
- return sceneProService.deleteIcons(param);
- }
- /**
- * <p>
- 保存漫游可行
- * </p>
- * @author dengsixing
- * @date 2022/1/12
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/saveRoam")
- public ResultData saveRoam(@RequestBody @Validated BaseDataParamVO param) throws Exception {
- return sceneProService.saveRoam(param);
- }
- /**
- * <p>
- 保存热点可见性的数据
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/saveTagsVisible")
- public ResultData saveTagsVisible(@RequestBody @Validated SaveTagsVisibleParamVO param) throws Exception {
- return sceneProService.saveTagsVisible(param);
- }
- //
- // /**
- // * <p>
- // 下载模型
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param num
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/downloadModel")
- // public ResultData downloadModel(@RequestParam("num") String num) throws Exception {
- // return sceneProService.downloadModel(num);
- // }
- //
- // /**
- // * <p>
- // 上传模型
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param num
- // * @param file
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/uploadModel")
- // public ResultData uploadModel(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
- // return sceneProService.uploadModel(num, file);
- // }
- //
- // /**
- // * <p>
- // 保存关联全景图
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param num
- // * @param sid
- // * @param fileName
- // * @param file
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/linkPan/upload")
- // public ResultData uploadLinkPan(
- // @RequestParam(value = "num") String num,
- // @RequestParam(value = "sid") String sid,
- // @RequestParam(value = "fileName") String fileName,
- // @RequestParam("file") MultipartFile file) throws Exception{
- // return sceneEditInfoService.uploadLinkPan(num, sid, fileName, file);
- // }
- //
- // /**
- // * <p>
- // 保存关联全景图
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/linkPan/save")
- // public ResultData saveLinkPan(@RequestBody @Validated SaveLinkPanParamVO param) throws Exception{
- // return sceneEditInfoService.saveLinkPan(param);
- // }
- //
- // /**
- // * <p>
- // 删除场景关联
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/linkPan/delete")
- // public ResultData deleteLinkPan(@RequestBody @Validated DeleteLinkPanParamVO param) throws Exception {
- // return sceneEditInfoService.deleteLinkPan(param);
- // }
- //
- // /**
- // * <p>
- // 删除场景关联图标
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/styles/delete")
- // public ResultData deleteStyles(@RequestBody @Validated DeleteStylesParamVO param) throws Exception {
- // return sceneEditInfoService.deleteStyles(param);
- // }
- /**
- * <p>
- 场景关联列表
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param num
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/linkPan/list")
- public ResultData listLinkPan(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
- return sceneEditInfoService.listLinkPan(num, subgroup);
- }
- /**
- * <p>
- 保存户型图
- * </p>
- * @author dengsixing
- * @date 2022/1/20
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/cad/save")
- public ResultData saveCad(@RequestBody @Validated BaseDataParamVO param) throws Exception{
- return sceneEditInfoService.saveCad(param);
- }
- //
- // /**
- // * <p>
- // 保存户型图
- // * </p>
- // * @author dengsixing
- // * @date 2022/1/20
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @GetMapping(value = "/cad/dxf/download")
- // public ResultData saveCadDxf(@RequestParam String num) throws Exception{
- // return sceneEditInfoService.downloadDxf(num);
- // }
- //
- // /**
- // * <p>
- // 保存户型图
- // * </p>
- // * @author dengsixing
- // * @date 2022/1/20
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/cad/dxf/upload")
- // public ResultData uploadDxf(@RequestParam MultipartFile file, @RequestParam String num) throws Exception{
- // return sceneEditInfoService.uploadDxf(file, num);
- // }
- /**
- * <p>
- 重置户型图
- * </p>
- * @author dengsixing
- * @date 2022/2/16
- * @param num
- * @return
- **/
- @PostMapping(value = "/cad/reset")
- public ResultData resetCad(@RequestParam(value = "num") String num, @RequestParam(value = "subgroup", defaultValue = "0") Integer subgroup) throws Exception {
- return sceneEditInfoService.resetCad(num, subgroup);
- }
- /**
- * <p>
- 楼层户型重命名
- * </p>
- * @author dengsixing
- * @date 2022/2/16
- * @return
- **/
- @PostMapping(value = "/cad/rename")
- public ResultData renameCad(@RequestBody @Validated RenameCadParamVO param) throws IOException {
- return sceneEditInfoService.renameCad(param);
- }
- /**
- * <p>
- 获取场景详情
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.scene.vo.SceneInfoVO
- **/
- @InitEditInfo
- @GetMapping(value = "/getInfo")
- public SceneInfoVO getInfo(@Validated SceneInfoParamVO param) throws Exception{
- param.setReqType(SceneInfoReqType.EDIT.code());
- return sceneEditInfoService.getSceneInfo(param);
- }
- //
- // /**
- // * <p>
- // 上传全景图
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/16
- // * @param num
- // * @param file
- // * @return java.util.List<java.lang.String>
- // **/
- // @CheckPermit
- // @PostMapping(value = "/uploadPanorama")
- // public ResultData uploadPanorama(@RequestParam(value = "num") String num,
- // @RequestParam("file") MultipartFile file) throws Exception {
- // return sceneEditInfoService.uploadPanorama(num, file);
- // }
- //
- // /**
- // * <p>
- // 下载全景图
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/16
- // * @return java.util.List<java.lang.String>
- // **/
- // @CheckPermit
- // @PostMapping(value = "/downloadPanorama")
- // public ResultData downloadPanorama(@RequestBody @Validated FileParamVO param) throws Exception {
- // return sceneEditInfoService.downloadPanorama(param);
- // }
- //
- // /**
- // * <p>
- // 保存视频盒子
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/18
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/video/box/save")
- // public ResultData saveVideoBox(@RequestBody @Validated FileNameAndDataParamVO param) throws Exception {
- // return sceneEditInfoService.saveVideoBox(param);
- // }
- //
- // /**
- // * <p>
- // 删除视频盒子
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/18
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/video/box/delete")
- // public ResultData deleteVideoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
- // return sceneEditInfoService.deleteVideoBox(param);
- // }
- //
- // /**
- // * <p>
- // 保存空间贴图
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/18
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/photo/box/save")
- // public ResultData savePhotoBox(@RequestBody @Validated BaseDataParamVO param) throws Exception {
- // return sceneEditInfoService.saveBoxPhoto(param);
- // }
- //
- // /**
- // * <p>
- // 删除空间贴图
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/18
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/photo/box/delete")
- // public ResultData deletePhotoBox(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
- // return sceneEditInfoService.deleteBoxPhoto(param);
- // }
- //
- //
- // /**
- // * <p>
- // 下载视频
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/23
- // * @param param
- // * @return com.fdkankan.scene.vo.DownloadVO
- // **/
- // @CheckPermit
- // @PostMapping(value = "/downloadBallScreenVideo")
- // public DownloadVO downloadBallScreenVideo(@RequestBody @Validated BallScreenVideoParamVO param){
- // return sceneEditInfoService.downloadBallScreenVideo(param);
- // }
- //
- // /**
- // * <p>
- // 上传视频
- // * </p>
- // * @author dengsixing
- // * @date 2022/2/23
- // * @param num
- // * @param fileName
- // * @param file
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/uploadBallScreenVideo")
- // public ResultData uploadBallScreenVideo(
- // @RequestParam("num") String num,
- // @RequestParam("fileName") String fileName,
- // @RequestParam("file") MultipartFile file) throws Exception {
- // return sceneEditInfoService.uploadBallScreenVideo(num, fileName, file);
- // }
- // @CheckPermit
- @RequestMapping(value = "/upload/files", method = RequestMethod.POST)
- public String uploads(@RequestParam(value = "base64",required = false) String base64,
- @RequestParam(value = "fileName",required = false) String fileName,
- @RequestParam(value = "bizType",required = false) String bizType,
- @RequestParam(value = "files",required = false) MultipartFile[] files,
- @RequestParam(value = "num",required = false) String num,
- @RequestParam(value = "type",required = false,defaultValue = "1") Integer type,
- @RequestParam(value = "uploadPath",required = false) String uploadPath,
- @RequestParam(value = "subgroup",defaultValue = "0") Integer subgroup) throws Exception {
- return sceneUploadService.uploads(base64,fileName,bizType,files,num,type,uploadPath, subgroup);
- }
- // /**
- // * <p>
- // 用户自定义上传文本内容上传
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param param
- // * @return java.lang.String
- // **/
- // @RequestMapping(value = "/upload/content", method = RequestMethod.POST)
- // public String uploadContent(@RequestBody @Validated UploadContentParamVO param) throws Exception {
- // return sceneUploadService.uploadContent(param);
- // }
- //
- /**
- * <p>
- 删除文件
- * </p>
- * @author dengsixing
- * @date 2022/2/23
- * @param paramVO
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping("/delete/file")
- public ResultData delete(@RequestBody @Validated DeleteFileParamVO paramVO) throws Exception{
- return sceneUploadService.delete(paramVO);
- }
- //
- // /**
- // * <p>
- // 场景同步
- // * </p>
- // * @author dengsixing
- // * @date 2022/8/1
- // * @param num
- // * @param type
- // * @param floorPlanJson
- // * @param ajkJson
- // * @param cameraJson
- // * @param files
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping(value = "/sceneSync")
- // public ResultData sceneSync(
- // @RequestParam("num") String num,
- // @RequestParam(value = "type", defaultValue = "ajk") String type,
- // @RequestParam("floorPlanJson") String floorPlanJson,
- // @RequestParam("ajkJson") String ajkJson,
- // @RequestParam("cameraJson") String cameraJson,
- // @RequestParam("files") MultipartFile[] files) throws Exception{
- // return sceneEditInfoService.sceneSync(num, type, floorPlanJson, ajkJson, cameraJson, files);
- // }
- /**
- * <p>
- 获取场景权限
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param num
- * @return com.fdkankan.scene.vo.SceneAuthVO
- **/
- @PostMapping(value = "/getAuth")
- public SceneAuthVO getAuth(@RequestParam("num") String num, @RequestParam(value = "subgroup", defaultValue = 0)Integer subgroup) throws Exception{
- return sceneEditService.getAuth(num, subgroup);
- }
- //
- // /**
- // * <p>
- // 上传国际化文件
- // * </p>
- // * @author dengsixing
- // * @date 2022/4/11
- // * @param param
- // * @return com.fdkankan.web.response.ResultData
- // **/
- // @PostMapping(value = "/locales")
- // public ResultData locales(@RequestBody @Validated LocalesParamVO param) throws Exception {
- // if("pro".equals(env)){
- // throw new BusinessException(ErrorCode.HAVE_NO_RIGHT);
- // }
- // return sceneEditService.locales(param);
- // }
- //
- /**
- * <p>
- 保存导览
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/tour/save")
- public ResultData saveTour(@RequestBody @Validated BaseDataParamVO param) throws Exception{
- return sceneEditService.saveTour(param);
- }
- /**
- * <p>
- 删除导览
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/tour/delete")
- public ResultData deleteTour(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
- return sceneEditService.deleteTour(param);
- }
- // @PostMapping(value = "/tour/video/upload")
- // public ResultData uploadTourVideo(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
- // return downloadTourVideoService.uploadTourVideo(num, file);
- // }
- //
- // @PostMapping(value = "/tour/video/download")
- // public ResultData downloadTourVideo(@RequestParam("num") String num) throws Exception {
- // return downloadTourVideoService.downloadTourVideo(num);
- // }
- /**
- * <p>
- 添加马赛克
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/mosaics/add")
- public ResultData addMosaics(@RequestBody @Validated BaseDataParamVO param) throws Exception{
- return sceneEditInfoService.addMosaics(param);
- }
- /**
- * <p>
- 删除马赛克
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/mosaics/delete")
- public ResultData deleteMosaics(@RequestBody @Validated DeleteMosaicParamVO param) throws Exception{
- return sceneEditInfoService.deleteMosaics(param);
- }
- /**
- * <p>
- 马赛克列表
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/mosaics/list")
- public ResultData getMosaicList(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
- return ResultData.ok(sceneEditInfoService.getMosaicList(param.getNum()));
- }
- /**
- * <p>
- 添加水印
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/waterMark/add")
- public ResultData addWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
- return sceneEditInfoService.addWaterMark(param);
- }
- /**
- * <p>
- 删除水印
- * </p>
- * @author dengsixing
- * @date 2022/8/1
- * @param param
- * @return com.fdkankan.web.response.ResultData
- **/
- @PostMapping(value = "/waterMark/delete")
- public ResultData deleteWaterMark(@RequestBody @Validated BaseFileParamVO param) throws Exception{
- return sceneEditInfoService.deleteWaterMark(param);
- }
- /**
- * 删除水印
- * @param param
- * @return
- * @throws Exception
- */
- @PostMapping(value = "/filter/save")
- public ResultData saveFilter(@RequestBody @Validated SaveFiltersParamVO param) throws Exception{
- return sceneEditInfoService.saveFilter(param);
- }
- /**
- * 删除水印
- * @param param
- * @return
- * @throws Exception
- */
- @PostMapping(value = "/filter/list")
- public ResultData listFilter(@RequestBody @Validated BaseSceneParamVO param) throws Exception{
- return sceneEditInfoService.listFilter(param);
- }
- //
- // /**
- // * <p>
- // 添加监控
- // * </p>
- // * @author dengsixing
- // * @date 2022/9/20
- // * @param param
- // * @return com.fdkankan.common.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping("/surveillance/save")
- // ResultData saveSurveillance(@RequestBody @Validated SurveillanceParamVO param) throws Exception {
- // return surveillanceService.saveSurveillance(param);
- // }
- //
- // @CheckPermit
- // @PostMapping("/surveillance/delete")
- // public ResultData deleteSurveillance(@RequestBody @Validated BaseSidParamVO param) throws IOException {
- // return surveillanceService.deleteSurveillance(param);
- // }
- //
- // @CheckPermit
- // @PostMapping("/surveillance/list")
- // public ResultData listSurveillance(@RequestBody @Validated BaseSceneParamVO param){
- // return ResultData.ok(surveillanceService.listSurveillance(param.getNum()));
- // }
- //
- // /**
- // * <p>
- // 上传空间模型
- // * </p>
- // * @author dengsixing
- // * @date 2022/10/19
- // * @param num
- // * @param sid
- // * @param file
- // * @return com.fdkankan.common.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping("/model/box/upload")
- // public ResultData uploadBoxModel(
- // @RequestParam(value = "num") String num,
- // @RequestParam(value = "sid") String sid,
- // @RequestParam(value = "file") MultipartFile file) throws Exception {
- // return boxModelService.uploadBoxModel(num, sid, file);
- // }
- //
- // /**
- // * <p>
- // 保存空间模型
- // * </p>
- // * @author dengsixing
- // * @date 2022/10/19
- // * @param param
- // * @return com.fdkankan.common.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping("/model/box/save")
- // public ResultData saveBoxModel(@RequestBody @Validated BaseJsonDataParamVO param) throws Exception {
- // return boxModelService.saveBoxModel(param);
- // }
- //
- // /**
- // * <p>
- // 删除空间模型
- // * </p>
- // * @author dengsixing
- // * @date 2022/10/19
- // * @param param
- // * @return com.fdkankan.common.response.ResultData
- // **/
- // @CheckPermit
- // @PostMapping("/model/box/delete")
- // public ResultData delBoxModel(@RequestBody @Validated DeleteSidParamVO param) throws Exception {
- // return boxModelService.deleteBoxModel(param);
- // }
- //
- // /**
- // * 上传二维码和分享的logo
- // * @return
- // */
- // @PostMapping(value = "/uploadShareLogo")
- // public ResultData uploadShareLogo(@RequestParam("num") String num, @RequestParam("file") MultipartFile file) throws Exception {
- // return scenePlusService.uploadShareLogo(num, file);
- // }
- //
- // /**
- // * 获取编辑器版本信息
- // * @return
- // */
- // @GetMapping("/getServiceUpTip")
- // public ResultData getServiceUpTip(){
- // return sceneEditService.getServiceUpTip();
- // }
- /**
- * 保存或者修改指示牌
- * @return
- * @throws Exception
- */
- @PostMapping("/billboards/save")
- public ResultData saveBillboards(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
- return sceneEditInfoExtService.saveBillboards(param);
- }
- /**
- * 删除指示牌
- * @return
- * @throws Exception
- */
- @PostMapping("/billboards/delete")
- public ResultData deleteBillboards(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
- return sceneEditInfoExtService.deleteBillboards(param);
- }
- /**
- * 获取指示牌列表
- * @return
- * @throws Exception
- */
- @PostMapping("/billboards/list")
- public ResultData deleteBillboards(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
- return ResultData.ok(sceneEditInfoExtService.listBillboards(param));
- }
- /**
- * 获取指示牌列表
- * @param param
- * @return
- * @throws Exception
- */
- @PostMapping("/billboards/styles/delete")
- public ResultData deleteBillboards(@RequestBody @Validated DeleteStylesParamVO param) throws Exception {
- return ResultData.ok(sceneEditInfoExtService.deleteBillboardsStyles(param));
- }
- //
- // @CheckPermit
- // @PostMapping(value = "/cutModel/save")
- // public ResultData saveCutModel(@RequestBody @Validated BaseJsonArrayParamVO param) throws Exception {
- // return cutModelService.saveCutModel(param);
- // }
- //
- // @CheckPermit
- // @PostMapping(value = "/cutModel/list")
- // public ResultData listCutModel(@RequestBody @Validated BaseSceneParamVO param) throws Exception {
- // return ResultData.ok(cutModelService.listCutModel(param));
- // }
- //
- // @CheckPermit
- // @PostMapping(value = "/cutModel/delete")
- // public ResultData deleteCutModel(@RequestBody @Validated DeleteSidListParamVO param) throws Exception {
- // return cutModelService.deleteCutModel(param);
- // }
- }
|