洪城义警-正式版后台
zengh
2021-08-13 ccc6e51f22bf0b2b0cebb84e32f55a5cebdb9692
src/main/java/org/springblade/modules/webscoket/controller/PushMsgController.java
@@ -36,17 +36,24 @@
    }
    @GetMapping("/inviteVideoCall")
   public R<Map> inviteVideoCall(String userId,String type){
   public R<Map> inviteVideoCall(String userId, String type, String name,String faqiid) {
       //获取当前时间戳作为房间号
      String roomId = "";
      Map<String, Object> map = new HashMap<String, Object>();
      String time = String.valueOf(new Date().getTime());
      int msg = pushMsgService.inviteVideoCall(userId,time,type);
      int msg = pushMsgService.inviteVideoCall(userId, time, type, name,faqiid);
      map.put("type",type);
      map.put("roomId",time);
      map.put("res",0);
      map.put("res", msg);
      return R.data(map);
   }
   @GetMapping("/closeVideoCall")
   public void closeVideoCall(String sentId, String acceptId) {
      pushMsgService.closeVideoCall(sentId, acceptId);
   }
}