| | |
| | | return ResponseResult.success(filesList); |
| | | } |
| | | |
| | | @GetMapping("/{workspace_id}/files/{job_id}") |
| | | public ResponseResult findFilesList(@PathVariable(name = "workspace_id") String workspaceId,@PathVariable(name = "job_id") String jobId) { |
| | | return ResponseResult.success(fileService.listMediaFileEntity(workspaceId,jobId)); |
| | | } |
| | | |
| | | @PostMapping("/{workspace_id}/updateFile") |
| | | public ResponseResult updateFile(HttpServletRequest request, @PathVariable(name = "workspace_id") String workspaceId, @RequestBody MediaFileEntity mediaFileEntity) { |
| | | CustomClaim claims = (CustomClaim) request.getAttribute(TOKEN_CLAIM); |
| | |
| | | * @version 0.2 |
| | | * @date 2021/12/9 |
| | | */ |
| | | @TableName(value = "media_file") |
| | | @TableName(value = "media_file",autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @AllArgsConstructor |
| | |
| | | */ |
| | | List<MediaFileDTO> getAllFilesByWorkspaceId(String workspaceId); |
| | | |
| | | List<MediaFileEntity> listMediaFileEntity(String workspaceId, String jobId); |
| | | |
| | | /** |
| | | * Paginate through all media files in this workspace. |
| | | * @param workspaceId |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MediaFileEntity> listMediaFileEntity(String workspaceId, String jobId) { |
| | | return mapper.selectList(new LambdaQueryWrapper<MediaFileEntity>() |
| | | .eq(MediaFileEntity::getWorkspaceId, workspaceId).eq(MediaFileEntity::getJobId,jobId)); |
| | | } |
| | | |
| | | @Override |
| | | public PaginationData<MediaFileDTO> getMediaFilesPaginationByWorkspaceId(String workspaceId, long page, long pageSize, MediaFileQueryParam mediaFileQueryParam) { |
| | | // Page<MediaFileEntity> pageData = mapper.selectPage( |
| | | // new Page<MediaFileEntity>(page, pageSize), |