123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.fdkankan.tk.controller;
- import com.fdkankan.tk.common.ResultData;
- import com.fdkankan.tk.service.ITencentYunService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author
- * @since 2022-09-27
- */
- @RestController
- public class TencentYunController {
- @Autowired
- ITencentYunService tencentYunService;
- @GetMapping("/tencentYun/getSign")
- public ResultData getSign(@RequestParam(required = false) String userId){
- return ResultData.ok(tencentYunService.getSign(userId));
- }
- @GetMapping("/agoraIO/getAgoraToken")
- public ResultData getAgoraToken(@RequestParam(required = true) Integer userId,
- @RequestParam(required = true) Integer roleId,
- @RequestParam(required = true) String channelName){
- return ResultData.ok(tencentYunService.getAgoraToken(userId,roleId,channelName));
- }
- }
|