| | |
| | | |
| | | /** |
| | | * Query if the file already exists based on the workspace id and the fingerprint of the file. |
| | | * |
| | | * @param workspaceId |
| | | * @param fingerprint |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * Save the basic information of the file to the database. |
| | | * |
| | | * @param workspaceId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | Integer saveFile(String workspaceId, FileUploadDTO file); |
| | | |
| | | Integer saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException; |
| | | |
| | | /** |
| | | * Query information about all files in this workspace based on the workspace id. |
| | | * |
| | | * @param workspaceId |
| | | * @return |
| | | */ |
| | | List<MediaFileDTO> getAllFilesByWorkspaceId(String workspaceId); |
| | | |
| | | List<MediaFileEntity> listByIsadd(); |
| | | |
| | | int updateExamByFileId(String fileId); |
| | | |
| | | List<MediaFileEntity> listMediaFileEntity(String workspaceId, String jobId); |
| | | |
| | | /** |
| | | * Paginate through all media files in this workspace. |
| | | * |
| | | * @param workspaceId |
| | | * @param page |
| | | * @param pageSize |
| | |
| | | |
| | | /** |
| | | * Get the download address of the file. |
| | | * |
| | | * @param workspaceId |
| | | * @param fileId |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * Query all media files of a job. |
| | | * |
| | | * @param workspaceId |
| | | * @param jobId |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 更新文件 |
| | | * @param workspaceId 项目id |
| | | * |
| | | * @param workspaceId 项目id |
| | | * @param mediaFileEntity |
| | | * @return |
| | | */ |
| | | Boolean updateMediaFile(String workspaceId, MediaFileEntity mediaFileEntity); |
| | | |
| | | int deleteMedia(String workspaceId, String fileId); |
| | | int deleteMedia(String workspaceId, String fileId); |
| | | } |