This commit is contained in:
Baobhan Sith
2025-04-24 10:13:05 +08:00
parent a805d02339
commit 53279f28c6
4 changed files with 21 additions and 10 deletions
@@ -110,8 +110,8 @@ export const settingsController = {
await settingsService.setFocusSwitcherSequence(fullConfig);
console.log('[Controller] settingsService.setFocusSwitcherSequence completed successfully.');
console.log('[Controller] Logging audit action: FOCUS_SWITCHER_SEQUENCE_UPDATED');
auditLogService.logAction('FOCUS_SWITCHER_SEQUENCE_UPDATED', { config: fullConfig }); // +++ 修改审计日志内容 +++
console.log('[Controller] Logging audit action: FOCUS_SWITCHER_SEQUENCE_UPDATED'); // Keep console log for now if needed
// auditLogService.logAction('FOCUS_SWITCHER_SEQUENCE_UPDATED', { config: fullConfig }); // Removed specific log
console.log('[Controller] Sending success response.');
res.status(200).json({ message: '焦点切换顺序已成功更新' });
+4 -4
View File
@@ -31,16 +31,16 @@ export type AuditLogActionType =
// Settings
| 'SETTINGS_UPDATED' // General settings update
| 'IP_WHITELIST_UPDATED' // Specific setting update
| 'FOCUS_SWITCHER_SEQUENCE_UPDATED' // +++ 新增:焦点切换顺序更新 +++
// | 'FOCUS_SWITCHER_SEQUENCE_UPDATED' // Removed
// Notifications
| 'NOTIFICATION_SETTING_CREATED'
| 'NOTIFICATION_SETTING_UPDATED'
| 'NOTIFICATION_SETTING_DELETED'
// API Keys
| 'API_KEY_CREATED'
| 'API_KEY_DELETED'
// API Keys (Removed from audit log types)
// | 'API_KEY_CREATED'
// | 'API_KEY_DELETED'
// SFTP (Consider logging specific actions if needed, e.g., UPLOAD, DOWNLOAD, DELETE_FILE)
| 'SFTP_ACTION' // Generic SFTP action for now