This commit is contained in:
Kevin Wong
2026-02-02 17:16:07 +08:00
parent 7bfd6bf862
commit 6e58f4bbe7
11 changed files with 1012 additions and 19 deletions

View File

@@ -9,6 +9,10 @@ import os
import aiofiles
from pathlib import Path
from loguru import logger
from pydantic import BaseModel
from typing import Optional
import httpx
router = APIRouter()
@@ -329,3 +333,6 @@ async def delete_material(material_id: str, current_user: dict = Depends(get_cur
return {"success": True, "message": "素材已删除"}
except Exception as e:
raise HTTPException(500, f"删除失败: {str(e)}")