|
@@ -1,11 +1,15 @@
|
|
|
package com.fdkankan.ucenter.controller.api;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.ucenter.common.Result;
|
|
|
import com.fdkankan.ucenter.service.IScenePlusVoidService;
|
|
|
import com.fdkankan.ucenter.vo.request.SceneParam;
|
|
|
+import com.fdkankan.ucenter.vo.response.ScenePlusVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RestController
|
|
|
@RequestMapping("/void")
|
|
|
public class VoidController {
|
|
@@ -32,6 +36,9 @@ public class VoidController {
|
|
|
*/
|
|
|
@PostMapping("/scene/list")
|
|
|
public Result sceneList(@RequestBody SceneParam param, @RequestHeader String token){
|
|
|
- return Result.success(scenePlusVoidService.scenePageList(param,token));
|
|
|
+ List<ScenePlusVo> scenePlusVos = scenePlusVoidService.scenePageList(param, token);
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("list",scenePlusVos);
|
|
|
+ return Result.success(jsonObject);
|
|
|
}
|
|
|
}
|