whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/RealTimeController.java
@@ -1,18 +1,27 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.dto.paramter.*;
import com.whyc.pojo.BattdischargePlan;
import com.whyc.pojo.PwrdevAlarm;
import com.whyc.service.BatttestdataInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "websocket请求")
@RestController
@RequestMapping("websocket")
public class RealTimeController {
public class RealTimeController extends BaseController{
    @ApiOperation(value = "实时界面websocket",notes = "请求链接:ws://localhost:8090/fg/RealTime 传参:{\"battGroupId\":\"1000028\",\"devId\":\"618500012\"}")
    @Autowired
    private BatttestdataInfService infService;
    @ApiOperation(value = "实时界面websocket",notes = "请求链接:ws://localhost:8090/fg/RealTime 传参:{\"battGroupId\":\"1000028\",\"devId\":\"618500012\",\"powerDeviceId\":\"100202\",\"pageType\":\"standard\"}")
    @GetMapping("getRealTime")
    public Response getRealTime(){
        return new Response();
@@ -22,7 +31,63 @@
    @GetMapping("getProcessSurvey")
    public Response getProcessSurveyList(){return new Response();}
    @ApiOperation(value = "设备工作状态",notes = "请求链接:ws://localhost:8089/fg/fbsState 传参:")
    @ApiOperation(value = "设备工作状态",notes = "请求链接:ws://localhost:8089/fg/fbsState 传参:FbsStatePar实体类")
    @GetMapping("getFbsState")
    public Response getFbsState(){return new Response();}
    public Response getFbsState(@RequestBody FbsStatePar fbsStatePar){return new Response();}
    @ApiOperation(value = "报废电池信息管理",notes = "请求链接:ws://localhost:8089/fg/battScrap 传参:BattScrapPar实体类")
    @GetMapping("getBattScrap")
    public Response getBattScrap(@RequestBody BattScrapPar battScrapPar){return new Response();}
    @ApiOperation(value = "备件电池信息管理",notes = "请求链接:ws://localhost:8089/fg/battSpare 传参:BattSparePar实体类")
    @GetMapping("getBattSpare")
    public Response getBattSpare(@RequestBody BattSparePar battSparePar){return new Response();}
    @ApiOperation(value = "电池实时告警",notes = "请求链接:ws://localhost:8089/fg/battAlarmData 传参:AlarmPar实体类")
    @GetMapping("getBattAlarm")
    public Response getBattAlarm(@RequestBody AlarmPar alarmPar){return new Response();}
    @ApiOperation(value = "设备实时告警",notes = "请求链接:ws://localhost:8089/fg/devAlarmData 传参:DevAlarmPar实体类")
    @GetMapping("getDevAlarm")
    public Response getDevAlarm(@RequestBody DevAlarmPar devAlarmPar){return new Response();}
    @ApiOperation(value = "电源实时告警",notes = "请求链接:ws://localhost:8089/fg/powerAlarmRt 传参:PwrdevAlarm实体类")
    @GetMapping("getPowerAlarmRt")
    public Response getPowerAlarmRt(@RequestBody PwrdevAlarm pwrdevAlarm){return new Response();}
    @ApiOperation(value = "通信电源实时告警",notes = "请求链接:ws://localhost:8089/fg/pwrAlarm 传参:PwrdevAlarm实体类")
    @GetMapping("getTxPowerAlarm")
    public Response getTxPowerAlarm(@RequestBody PwrdevAlarm pwrdevAlarm){return new Response();}
    @ApiOperation(value = "通信电源超时告警",notes = "请求链接:ws://localhost:8089/fg/powerAlarmTimeout 传参:为空")
    @GetMapping("getPwrTimeoutAlarm")
    public Response getPwrTimeoutAlarm(){return new Response();}
    @ApiOperation(value = "放电计划管理",notes = "请求链接:ws://localhost:8089/fg/battDischargePlan 传参:BattdischargePlan实体类")
    @GetMapping("getBattDischargePlan")
    public Response getBattDischargePlan(@RequestBody BattdischargePlan battdischargePlan){return new Response();}
    @ApiOperation(value = "3D机房管理",notes = "请求链接:ws://localhost:8090/fg/Satation3D 传参:{\"stationId\":\"42010021\"}")
    @GetMapping("getStation3D")
    public Response getStation3D(){return new Response();}
    @ApiOperation(value = "首页头部告警数据",notes = "请求链接:ws://localhost:8090/fg/homePageSocket 传参:1002")
    @GetMapping("getHomePage")
    public Response getHomePage(){return new Response();}
    @ApiOperation(value = "底部滚动告警数据",notes = "请求链接:ws://localhost:8090/fg/battAlarmFoot 传参:1002")
    @GetMapping("getbattAlarmFoot")
    public Response getbattAlarmFoot(){return new Response();}
    @ApiOperation(value = "a059更新升级查询",notes = "请求链接:ws://localhost:8091/fg/aioUpdateSearch 传参:AIOUpdatePar实体类{pageNum,pageSize,stationName1,stationName2,stationName5,uId}")
    @GetMapping("aioUpdateSearch")
    public Response aioUpdateSearch(){return new Response();}
    @ApiOperation(value = "领导层",notes = "请求链接:ws://localhost:8091/fg/homeAdmin")
    @GetMapping("getGroupAnalysis2")
    public Response getGroupAnalysis2(){
        return infService.getGroupAnalysis2(1087);
    }
}