|
@@ -0,0 +1,28 @@
|
|
|
+package cn.com.qmth.examcloud.ws.api.provider;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.ws.api.WsCloudService;
|
|
|
+import cn.com.qmth.examcloud.ws.api.request.SendTextReq;
|
|
|
+import cn.com.qmth.examcloud.ws.api.response.SendTextResp;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+@Api(tags = "websocket服务")
|
|
|
+@RestController
|
|
|
+@RequestMapping("api/cloud/ws")
|
|
|
+public class WsCloudServiceProvider implements WsCloudService {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 4784116669909937047L;
|
|
|
+
|
|
|
+ @ApiOperation(value = "发送消息")
|
|
|
+ @PostMapping("sendText")
|
|
|
+ @Override
|
|
|
+ public SendTextResp sendText(@RequestBody SendTextReq req) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|