whyclxw
2022-02-15 2977bc9316c6bbf0b6f3615aba5b01153e69208d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.whyc.controller;
 
import com.whyc.dto.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
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 传参:{\"pageNum\":\"1\",\"pageSize\":\"10\",\"devErrcommcount\":\"1\",\"userId\":\"1002\"}")
    @GetMapping("getFbsState")
    public Response getFbsState(){return new Response();}
}