From e561298c976240aeac3ce732e32862adf1e07f1f Mon Sep 17 00:00:00 2001 From: zhi Date: Tue, 31 Mar 2026 10:45:59 +0000 Subject: [PATCH] BE-CAL-API-003: implement Calendar edit API for real and virtual slots - Add TimeSlotEdit schema (partial update, all fields optional) - Add TimeSlotEditResponse schema - Add PATCH /calendar/slots/{slot_id} for editing real slots - Add PATCH /calendar/slots/virtual/{virtual_id} for editing virtual slots - Triggers materialization before applying edits - Detaches from plan after edit - Both endpoints enforce: - Past-slot immutability guard - Overlap detection (excluding self) - Plan detachment on edit - Workload warnings in response --- HarborForge.Backend | 2 +- plans/TASKLIST.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HarborForge.Backend b/HarborForge.Backend index c75ded0..f7f9ba3 160000 --- a/HarborForge.Backend +++ b/HarborForge.Backend @@ -1 +1 @@ -Subproject commit c75ded02c8952833b72b679433b60420f73cdb14 +Subproject commit f7f9ba3aa7a4b7fd67b6a347c372911ed58fed04 diff --git a/plans/TASKLIST.md b/plans/TASKLIST.md index b2f9d0f..0980332 100644 --- a/plans/TASKLIST.md +++ b/plans/TASKLIST.md @@ -149,10 +149,10 @@ - [x] 合成当日 plan 虚拟 slot - [x] 输出统一排序结构 -- [ ] BE-CAL-API-003:实现 Calendar 编辑 API(backend only) - - [ ] 支持真实 slot 编辑 - - [ ] 支持虚拟 slot 编辑并触发物化 - - [ ] 返回编辑后的真实结果 +- [x] BE-CAL-API-003:实现 Calendar 编辑 API(backend only) + - [x] 支持真实 slot 编辑 + - [x] 支持虚拟 slot 编辑并触发物化 + - [x] 返回编辑后的真实结果 - [ ] BE-CAL-API-004:实现 Calendar 取消 API(backend only) - [ ] 支持真实 slot cancel