feat(notifications): add WeChat Work (WeChat Enterprise) notification support

- Add wecom notification channel configuration to mock notification settings
- Initialize wecom with disabled state and empty webhook URL by default
- Update notification settings response to include wecom configuration
- Enable WeChat Work as an alternative notification channel alongside Discord
This commit is contained in:
yyhuni
2026-01-10 10:29:33 +08:00
parent 2ee9b5ffa2
commit 0532d7c8b8

View File

@@ -9,6 +9,10 @@ export const mockNotificationSettings: NotificationSettings = {
enabled: true,
webhookUrl: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnop',
},
wecom: {
enabled: false,
webhookUrl: '',
},
categories: {
scan: true,
vulnerability: true,
@@ -30,6 +34,7 @@ export function updateMockNotificationSettings(
return {
message: 'Notification settings updated successfully',
discord: mockNotificationSettings.discord,
wecom: mockNotificationSettings.wecom,
categories: mockNotificationSettings.categories,
}
}