Browse Source

注册首页各场站信息接口

wangb 2 years ago
parent
commit
666fb77b49

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

@@ -235,4 +235,14 @@ public class GenreSetPushController {
         return ajax;
     }
 
+    @GetMapping(value = "/Stationinformation")
+    @ApiOperation(value = "首页各场站信息", notes = "首页各场站信息")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wpId", value = "场站编号", required = true, dataType = "string", paramType = "query")})
+    @ResponseBody
+    public AjaxResult getinformation(@RequestParam("wpId") String wpId) {
+        AjaxResult ajax= genreSetPushService.Stationinformation(wpId);
+        return ajax;
+    }
+
 }

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

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

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

@@ -66,4 +66,7 @@ public interface GenreSetPushService {
 
     @GetMapping("/genreset/homeSuspensionWindows")
     public AjaxResult hso();
+
+    @GetMapping("/genreset/Stationinformation")
+    public AjaxResult  Stationinformation(@RequestParam("wpId")String wpId);
 }