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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user