package com.fdkankan.scene.controller; import com.fdkankan.common.controller.BaseController; import com.fdkankan.common.model.SSOUser; import com.fdkankan.common.response.ResultData; import com.fdkankan.scene.service.ISceneService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @Slf4j @RestController @RequestMapping("/api/scene") public class SceneController extends BaseController { // @Autowired // private ISceneService sceneService; // @Autowired // private GoodsFeignClient goodsService; // @Autowired // private ObjectMapper mapper; // @Autowired // private UserFeignClient userService; // @Autowired // private ModelingMsgProducer producer; // // @Autowired // private ISceneProService sceneProService; // // @Autowired // private ISceneProEditService sceneProEditService; // // @Autowired // private IRebuildVideoProgressService rebuildVideoProgressService; // // // @Autowired // private IRebuildPicProgressService rebuildPicProgressService; // // @Autowired // private UploadToOssUtil uploadToOssUtil; // // @Autowired // private ICameraService cameraService; // // @Autowired // private RubberSheetingUtil rubberSheetingUtil; // // @Autowired // private ISceneModuleVideoService sceneModuleVideoService; // // @Autowired // private ISceneCooperationService sceneCooperationService; // // @Autowired // private ISceneResourceService sceneResourceService; // // @Autowired // private ISceneDataDownloadService sceneDataDownloadService; // // @Autowired // private ICameraDetailService cameraDetailService; // // @Autowired // private IUserIncrementService userIncrementService; // // @Autowired // private SceneNumService sceneNumService; // // @Autowired // private FdkkLaserService fdkkLaserService; // // @Value("${main.url}") // private String mainUrl; // // @Value("${scene.url}") // private String sceneUrl; // // @Value("${scene.pro.url}") // private String sceneProUrl; // // @Value("${scene.pro.new.url}") // private String sceneProNewUrl; // // @Value("${scene.pro.v4.url}") // private String sceneProV4Url; // // @Value("${oss.type}") // private String type; // // @Value("${environment}") // private String environment; // // @Value("${formal.home.url}") // private String formalHomeUrl; // // @Value("${dev.home.url}") // private String devHomeUrl; // // @Value("${prefix.ali}") // private String prefixAli; // // @Value("${ecs.type}") // private String ecsType; // // @Value("${expected.time}") // private String expectedTime; // // @Autowired // private ComputerUtil computerUtil; // // @Autowired // private FdkkV4Service fdkkV4Service; //多线程共享判断是否正在打包中 // private AtomicBoolean isDownload = new AtomicBoolean(false); @Autowired private ISceneService sceneService; /** * 是否已登录 * @return */ @PostMapping(value = "/isLogin") public ResultData isLogin(@RequestParam("num") String num) throws Exception{ return sceneService.isLogin(num, this.getSsoUserV3()); } }