Skip to content

Thông báo ​

Trang sinh tự động

Phần nghiệp vụ viết tay; API, dữ liệu, quyền, đường dẫn và file nguồn do bộ sinh điền từ source tại ad83b0aea.

Làm gì ​

Mẫu thông báo, deep link và theo dõi việc gửi. Thông báo đi qua outbox nên gửi lại được và kiểm được.

Quy mô ​

Domain APInotification
Query / Mutation3 / 1
Nguồn dữ liệu—
Bảng0
Luật phân quyền2
Đường dẫn Web Admin4

Thao tác (mutation) ​

MutationDomainMô tả
markNotificationReadnotificationMark one of the caller's notifications read. Idempotent: the first read

Phép đọc (query) ​

QueryDomainMô tả
myNotificationsnotificationThe caller's own notifications, newest first. notification.read (own).
notificationEventnotificationOne ledger entry by id; not_found when there is none. Requires notification_event.read.
notificationEventsnotificationThe in-app notification ledger, newest first. Filters: recipient app, kind,

Quyền ​

MãQuyềnỨng dụngVai tròPhạm viTrạng thái
NTF-01notification.readAPP_USERuserOWNPROPOSED
NTF-02notification.mark_readAPP_USERuserOWNPROPOSED

Danh sách đầy đủ và cách đọc các cờ: Ma trận quyền.

Giao diện Web Admin ​

Đường dẫnHằng số
/notificationsNOTIFICATIONS
/notifications/:idNOTIFICATION_DETAIL
/notifications/deep-linksNOTIFICATION_DEEP_LINKS
/notifications/templatesNOTIFICATION_TEMPLATES

File nguồn ​

Backend:

  • code/apps/api/supabase/functions/graphql/domains/notification/

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17