From e654a4570cca83fe0915bc8da14b1d8c2bc92d11 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 12 Aug 2021 09:53:44 +0800
Subject: [PATCH] 问题修复
---
src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java b/src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java
index ff69925..b94916e 100644
--- a/src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java
+++ b/src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java
@@ -1,15 +1,23 @@
package org.springblade.modules.webscoket.controller;
+import org.springblade.core.tool.api.R;
import org.springblade.modules.webscoket.service.IPushMsgService;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
/**
* @author lq
* @date 2020/4/1 11:22
*/
@RestController
+@RequestMapping("pushMsg")
public class PushMsgController {
@Autowired
@@ -27,4 +35,18 @@
return "消息发送成功:"+msg;
}
+ @GetMapping("/inviteVideoCall")
+ public R<Map> inviteVideoCall(String userId,String type){
+ //获取当前时间戳作为房间号
+ String roomId = "";
+ Map<String, Object> map = new HashMap<String, Object>();
+ String time = String.valueOf(new Date().getTime());
+ int msg = pushMsgService.inviteVideoCall(userId,time,type);
+ map.put("type",type);
+ map.put("roomId",time);
+ map.put("res",0);
+
+ return R.data(map);
+ }
+
}
--
Gitblit v1.9.3