Appearance
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ăng | Roles chính | Scope |
|---|---|---|
| Notification vận hành | ITLeader, ITStaff | System-wide |
| Email vận hành | ITLeader, ITStaff | System-wide |
| Template quản trị | ITLeader, ITStaff | System-wide |
Feature Groups
| Group | Mô tả | Pages |
|---|---|---|
| Notification Requests | Danh sách thông báo, tạo mới, sửa, xem chi tiết | Notifications, NotificationCreate, NotificationDetail |
| Notification Templates | CRUD template thông báo in-app/push | NotificationTemplates, NotificationTemplateCreate, NotificationTemplateDetail |
| Email Requests | Danh sách email gửi, tạo email, xem chi tiết | Emails, EmailCreate, EmailDetail |
| Email Templates | CRUD template email | EmailTemplates, 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
| Service | Vai trò |
|---|---|
| notification-api | Gửi email, SMS, push và scheduler dọn dẹp/gửi batch |
| notification-v2-api | Xử lý ZNS, scheduled task, messenger integrations |
| controller (Hasura) | CRUD template, request records, function thống kê message |
Databases
| DB | Key tables / functions |
|---|---|
| notification | notification_template, email_template, các search/stats functions cho message user |
| default / ecommerce | Nguồn recipient, audience, trigger data |
Đặc điểm kiến trúc
module.tscó route đầy đủ nhưng phầnnavigationđ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-apivànotification-v2-api, phản ánh hai thế hệ tích hợp khác nhau.
Ghi chú coverage
- Domain split hiện có: