fix: alignment api

This commit is contained in:
jialin
2026-05-11 19:49:21 +08:00
committed by jialin
parent 9e0dd5b003
commit b13ba0a229
33 changed files with 738 additions and 365 deletions
+13
View File
@@ -0,0 +1,13 @@
import _ from 'lodash';
export const omitPathParams = <T extends Record<string, any>>(
params: T
): Omit<T, 'namespace' | 'clusterID'> => {
return _.omit(params, [
'namespace',
'clusterID',
'page',
'perPage',
'cluster_id'
]) as Omit<T, 'namespace' | 'clusterID'>;
};