Commit b7bbf7e7 by 段启岩

修改文件上传API路径

parent 4b6a38da
...@@ -24,7 +24,7 @@ import java.io.IOException; ...@@ -24,7 +24,7 @@ import java.io.IOException;
*/ */
@Api(tags = "资源Api") @Api(tags = "资源Api")
@RestController @RestController
@RequestMapping("/api/file") @RequestMapping("/api/resource")
public class FileUploadApi { public class FileUploadApi {
private IFileUploadService fileUploadService; private IFileUploadService fileUploadService;
...@@ -34,7 +34,7 @@ public class FileUploadApi { ...@@ -34,7 +34,7 @@ public class FileUploadApi {
} }
@ApiOperation("文件上传") @ApiOperation("文件上传")
@PostMapping("/upload") @PostMapping("/file")
public Response upload(@RequestParam("file") MultipartFile file, @RequestParam("type") Integer type, @CurrentSubject Subject subject) { public Response upload(@RequestParam("file") MultipartFile file, @RequestParam("type") Integer type, @CurrentSubject Subject subject) {
//1.获取上传类型 //1.获取上传类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment