Initial commit: 浼佷笟寰俊 AI 鏈哄櫒浜哄姪鐞?MVP
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
12
backend/app/routers/knowledge.py
Normal file
12
backend/app/routers/knowledge.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""知识库上传占位:先落本地卷/对象存储占位。"""
|
||||
from fastapi import APIRouter, UploadFile
|
||||
from app.logging_config import get_trace_id
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.post("/upload")
|
||||
async def upload_file(file: UploadFile):
|
||||
"""上传知识库文件,占位落盘。"""
|
||||
# 占位:保存到 backend/uploads 或配置的存储
|
||||
return {"code": 0, "message": "ok", "data": {"filename": file.filename}, "trace_id": get_trace_id()}
|
||||
Reference in New Issue
Block a user