|
@@ -1,10 +1,15 @@
|
|
|
package com.fdkankan.scene.controller;
|
|
|
|
|
|
|
|
|
+import com.fdkankan.scene.service.ISceneProService;
|
|
|
+import com.fdkankan.scene.vo.SceneVO;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 场景表 前端控制器
|
|
@@ -14,8 +19,20 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2021-12-23
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/scene/scene")
|
|
|
+@RequestMapping("/api/scene")
|
|
|
public class SceneController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ISceneProService sceneProService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取场景详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getInfo")
|
|
|
+ public SceneVO getInfo(HttpServletRequest request) throws Exception {
|
|
|
+ String sceneNum = request.getParameter("num");
|
|
|
+ return sceneProService.getInfo(sceneNum);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|