package com.cdf.controller.api; import com.alibaba.fastjson.JSONObject; import com.cdf.common.ResultData; import com.cdf.service.ITencentYunService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/api/tencentYun") public class TencentYunController { @Autowired ITencentYunService tencentYunService; @GetMapping("/getSign") public ResultData getSign(@RequestParam(required = false) String userId){ return ResultData.ok(tencentYunService.getSign(userId)); } }