|
@@ -14,7 +14,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -48,7 +50,6 @@ public class FileInfoController extends BaseController{
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 删除上传文件
|
|
|
*/
|
|
@@ -77,5 +78,20 @@ public class FileInfoController extends BaseController{
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 小程序上传
|
|
|
+ * @param uploadImage
|
|
|
+ * @return
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ @PostMapping("/uploadImage")
|
|
|
+ @ResponseBody
|
|
|
+ public Response uploadImageFile(@RequestParam("img") MultipartFile uploadImage) throws IOException {
|
|
|
+ List<MultipartFile> files = new ArrayList<MultipartFile>();
|
|
|
+ files.add(uploadImage);
|
|
|
+ return fileInfoService.fileUp("反馈意见",files);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|