SceneController.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. package com.fdkankan.scene.controller;
  2. import com.fdkankan.common.controller.BaseController;
  3. import com.fdkankan.common.model.SSOUser;
  4. import com.fdkankan.common.response.ResultData;
  5. import com.fdkankan.scene.service.ISceneService;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RequestParam;
  11. import org.springframework.web.bind.annotation.RestController;
  12. @Slf4j
  13. @RestController
  14. @RequestMapping("/api/scene")
  15. public class SceneController extends BaseController {
  16. // @Autowired
  17. // private ISceneService sceneService;
  18. // @Autowired
  19. // private GoodsFeignClient goodsService;
  20. // @Autowired
  21. // private ObjectMapper mapper;
  22. // @Autowired
  23. // private UserFeignClient userService;
  24. // @Autowired
  25. // private ModelingMsgProducer producer;
  26. //
  27. // @Autowired
  28. // private ISceneProService sceneProService;
  29. //
  30. // @Autowired
  31. // private ISceneProEditService sceneProEditService;
  32. //
  33. // @Autowired
  34. // private IRebuildVideoProgressService rebuildVideoProgressService;
  35. //
  36. //
  37. // @Autowired
  38. // private IRebuildPicProgressService rebuildPicProgressService;
  39. //
  40. // @Autowired
  41. // private UploadToOssUtil uploadToOssUtil;
  42. //
  43. // @Autowired
  44. // private ICameraService cameraService;
  45. //
  46. // @Autowired
  47. // private RubberSheetingUtil rubberSheetingUtil;
  48. //
  49. // @Autowired
  50. // private ISceneModuleVideoService sceneModuleVideoService;
  51. //
  52. // @Autowired
  53. // private ISceneCooperationService sceneCooperationService;
  54. //
  55. // @Autowired
  56. // private ISceneResourceService sceneResourceService;
  57. //
  58. // @Autowired
  59. // private ISceneDataDownloadService sceneDataDownloadService;
  60. //
  61. // @Autowired
  62. // private ICameraDetailService cameraDetailService;
  63. //
  64. // @Autowired
  65. // private IUserIncrementService userIncrementService;
  66. //
  67. // @Autowired
  68. // private SceneNumService sceneNumService;
  69. //
  70. // @Autowired
  71. // private FdkkLaserService fdkkLaserService;
  72. //
  73. // @Value("${main.url}")
  74. // private String mainUrl;
  75. //
  76. // @Value("${scene.url}")
  77. // private String sceneUrl;
  78. //
  79. // @Value("${scene.pro.url}")
  80. // private String sceneProUrl;
  81. //
  82. // @Value("${scene.pro.new.url}")
  83. // private String sceneProNewUrl;
  84. //
  85. // @Value("${scene.pro.v4.url}")
  86. // private String sceneProV4Url;
  87. //
  88. // @Value("${oss.type}")
  89. // private String type;
  90. //
  91. // @Value("${environment}")
  92. // private String environment;
  93. //
  94. // @Value("${formal.home.url}")
  95. // private String formalHomeUrl;
  96. //
  97. // @Value("${dev.home.url}")
  98. // private String devHomeUrl;
  99. //
  100. // @Value("${prefix.ali}")
  101. // private String prefixAli;
  102. //
  103. // @Value("${ecs.type}")
  104. // private String ecsType;
  105. //
  106. // @Value("${expected.time}")
  107. // private String expectedTime;
  108. //
  109. // @Autowired
  110. // private ComputerUtil computerUtil;
  111. //
  112. // @Autowired
  113. // private FdkkV4Service fdkkV4Service;
  114. //多线程共享判断是否正在打包中
  115. // private AtomicBoolean isDownload = new AtomicBoolean(false);
  116. @Autowired
  117. private ISceneService sceneService;
  118. /**
  119. * 是否已登录
  120. * @return
  121. */
  122. @PostMapping(value = "/isLogin")
  123. public ResultData isLogin(@RequestParam("num") String num) throws Exception{
  124. return sceneService.isLogin(num, this.getSsoUserV3());
  125. }
  126. }