|
@@ -1,8 +1,10 @@
|
|
package com.boman.system.api;
|
|
package com.boman.system.api;
|
|
|
|
|
|
|
|
+import com.boman.domain.dto.AjaxResult;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestPart;
|
|
import org.springframework.web.bind.annotation.RequestPart;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import com.boman.domain.constant.ServiceNameConstants;
|
|
import com.boman.domain.constant.ServiceNameConstants;
|
|
@@ -26,4 +28,10 @@ public interface RemoteFileService
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
|
|
public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 通用上传请求
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/upload/base64")
|
|
|
|
+ AjaxResult uploadFileBase64(@RequestBody String base64);
|
|
}
|
|
}
|