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