feat: 产品管理 — 当前位置显示真实姓名 + 编辑弹窗 + 删除确认
This commit is contained in:
@ -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))
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 宏观状态更新 — 扫码定调
|
||||
# ============================================================
|
||||
|
||||
Reference in New Issue
Block a user