Browse Source

注册首页弹窗接口

wangb 2 years ago
parent
commit
399882b72f

+ 10 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/monitor/GenreSetPushController.java

@@ -1,5 +1,6 @@
 package com.gyee.consumer.controller.monitor;
 
+import com.gyee.common.config.R;
 import com.gyee.common.domain.AjaxResult;
 import com.gyee.consumer.service.monitor.GenreSetPushService;
 import io.swagger.annotations.Api;
@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 @Slf4j
@@ -225,4 +227,12 @@ public class GenreSetPushController {
         return ajax;
     }
 
+    @GetMapping(value = "/homeSuspensionWindows")
+    @ApiOperation(value = "首页弹窗", notes = "首页弹窗")
+    @ResponseBody
+    public AjaxResult wtls() {
+        AjaxResult ajax= genreSetPushService.hso();
+        return ajax;
+    }
+
 }

+ 5 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/fallback/monitor/GenreSetPushServiceFallbackFactory.java

@@ -64,6 +64,11 @@ public class GenreSetPushServiceFallbackFactory implements FallbackFactory<Genre
             }
 
             @Override
+            public AjaxResult hso() {
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
             public AjaxResult findBasicDataInfo_fcmap(@RequestParam("id") String id) throws Exception{
                 return  AjaxResult.error(throwable.getMessage());
             }

+ 4 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/service/monitor/GenreSetPushService.java

@@ -1,6 +1,7 @@
 package com.gyee.consumer.service.monitor;
 
 
+import com.gyee.common.config.R;
 import com.gyee.common.domain.AjaxResult;
 import com.gyee.consumer.config.FeignConfiguration;
 import com.gyee.consumer.fallback.monitor.GenreSetPushServiceFallbackFactory;
@@ -62,4 +63,7 @@ public interface GenreSetPushService {
 
     @GetMapping("/genreset/getForecastwindspeedInfo")
     public AjaxResult  getForecastwindspeedInfo(@RequestParam("wpId")String wpId);
+
+    @GetMapping("/genreset/homeSuspensionWindows")
+    public AjaxResult hso();
 }