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 io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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 {
|
|
@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();
|
}
|
|
@ApiOperation(value = "后台线程管理界面websocket",notes = "请求链接:ws://localhost:8089/fg/processSurvey")
|
@GetMapping("getProcessSurvey")
|
public Response getProcessSurveyList(){return new Response();}
|
|
@ApiOperation(value = "设备工作状态",notes = "请求链接:ws://localhost:8089/fg/fbsState 传参:FbsStatePar实体类")
|
@GetMapping("getFbsState")
|
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();}
|
}
|