完成文档类型增删改查

This commit is contained in:
2025-04-11 18:45:03 +08:00
parent d54d0f25c6
commit 8177b4195f
18 changed files with 3298 additions and 371 deletions
+6
View File
@@ -64,16 +64,22 @@ export async function getDocumentType(id: string): Promise<DocumentType> {
}
// 创建文档类型
// 请使用 ~/api/document-types/document-types.ts 中的实现
/*
export async function createDocumentType(documentType: Omit<DocumentType, 'id' | 'createdAt' | 'updatedAt'>): Promise<DocumentType> {
const url = buildUrl('/api/document-types');
return apiRequest<DocumentType>(url, 'POST', documentType);
}
*/
// 更新文档类型
// 请使用 ~/api/document-types/document-types.ts 中的实现
/*
export async function updateDocumentType(id: string, documentType: Partial<Omit<DocumentType, 'id' | 'createdAt' | 'updatedAt'>>): Promise<DocumentType> {
const url = buildUrl(`/api/document-types/${id}`);
return apiRequest<DocumentType>(url, 'PUT', documentType);
}
*/
// 删除文档类型
export async function deleteDocumentType(id: string): Promise<void> {