feat: restructure notification services

This commit is contained in:
fawney19
2026-05-22 01:45:46 +08:00
parent d5e64d6ad9
commit 504c1ccb37
28 changed files with 1941 additions and 460 deletions
+8
View File
@@ -1805,6 +1805,14 @@ registerDynamicRoute('GET', '/api/admin/system/configs/:configKey', async (_conf
if (!entry) {
throw { response: createMockResponse({ detail: `配置项 '${key}' 不存在` }, 404) }
}
if (key === 'module.server_chan_push.send_key') {
return createMockResponse({
key: entry.key,
value: null,
description: entry.description,
is_set: typeof entry.value === 'string' && entry.value.trim() !== '',
})
}
return createMockResponse({ key: entry.key, value: entry.value, description: entry.description })
})