|
|
@@ -0,0 +1,38 @@
|
|
|
+package com.fdkankan.scene.controller;
|
|
|
+
|
|
|
+import com.fdkankan.common.response.Result;
|
|
|
+import com.fdkankan.common.response.ResultData;
|
|
|
+import com.fdkankan.fyun.oss.UploadToOssUtil;
|
|
|
+import com.fdkankan.scene.bean.TagBean;
|
|
|
+import com.fdkankan.scene.config.Test;
|
|
|
+import java.io.IOException;
|
|
|
+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.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * TODO
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author dengsixing
|
|
|
+ * @since 2022/7/27
|
|
|
+ **/
|
|
|
+@RestController
|
|
|
+@RequestMapping("/service/scene/test")
|
|
|
+public class TestController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UploadToOssUtil uploadToOssUtil;
|
|
|
+
|
|
|
+// @Autowired
|
|
|
+// private TagBean tagBean;
|
|
|
+
|
|
|
+ @GetMapping("/testS3")
|
|
|
+ public ResultData testS3(String content, String key) throws IOException {
|
|
|
+// uploadToOssUtil.upload(content.getBytes(), key);
|
|
|
+ return ResultData.ok(Test.test_aaa);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|