ke
2024-05-13 2cb83a061ecd5d82c427731dcb6a4c5ece3e55ee
skjcmanager/skjcmanager-ops-api/skjcmanager-resource-api/src/main/java/cn/gistack/resource/feign/IOssClient.java
@@ -2,22 +2,24 @@
import cn.gistack.resource.entity.QieTuEntity;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.sms.model.SmsResponse;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
/**
 * IOssClient
 *
 * @author kelu
 */
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@FeignClient(
   value = AppConstant.APPLICATION_RESOURCE_NAME,
   fallback = IOssClientFallback.class
@@ -29,10 +31,9 @@
   @PostMapping(UPLOAD_QIETU)
   R uploadQietu(@RequestBody QieTuEntity qieTuEntity) throws IOException;
//   @PostMapping(UPLOAD_QIETU)
//   R uploadQietu(
//      @RequestParam("qietuHashMap") HashMap<String,String> qietuHashMap
//      ,@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;
}