feat: 更新后端平台模块、前端组件及构建产物,新增工作计划文档
- 更新 backend 平台 API endpoints 及 platform_store - 更新前端 ComputeNodesView、DataProcessCreateView、FineTuneCreateView 等组件 - 更新前端 API 模块(compute、fineTune) - 重构 frontend/dist 构建产物(新 hash) - 新增 docs/2026-07-24-work-plan.md 工作计划文档 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -77,6 +77,16 @@ export interface ResourceReplica {
|
||||
create_time: string
|
||||
}
|
||||
|
||||
export interface ResourceSyncJob {
|
||||
id: string
|
||||
target_node_id: string
|
||||
resources?: unknown
|
||||
status: string
|
||||
progress: number
|
||||
create_time?: string
|
||||
completed_at?: string
|
||||
}
|
||||
|
||||
export const getComputeNodes = () => get<ComputeNode[]>('/compute/nodes')
|
||||
|
||||
export const createComputeNode = (data: ComputeNodePayload) =>
|
||||
@@ -104,7 +114,9 @@ export const checkNodeReplicaDrift = (id: string) =>
|
||||
get<{ node_id: string; items: ResourceReplica[]; drifted: number }>(`/compute/nodes/${id}/replicas/drift`)
|
||||
|
||||
export const repairNodeReplicas = (id: string, replicaIds?: string[]) =>
|
||||
post<{ sync: unknown; replicas: ResourceReplica[]; failed: Array<{ replica_id: string; error: string }> }>(
|
||||
post<{ sync: ResourceSyncJob; replicas: ResourceReplica[]; failed: Array<{ replica_id: string; error: string }>; async?: boolean }>(
|
||||
`/compute/nodes/${id}/replicas/repair`,
|
||||
replicaIds?.length ? { replica_ids: replicaIds } : {},
|
||||
)
|
||||
|
||||
export const getComputeSyncJob = (id: string) => get<ResourceSyncJob>(`/compute/sync-jobs/${id}`)
|
||||
|
||||
Reference in New Issue
Block a user