跳轉到主要內容
notifications 儲存顯示在使用者專案儀表板頂端的通知。一份文件是給一位使用者的一則通知,由其 key 識別。只有 notifications 服務直接存取該集合(services/notifications/app/js/Notifications.js);web 和 third-party-datastore 呼叫它的 HTTP API。沒有 Mongoose 結構描述。

欄位

誰寫入

CE 和我們的模組建立的通知: NotificationsBuilder.mjs 也為群組邀請、機構隸屬、訂閱和舊除錯專案建構 key。它們的呼叫端位於訂閱和機構相關程式碼中,而舊除錯專案檢查只在 isSaas 時執行(services/web/app/src/Features/Project/ProjectListController.mjs:234-236)。

誰讀取

索引

說明

  • 已讀通知不會被刪除:只會移除 templateKey。由於文件仍保留 key,之後對同一 key 不帶 forceCreate 的 addNotification 不會產生任何效果(Notifications.js:21-24)。
  • /key/:key 路由只依 key 操作,跨越所有使用者(Notifications.js:76-100)。
  • 如果 web 沒有 apis.notifications.url,它既不建立也不讀取通知(NotificationsHandler.mjs:17、:41)。
最後修改於 2026年11月20日