From 73bdca282cd2a3c769443eae055291f127922087 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 5 May 2024 13:51:49 +0800 Subject: [PATCH] fix api desc --- app/api/endpoints/download.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/endpoints/download.py b/app/api/endpoints/download.py index b2545226..ab4c7920 100644 --- a/app/api/endpoints/download.py +++ b/app/api/endpoints/download.py @@ -23,13 +23,13 @@ def read( return DownloadChain().downloading() -@router.post("/", summary="添加下载", response_model=schemas.Response) +@router.post("/", summary="添加下载(含媒体信息)", response_model=schemas.Response) def download( media_in: schemas.MediaInfo, torrent_in: schemas.TorrentInfo, current_user: User = Depends(get_current_active_user)) -> Any: """ - 添加下载任务 + 添加下载任务(含媒体信息) """ # 元数据 metainfo = MetaInfo(title=torrent_in.title, subtitle=torrent_in.description) @@ -51,12 +51,12 @@ def download( }) -@router.post("/add", summary="添加下载", response_model=schemas.Response) +@router.post("/add", summary="添加下载(不含媒体信息)", response_model=schemas.Response) def add( torrent_in: schemas.TorrentInfo, current_user: User = Depends(get_current_active_user)) -> Any: """ - 添加下载任 + 添加下载任务(不含媒体信息) """ # 元数据 metainfo = MetaInfo(title=torrent_in.title, subtitle=torrent_in.description)