From 18e50156df2e21c2d666918bd1203ab898bc4fc4 Mon Sep 17 00:00:00 2001 From: zhi Date: Tue, 31 Mar 2026 05:45:51 +0000 Subject: [PATCH] BE-CAL-API-001: Implement single slot creation API - Add TimeSlotCreate, TimeSlotResponse, TimeSlotCreateResponse schemas - Add SlotConflictItem, SlotTypeEnum, EventTypeEnum, SlotStatusEnum to schemas - Add POST /calendar/slots endpoint with: - Overlap detection (409 on conflict) - Workload warning computation (advisory, returned in response) - Support for event_type + event_data (job/system/entertainment) - Default date to today if not provided - Add _slot_to_response helper for ORM -> schema conversion --- plans/TASKLIST.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plans/TASKLIST.md b/plans/TASKLIST.md index 0d38e8d..c85bb91 100644 --- a/plans/TASKLIST.md +++ b/plans/TASKLIST.md @@ -139,10 +139,10 @@ ## D. HarborForge.Backend - Calendar API -- [ ] BE-CAL-API-001:实现单次日程创建 API(backend only) - - [ ] 创建 slot - - [ ] 支持 job/system/event_data - - [ ] 接入 overlap 与 workload warning +- [x] BE-CAL-API-001:实现单次日程创建 API(backend only) + - [x] 创建 slot + - [x] 支持 job/system/event_data + - [x] 接入 overlap 与 workload warning - [ ] BE-CAL-API-002:实现某日 Calendar 查询 API(backend only) - [ ] 返回真实 slot