feat: 产品管理 — 当前位置显示真实姓名 + 编辑弹窗 + 删除确认

This commit is contained in:
2026-08-07 15:38:01 +08:00
parent d3d501dfeb
commit bc43b5a732
5 changed files with 254 additions and 180 deletions

View File

@ -103,6 +103,16 @@ async def update_product_endpoint(
return await product_service.update_product(db, uuid.UUID(product_id), data)
@router.delete("/{product_id}", status_code=204)
async def delete_product_endpoint(
product_id: str,
db: AsyncSession = Depends(get_db),
):
"""删除产品及其关联任务"""
import uuid
await product_service.delete_product(db, uuid.UUID(product_id))
# ============================================================
# 宏观状态更新 — 扫码定调
# ============================================================