完成文档类型增删改查
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user