|
@@ -0,0 +1,31 @@
|
|
|
+package com.fdkankan.fusion.controller;
|
|
|
+
|
|
|
+import com.fdkankan.fusion.common.ResultCode;
|
|
|
+import com.fdkankan.fusion.common.ResultData;
|
|
|
+import com.fdkankan.fusion.exception.BusinessException;
|
|
|
+import com.fdkankan.fusion.request.ScenePram;
|
|
|
+import com.fdkankan.fusion.service.ISceneService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/scene")
|
|
|
+public class SceneApiController extends BaseController{
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ ISceneService sceneService;
|
|
|
+
|
|
|
+ @PostMapping("/list")
|
|
|
+ public ResultData list(@RequestBody ScenePram param){
|
|
|
+ if(param.getType() == 1 || param.getNumList() == null || param.getNumList().size() <=0){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ }
|
|
|
+ param.setPageNum(1);
|
|
|
+ param.setPageSize(10000);
|
|
|
+ param.setStatus(2);
|
|
|
+ return ResultData.ok(sceneService.pageList(param,getToken()));
|
|
|
+ }
|
|
|
+}
|