feat: 下载调整
This commit is contained in:
@@ -2,7 +2,9 @@ package org.wfc.system.api;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.wfc.common.core.constant.ServiceNameConstants;
|
||||
@@ -26,4 +28,8 @@ public interface RemoteFileService
|
||||
*/
|
||||
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
|
||||
|
||||
|
||||
@GetMapping("/download")
|
||||
public R<byte[]> download(@RequestParam("filePath") String filePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user