[优化] 添加清理历史快照功能

This commit is contained in:
ryan
2026-05-25 16:41:07 +08:00
parent 4f698be0a5
commit 83a426d3d6
6 changed files with 197 additions and 10 deletions
@@ -38,3 +38,10 @@ export function activateConfigVersion(id: number) {
method: 'POST',
});
}
export function cleanupConfigVersions(payload: { keep_count: number }) {
return apiRequest<{ deleted_count: number }>('/config-versions/cleanup', {
method: 'POST',
body: JSON.stringify(payload),
});
}