|
@@ -1,16 +1,14 @@
|
|
|
package com.fdage.followheartplay.controller;
|
|
package com.fdage.followheartplay.controller;
|
|
|
|
|
|
|
|
import com.fdage.followheartplay.dto.SceneDto;
|
|
import com.fdage.followheartplay.dto.SceneDto;
|
|
|
|
|
+import com.fdage.followheartplay.entity.SceneEntity;
|
|
|
import com.fdage.followheartplay.service.SceneService;
|
|
import com.fdage.followheartplay.service.SceneService;
|
|
|
import com.fdkankan.common.constant.ServerCode;
|
|
import com.fdkankan.common.constant.ServerCode;
|
|
|
import com.fdkankan.common.response.ResultData;
|
|
import com.fdkankan.common.response.ResultData;
|
|
|
import com.fdkankan.common.util.JwtUtil;
|
|
import com.fdkankan.common.util.JwtUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -37,6 +35,18 @@ public class SceneController {
|
|
|
/**
|
|
/**
|
|
|
* 查询场景信息
|
|
* 查询场景信息
|
|
|
* @param token
|
|
* @param token
|
|
|
|
|
+ * @param sceneEntity
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/save")
|
|
|
|
|
+ public ResultData saveScene(@RequestHeader String token, @RequestBody SceneEntity sceneEntity){
|
|
|
|
|
+ sceneService.save(sceneEntity);
|
|
|
|
|
+ return ResultData.ok();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询场景信息
|
|
|
|
|
+ * @param token
|
|
|
* @param sceneIds 场景码集合
|
|
* @param sceneIds 场景码集合
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|