| | |
| | | import com.kidgrow.common.model.Result; |
| | | import com.kidgrow.filecenter.model.FileInfo; |
| | | import com.kidgrow.filecenter.service.IFileService; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @PostMapping("/files-anon") |
| | | @PostMapping(value="/files-anon",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public FileInfo upload(@RequestParam("file") MultipartFile file) throws Exception { |
| | | return fileService.upload(file); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 文件删除 |
| | | * |