Add support to create update tag translation task

This commit is contained in:
2024-10-03 12:59:25 +00:00
committed by GitHub
parent f7a000b806
commit c63da91152
9 changed files with 231 additions and 2 deletions

View File

@@ -340,6 +340,13 @@ abstract class _EHApi {
@Part(name: "type") String t = "import",
@CancelRequest() CancelToken? cancel,
});
@PUT('/task')
@MultiPart()
Future<ApiResult<Task>> createUpdateTagTranslationTask({
@Part(name: "cfg") UpdateTagTranslationConfig? cfg,
@Part(name: "type") String t = "update_tag_translation",
@CancelRequest() CancelToken? cancel,
});
@GET('/task/download_cfg')
Future<ApiResult<DownloadConfig>> getDefaultDownloadConfig(
{@CancelRequest() CancelToken? cancel});