|
@@ -1,17 +1,19 @@
|
|
|
package com.fdkankan.openApi.controller.www;
|
|
|
|
|
|
|
|
|
+import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
import com.fdkankan.openApi.common.PageInfo;
|
|
|
-import com.fdkankan.openApi.entity.system.User;
|
|
|
import com.fdkankan.openApi.entity.www.ScenePlus;
|
|
|
import com.fdkankan.openApi.entity.www.ScenePlusExt;
|
|
|
+import com.fdkankan.openApi.entity.www.FdkkUser;
|
|
|
import com.fdkankan.openApi.service.laser.SceneService;
|
|
|
-import com.fdkankan.openApi.service.system.IUserService;
|
|
|
+import com.fdkankan.openApi.service.www.IFdkkUserService;
|
|
|
import com.fdkankan.openApi.service.www.IScenePlusExtService;
|
|
|
import com.fdkankan.openApi.service.www.IScenePlusService;
|
|
|
import com.fdkankan.openApi.vo.www.SceneVO;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
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;
|
|
@@ -25,7 +27,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2023-02-15
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/openApi/scene")
|
|
|
+@RequestMapping("/scene")
|
|
|
public class SceneController {
|
|
|
|
|
|
|
|
@@ -33,7 +35,7 @@ public class SceneController {
|
|
|
private IScenePlusService scenePlusService;
|
|
|
|
|
|
@Autowired
|
|
|
- private IUserService userService;
|
|
|
+ private IFdkkUserService userService;
|
|
|
|
|
|
@Autowired
|
|
|
private IScenePlusExtService scenePlusExtService;
|
|
@@ -45,9 +47,10 @@ public class SceneController {
|
|
|
* 根据用户名获取场景列表
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("/getScenesByUsername")
|
|
|
+ @SaIgnore
|
|
|
+ @PostMapping("/getScenesByUsername")
|
|
|
public ResultData getScenesByUsername(@RequestBody SceneVO sceneVO) {
|
|
|
- User user = userService.findByUserName(sceneVO.getUserName());
|
|
|
+ FdkkUser user = userService.findByUserName(sceneVO.getUserName());
|
|
|
PageInfo pageInfo = scenePlusService.getScenesByUserId(user.getId(),sceneVO.getPageNum(),sceneVO.getPageSize());
|
|
|
return ResultData.ok(pageInfo);
|
|
|
}
|