| | |
| | |
|
| | | import org.springframework.cloud.openfeign.FeignClient;
|
| | | import org.springframework.http.MediaType;
|
| | | import org.springframework.web.bind.annotation.DeleteMapping;
|
| | | 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 com.ruoyi.common.core.constant.ServiceNameConstants;
|
| | |
| | | */
|
| | | @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
| | | public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
|
| | |
|
| | | /**
|
| | | * 删除文件
|
| | | *
|
| | | * @param fileUrl 文件地址
|
| | | * @return 结果
|
| | | */
|
| | | @DeleteMapping(value = "/delete", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
| | | public R<Boolean> delete(@RequestParam("fileUrl") String fileUrl);
|
| | | }
|