| | |
| | | } |
| | | |
| | | @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); |
| | | |
| | | } |
| | | |
| | | } |