refactor: gpu service API alignment

This commit is contained in:
jialin
2026-05-25 22:42:02 +08:00
committed by jialin
parent 81c7e2ee61
commit 88ab927755
90 changed files with 3247 additions and 2023 deletions
@@ -1,16 +1,17 @@
import { useQueryData } from '@gpustack/core-ui';
import { useCallback } from 'react';
import { updateGPUServicePublicKey } from '../apis';
import { FormData, ListItem } from '../types';
import { FormData, ListItem } from '../config/types';
interface UpdateSshkeyParams {
data: FormData;
id: number;
data: Omit<FormData, 'name'>;
}
export default function useUpdateSshkey() {
const fetchDetail = useCallback(
(params: UpdateSshkeyParams) =>
updateGPUServicePublicKey({ data: params.data }),
updateGPUServicePublicKey({ id: params.id, data: params.data }),
[]
);