feat: 添加中国节假日感知定时功能

- 新增 chinese_holidays 表,通过 timor.tech API 同步节假日数据
- 修正 holiday 字段解读:holiday=true → 休息日,holiday=false → 调休工作日
- 工作日 8:00-22:00 每小时爬取,周末/节假日/夜间自动跳过
- 新增 /api/v1/holidays/sync 和 /api/v1/holidays/today 接口
- 企微菜单新增「同步节假日」按钮,支持手动触发同步
This commit is contained in:
2026-05-09 18:27:27 +08:00
parent c3e06c997f
commit 1f18d2ec87
12 changed files with 381 additions and 15 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class Settings(BaseSettings):
# 定时任务
scheduler_enabled: bool = True
scheduler_cron: str = "0 8,14,18 * * *"
scheduler_cron: str = "0 8-21 * * *"
# Markdown
markdown_enabled: bool = True