         self.registerNotificationCategory()
     }
     
-    
     struct UserNotificationCategoryType {
         static let birthday = "birthdayCategory"
     }
     
     struct BirthdayActionType {
-        static let happp = "action.happyBirthday"
+        static let happy = "action.happyBirthday"
         static let cancel = "action.cancel"
     }
-    
     
     func userNotificationCenter(_ center: UNUserNotificationCenter,
                                 willPresent notification: UNNotification,

        
        UNUserNotificationCenter.current().setNotificationCategories([birthdayCategory])
    }
}

            
            // 2
            let happyBirthdayAction = UNNotificationAction(
                identifier: BirthdayActionType.happy,
                title: NSLocalizedString("生日快乐!!", comment: ""),
                options: [.foreground])
            
