Class InAppNotificationBase

java.lang.Object
io.leandev.appfuse.notification.inapp.InAppNotificationBase

@MappedSuperclass public abstract class InAppNotificationBase extends Object

站內信通知的欄位 / 行為基類(Phase 3 IN_APP 通道的遞送載體)

IN_APP 通道「遞送」即寫一列站內信;使用者經 app 的 REST API 讀取(列表 / 未讀數 / 標記已讀)。

ADR-017:框架 jar 不擁有 @Entity——本類為 @MappedSuperclass,提供欄位與行為;具體 @Entity(表名、索引、約束、 租戶性)由應用宣告(繼承本類)。租戶欄位不在此——tenant 專案的應用 entity 以 @TenantId (Hibernate 原生 discriminator)宣告租戶,ownership 專案則無此欄位。

Since:
4.0.0
  • Constructor Details

    • InAppNotificationBase

      public InAppNotificationBase()
  • Method Details

    • markRead

      public void markRead(Instant readAt)
      標記為已讀。
      Parameters:
      readAt - 已讀時間點;由應用層的 Clock 提供