ke
2024-05-13 6d27187cc922f06a72b4dc28a5df18cc5ac3c687
skjcmanager/skjcmanager-ops-api/skjcmanager-resource-api/src/main/java/cn/gistack/resource/feign/IOssClient.java
@@ -18,6 +18,16 @@
 *
 * @author kelu
 */
import feign.Body;
import feign.Headers;
import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.InputStream;
@FeignClient(
   value = AppConstant.APPLICATION_RESOURCE_NAME,
   fallback = IOssClientFallback.class
@@ -35,4 +45,9 @@
//      ,@RequestParam("resGuid")String resGuid
//      ) throws IOException;
   String UPLOAD_FILE = API_PREFIX + "uploadFile";
   @PostMapping(value = UPLOAD_FILE,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
   String uploadFile(@RequestParam("fileName") String fileName, @RequestPart("file") MultipartFile file) throws Exception;
}