‘liusuyi’
2023-07-15 29f21c70e977baf0bc2c4a2c37ba3096292c1388
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ruoyi.rongcloud.controller;
 
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
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 javax.annotation.Resource;
 
/**
 * @Description:
 * @ClassName: RongCloudController
 * @Author: 刘苏义
 * @Date: 2023年07月15日16:57:56
 * @Version: 1.0
 **/
@RestController
@Api(tags = "融云接口")
@Anonymous
public class RongCloudController {
    @Resource
    RongCloudService rongCloudService;
 
    @GetMapping("getToken")
    @ApiOperation("获取token")
    public AjaxResult getToken(String userId,String name)
    {
        String token = rongCloudService.getToken(userId, name);
        return AjaxResult.success(token);
    }
}