|
@@ -0,0 +1,36 @@
|
|
|
+package com.gis.web.controller;
|
|
|
+
|
|
|
+import com.gis.common.util.Result;
|
|
|
+import com.gis.service.WorkService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.log4j.Log4j2;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author Xiewj
|
|
|
+ * @date 2024/4/23
|
|
|
+ */
|
|
|
+@Log4j2
|
|
|
+@Api(tags = "展示页")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/inner")
|
|
|
+public class InnerController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ WorkService workService;
|
|
|
+ /**
|
|
|
+ * 根据相机码获取场景数据
|
|
|
+ * @param snCode 相机码
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "v1.7.0", notes = "根据相机码获取场景数据")
|
|
|
+ @GetMapping("/getWorkSceneBySn")
|
|
|
+ public Result getWorkSceneBySn(String snCode) {
|
|
|
+ return workService.getWorkSceneBySn(snCode);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|