package com.brframework.commonoss.web; import com.brframework.commonoss.core.sts.AliYunSTSClient; import com.brframework.commonweb.json.JSONResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import java.util.UUID; /** * @author xu * @date 2019/8/22 13:46 */ @RestController public class OSSWebController { @Autowired AliYunSTSClient stsClient; @GetMapping("/oss/v1/uuid") public JSONResult uuid(){ return JSONResult.ok(UUID.randomUUID().toString()); } }