TencentYunController.java 788 B

1234567891011121314151617181920212223242526
  1. package com.cdf.controller.api;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.cdf.common.ResultData;
  4. import com.cdf.service.ITencentYunService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestParam;
  9. import org.springframework.web.bind.annotation.RestController;
  10. @RestController
  11. @RequestMapping("/api/tencentYun")
  12. public class TencentYunController {
  13. @Autowired
  14. ITencentYunService tencentYunService;
  15. @GetMapping("/getSign")
  16. public ResultData getSign(@RequestParam(required = false) String userId){
  17. return ResultData.ok(tencentYunService.getSign(userId));
  18. }
  19. }