类 FileController
java.lang.Object
xyz.migoo.framework.infra.controller.file.FileController
@RestController
@RequestMapping("/developer/file")
@Validated
public class FileController
extends Object
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createFile(@Valid FileCreateReqVO createReqVO) deleteFile(Long id) getFilePage(@Valid FilePageReqVO pageVO) getFilePresignedUrl(String path) uploadFile(FileUploadReqVO uploadReqVO)
-
构造器详细资料
-
FileController
public FileController()
-
-
方法详细资料
-
uploadFile
- 抛出:
Exception
-
createFile
@PostMapping("/create") public Result<Long> createFile(@Valid @RequestBody @Valid FileCreateReqVO createReqVO) -
getFilePresignedUrl
@GetMapping("/presigned-url") public Result<FilePresignedUrlRespVO> getFilePresignedUrl(@RequestParam("path") String path) throws Exception - 抛出:
Exception
-
deleteFile
@DeleteMapping("/{id}") @PreAuthorize("@ss.hasPermission(\'developer:file:remove\')") public Result<Boolean> deleteFile(@PathVariable("id") Long id) throws Exception - 抛出:
Exception
-
getFilePage
@GetMapping @PreAuthorize("@ss.hasPermission(\'developer:file:query\')") public Result<PageResult<FileRespVO>> getFilePage(@Valid @Valid FilePageReqVO pageVO)
-