Pass Slip and Leave approval/rejection push notifications

This commit is contained in:
2026-03-15 22:36:33 +08:00
parent 6fd3b66251
commit 885b543fb5
5 changed files with 421 additions and 10 deletions
+6
View File
@@ -7,6 +7,8 @@ class NotificationItem {
required this.actorId,
required this.ticketId,
required this.taskId,
this.leaveId,
this.passSlipId,
required this.itServiceRequestId,
required this.messageId,
required this.type,
@@ -19,6 +21,8 @@ class NotificationItem {
final String? actorId;
final String? ticketId;
final String? taskId;
final String? leaveId;
final String? passSlipId;
final String? itServiceRequestId;
final int? messageId;
final String type;
@@ -34,6 +38,8 @@ class NotificationItem {
actorId: map['actor_id'] as String?,
ticketId: map['ticket_id'] as String?,
taskId: map['task_id'] as String?,
leaveId: map['leave_id'] as String?,
passSlipId: map['pass_slip_id'] as String?,
itServiceRequestId: map['it_service_request_id'] as String?,
messageId: map['message_id'] as int?,
type: map['type'] as String? ?? 'mention',