mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-01-31 11:46:16 +08:00
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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user