feat: 前端项目 API 接入 Duration Budget 汇总查询
This commit is contained in:
1 parent
6cac865e99
commit
622fe8ddf9
1 file changed
+3
@@ -7,6 +7,7 @@ import type {
|
||||
Project,
|
||||
ProjectDetail,
|
||||
ProjectStageReadiness,
|
||||
ProjectDurationBudgetSummary,
|
||||
UpdateProjectInput
|
||||
} from './types'
|
||||
|
||||
@@ -15,6 +16,8 @@ export const projectsApi = {
|
||||
list: (signal?: AbortSignal) => request<Project[]>('/projects', { signal }),
|
||||
detail: (id: string, signal?: AbortSignal) =>
|
||||
request<ProjectDetail>(`/projects/${encodeURIComponent(id)}`, { signal }),
|
||||
durationBudget: (id: string, signal?: AbortSignal) =>
|
||||
request<ProjectDurationBudgetSummary>(`/projects/${encodeURIComponent(id)}/duration-budget`, { signal }),
|
||||
stageReadiness: (id: string, signal?: AbortSignal) =>
|
||||
request<ProjectStageReadiness>(`/projects/${encodeURIComponent(id)}/stage-readiness`, { signal }),
|
||||
create: (input: CreateProjectInput) =>
|
||||
|
||||
Reference in new issue
Block a user