From 44f2a0a32c096bdb05d4cc0ac162cdc1eb14c3ed Mon Sep 17 00:00:00 2001
From: Administrator <1144154118@qq.com>
Date: 星期四, 10 八月 2023 13:14:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
ard-work/src/main/java/com/ruoyi/rongcloud/controller/RongCloudController.java | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/rongcloud/controller/RongCloudController.java b/ard-work/src/main/java/com/ruoyi/rongcloud/controller/RongCloudController.java
index 0659a99..56c08fb 100644
--- a/ard-work/src/main/java/com/ruoyi/rongcloud/controller/RongCloudController.java
+++ b/ard-work/src/main/java/com/ruoyi/rongcloud/controller/RongCloudController.java
@@ -5,10 +5,11 @@
import com.ruoyi.rongcloud.service.RongCloudService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
/**
* @Description:
@@ -20,15 +21,27 @@
@RestController
@Api(tags = "铻嶄簯鎺ュ彛")
@Anonymous
+@RequestMapping("/rongCloud")
public class RongCloudController {
@Resource
RongCloudService rongCloudService;
- @GetMapping("getToken")
+ @GetMapping("/getToken")
@ApiOperation("鑾峰彇token")
public AjaxResult getToken(String userId,String name)
{
String token = rongCloudService.getToken(userId, name);
return AjaxResult.success(token);
}
+
+
+
+ @PostMapping("/checkOnline")
+ @ApiOperation("鏌ヨ鐢ㄦ埛鍦ㄧ嚎鐘舵��")
+ public AjaxResult checkOnline(@RequestBody List<String> userIds)
+ {
+ Map map = rongCloudService.checkOnline(userIds);
+ return AjaxResult.success(map);
+ }
+
}
--
Gitblit v1.9.3