|
|
|
@ -2,13 +2,12 @@ package com.elink.esua.epdc.feign; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.UploadDTO; |
|
|
|
import com.elink.esua.epdc.dto.UploadFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.UploadToOssDTO; |
|
|
|
import com.elink.esua.epdc.feign.fallback.OssFeignClientFallback; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
/** |
|
|
|
* 文件对象模块 |
|
|
|
@ -35,8 +34,8 @@ public interface OssFeignClient { |
|
|
|
* @params [file] |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UploadDTO> |
|
|
|
* @author liuchuang |
|
|
|
* @since 2019/11/25 10:55 |
|
|
|
* @since 2019/11/25 16:13 |
|
|
|
*/ |
|
|
|
@PostMapping(value = "oss/file/upload") |
|
|
|
Result<UploadDTO> upload(MultipartFile file); |
|
|
|
@PostMapping(value = "oss/file/uploadFile", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<String> uploadFile(UploadToOssDTO uploadToOssDto); |
|
|
|
} |
|
|
|
|