feat(notify): 站内通知补齐完成、到期逾期与知识事件
CI / backend (push) Waiting to run

This commit is contained in:
Steven
2026-11-10 13:47:56 +08:00
parent 4b7627d70e
commit f54df70811
15 changed files with 791 additions and 32 deletions
+8
View File
@@ -112,6 +112,14 @@ class Settings(BaseSettings):
# 30 分钟够一次阅读/编辑,过期后刷新页面会重新签发。
attachment_url_ttl_seconds: int = 1800
# ── 站内提醒 ──────────────────────────────────────────
# 到期/逾期提醒是后台轮询,不引入额外组件(见 services/reminders.py)。
# 间隔决定"最晚多久能收到提醒",5 分钟对截止时间以小时计的任务足够。
reminders_enabled: bool = True
reminder_interval_seconds: int = 300
# 提前多久提醒"快到期"。默认 24 小时;改成 0 等于只提醒逾期。
reminder_due_soon_hours: int = 24
# ── 知识检索(M3)──────────────────────────────────────
# 切片大小与重叠:中文一段 600 字大约 400~600 token,够表达一个完整片段;
# 重叠 80 字是为了不把跨段的话切断(检索命中时前后文还读得懂)。