Bladeren bron

三维家下载打包下载接口

dengsixing 2 jaren geleden
bovenliggende
commit
44f1e6d33c
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      src/main/java/com/fdkankan/scene/controller/Scene3dFamilyController.java

+ 3 - 2
src/main/java/com/fdkankan/scene/controller/Scene3dFamilyController.java

@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.util.ObjectUtils;
 import org.springframework.util.ObjectUtils;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
@@ -49,7 +50,7 @@ public class Scene3dFamilyController extends BaseController {
      *
      *
      * 三维家 拉取场景数据,压缩zip包
      * 三维家 拉取场景数据,压缩zip包
      */
      */
-    @Get(value = "/scenecpzip")
+    @GetMapping(value = "/scenecpzip")
     public Result scenecpzip(String sceneNum) throws Exception{
     public Result scenecpzip(String sceneNum) throws Exception{
         String token = getToken();
         String token = getToken();
         if(StringUtils.isEmpty(token)){
         if(StringUtils.isEmpty(token)){
@@ -95,7 +96,7 @@ public class Scene3dFamilyController extends BaseController {
      *
      *
      * 三维家 拉取场景数据,压缩zip包
      * 三维家 拉取场景数据,压缩zip包
      */
      */
-    @RequestMapping(value = "/detail", method = RequestMethod.GET)
+    @GetMapping(value = "/detail")
     public Result detail(String sceneNum,String keys) throws Exception{
     public Result detail(String sceneNum,String keys) throws Exception{
 
 
         if (!ObjectUtils.isEmpty(secrets) && Arrays.asList(secrets).contains(keys)){
         if (!ObjectUtils.isEmpty(secrets) && Arrays.asList(secrets).contains(keys)){