whycxzp
2021-09-28 7d64716cb0d406f21cde03976fd273bd07fdc06f
src/main/java/com/whyc/controller/MotorStateController.java
@@ -12,8 +12,8 @@
import javax.annotation.Resource;
@RestController
@RequestMapping("motor")
@Api(tags = "电机")
@RequestMapping("motorState")
@Api(tags = "电机-状态")
@Slf4j
public class MotorStateController {
    @Resource
@@ -45,4 +45,10 @@
        return motorStateService.getAll(pageNum,pageSize);
    }
    @GetMapping("ws")
    @ApiOperation(value="查询webSocket",protocols = "ws",notes = "接口:ws://localhost:8090/websocket,发送消息为deviceId")
    public Response doc(){
        return new Response().setMsg(1,"查看接口描述");
    }
}