Compare commits

...

2 Commits

Author SHA1 Message Date
zhi
77d8f6098f BE-CAL-API-001: Update submodule ref + mark task complete 2026-03-31 05:46:03 +00:00
zhi
18e50156df 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
2026-03-31 05:45:51 +00:00
2 changed files with 5 additions and 5 deletions

View File

@@ -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