This commit is contained in:
jxxghp 2023-07-02 00:27:57 +08:00
parent 2590721b97
commit 0a0f723c93

View File

@ -36,7 +36,7 @@ async def read_subscribes(
@router.get("/{mediaid}", summary="查询订阅", response_model=schemas.Subscribe)
async def subscribe_info_by_id(
mediaid: str,
season: int,
season: int = None,
db: Session = Depends(get_db),
_: schemas.TokenPayload = Depends(verify_token)) -> Any:
"""
@ -117,7 +117,7 @@ async def delete_subscribe(
@router.delete("/{mediaid}", summary="删除订阅", response_model=schemas.Response)
async def delete_subscribe_by_id(
mediaid: str,
season: int,
season: int = None,
db: Session = Depends(get_db),
_: schemas.TokenPayload = Depends(verify_token)
) -> Any: