Skip to content

Notification Module

Mục đích

Quản lý luồng gửi thông báo của hệ thống: thông báo nội bộ, push/in-app, email và các bộ template tương ứng. Đây là lớp vận hành truyền thông hệ thống dành cho IT/ops thay vì người dùng tuyến đầu.

Quy mô

  • 12 FE pages
  • 10 FE components
  • 1 GraphQL file
  • 4 nhóm nghiệp vụ chính

Actors & Permissions

Nhóm chức năngRoles chínhScope
Notification vận hànhITLeader, ITStaffSystem-wide
Email vận hànhITLeader, ITStaffSystem-wide
Template quản trịITLeader, ITStaffSystem-wide

Feature Groups

GroupMô tảPages
Notification RequestsDanh sách thông báo, tạo mới, sửa, xem chi tiếtNotifications, NotificationCreate, NotificationDetail
Notification TemplatesCRUD template thông báo in-app/pushNotificationTemplates, NotificationTemplateCreate, NotificationTemplateDetail
Email RequestsDanh sách email gửi, tạo email, xem chi tiếtEmails, EmailCreate, EmailDetail
Email TemplatesCRUD template emailEmailTemplates, EmailTemplateCreate, EmailTemplateDetail

Liên kết Modules

  • settings — cấu hình template notification, SMS, ZNS
  • cms — campaign/content có thể kích hoạt luồng gửi
  • auth — notification liên quan session, đăng nhập, reset mật khẩu
  • user — audience/recipient thường là account, customer, employee

Backend Services

ServiceVai trò
notification-apiGửi email, SMS, push và scheduler dọn dẹp/gửi batch
notification-v2-apiXử lý ZNS, scheduled task, messenger integrations
controller (Hasura)CRUD template, request records, function thống kê message

Databases

DBKey tables / functions
notificationnotification_template, email_template, các search/stats functions cho message user
default / ecommerceNguồn recipient, audience, trigger data

Đặc điểm kiến trúc

  • module.ts có route đầy đủ nhưng phần navigation đang bị comment; module này có xu hướng được truy cập theo route trực tiếp hoặc từ flow quản trị.
  • Frontend có NotificationListener, NotificationButton, useOneSignal, cho thấy module vừa có trang quản trị vừa có runtime listener.
  • Hệ thống đang song song dùng notification-apinotification-v2-api, phản ánh hai thế hệ tích hợp khác nhau.

Ghi chú coverage