whyclxw
2022-02-09 7197f14e4b25a152549639ff1d621c0130a2d41f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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\"}")
    @GetMapping("getRealTime")
    public Response getRealTime(){
        return new Response();
    }
}