Skip to content

Commit 0532d7c

Browse files
author
yyhuni
committed
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
1 parent 2ee9b5f commit 0532d7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/mock/data/notification-settings.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export const mockNotificationSettings: NotificationSettings = {
99
enabled: true,
1010
webhookUrl: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnop',
1111
},
12+
wecom: {
13+
enabled: false,
14+
webhookUrl: '',
15+
},
1216
categories: {
1317
scan: true,
1418
vulnerability: true,
@@ -30,6 +34,7 @@ export function updateMockNotificationSettings(
3034
return {
3135
message: 'Notification settings updated successfully',
3236
discord: mockNotificationSettings.discord,
37+
wecom: mockNotificationSettings.wecom,
3338
categories: mockNotificationSettings.categories,
3439
}
3540
}

0 commit comments

Comments
 (0)