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