|
@@ -0,0 +1,92 @@
|
|
|
+package com.fdkankan.scene.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.fdkankan.scene.annotation.CheckPermit;
|
|
|
+import com.fdkankan.scene.annotation.SaveLog;
|
|
|
+import com.fdkankan.scene.service.ISceneEvidenceService;
|
|
|
+import com.fdkankan.scene.vo.DeleteHotIconParamVO;
|
|
|
+import com.fdkankan.scene.vo.DeleteHotParamVO;
|
|
|
+import com.fdkankan.scene.vo.SaveEvidenceParamVO;
|
|
|
+import com.fdkankan.scene.vo.SaveTagsParamVO;
|
|
|
+import com.fdkankan.web.controller.BaseController;
|
|
|
+import com.fdkankan.web.response.ResultData;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/service/scene/edit/evidence")
|
|
|
+public class EvidenceController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ISceneEvidenceService sceneEvidenceService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>
|
|
|
+ 新增或修改场景热点
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/1/12
|
|
|
+ * @param param
|
|
|
+ * @return com.fdkankan.web.response.ResultData
|
|
|
+ **/
|
|
|
+ @SaveLog
|
|
|
+ @CheckPermit
|
|
|
+ @PostMapping(value = "/save")
|
|
|
+ public ResultData<Void> save(@RequestBody @Validated SaveEvidenceParamVO param) throws Exception {
|
|
|
+ sceneEvidenceService.saveEvidence(param);
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>
|
|
|
+ 删除热点
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/2/16
|
|
|
+ * @param param
|
|
|
+ * @return com.fdkankan.web.response.ResultData
|
|
|
+ **/
|
|
|
+ @SaveLog
|
|
|
+ @CheckPermit
|
|
|
+ @PostMapping(value = "/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
|
|
|
+ **/
|
|
|
+ @CheckPermit
|
|
|
+ @PostMapping(value = "/list")
|
|
|
+ public ResultData listTags(@RequestParam(value = "num") String num) throws Exception {
|
|
|
+ return sceneProService.listTags(num);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>
|
|
|
+ 删除热点
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/2/16
|
|
|
+ * @param param
|
|
|
+ * @return com.fdkankan.web.response.ResultData
|
|
|
+ **/
|
|
|
+ @SaveLog
|
|
|
+ @CheckPermit
|
|
|
+ @PostMapping(value = "/icons/delete")
|
|
|
+ public ResultData deleteIcons(@RequestBody @Validated DeleteHotIconParamVO param) throws Exception {
|
|
|
+ return sceneProService.deleteIcons(param);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|