refactor: 抽离 AI pipeline 与调度共享能力逻辑

This commit is contained in:
fawney19
2026-04-10 01:46:14 +08:00
parent b901a6ffc7
commit 5014e2f5fd
255 changed files with 15057 additions and 3115 deletions
+6 -1
View File
@@ -155,7 +155,12 @@ export const cacheApi = {
const response = await api.get('/api/admin/monitoring/cache/affinities', {
params: keyword ? { keyword } : undefined
})
return response.data.data
const data = response.data.data ?? {}
return {
items: data.items ?? [],
total: data.meta?.total ?? data.items?.length ?? 0,
matched_user_id: data.matched_user_id ?? null
}
}
}