信息架构/菜单框架大重构-20260109

This commit is contained in:
Cheng Zhou
2026-01-09 11:19:04 +08:00
parent ba3cf95b8a
commit 9021c7fe2b
188 changed files with 7632 additions and 11658 deletions
+16
View File
@@ -0,0 +1,16 @@
import { apiDelete, apiGet, apiPatch, apiPost } from "./axios";
export const listKnowledgeNotes = (studyId: string, params?: Record<string, any>) =>
apiGet(`/api/v1/studies/${studyId}/knowledge/notes`, { params });
export const getKnowledgeNote = (studyId: string, noteId: string) =>
apiGet(`/api/v1/studies/${studyId}/knowledge/notes/${noteId}`);
export const createKnowledgeNote = (studyId: string, payload: Record<string, any>) =>
apiPost(`/api/v1/studies/${studyId}/knowledge/notes`, payload);
export const updateKnowledgeNote = (studyId: string, noteId: string, payload: Record<string, any>) =>
apiPatch(`/api/v1/studies/${studyId}/knowledge/notes/${noteId}`, payload);
export const deleteKnowledgeNote = (studyId: string, noteId: string) =>
apiDelete(`/api/v1/studies/${studyId}/knowledge/notes/${noteId}`);