TencentYunController.java 648 B

12345678910111213141516171819202122232425262728293031
  1. package com.fdkankan.tk.controller;
  2. import com.fdkankan.tk.common.ResultData;
  3. import com.fdkankan.tk.service.ITencentYunService;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.*;
  6. /**
  7. * <p>
  8. * 前端控制器
  9. * </p>
  10. *
  11. * @author
  12. * @since 2022-09-27
  13. */
  14. @RestController
  15. @RequestMapping("/tencentYun")
  16. public class TencentYunController {
  17. @Autowired
  18. ITencentYunService tencentYunService;
  19. @GetMapping("/getSign")
  20. public ResultData getSign(@RequestParam(required = false) String userId){
  21. return ResultData.ok(tencentYunService.getSign(userId));
  22. }
  23. }