feat(editor): update

This commit is contained in:
2025-12-31 14:50:18 +08:00
parent 20e1a2fa19
commit 984770c6a1
14 changed files with 303 additions and 117 deletions

View File

@@ -7,6 +7,7 @@ export const creatorApi = {
const qs = new URLSearchParams(params).toString();
return request(`/creator/contents?${qs}`);
},
getContent: (id) => request(`/creator/contents/${id}`),
createContent: (data) => request('/creator/contents', { method: 'POST', body: data }),
updateContent: (id, data) => request(`/creator/contents/${id}`, { method: 'PUT', body: data }),
deleteContent: (id) => request(`/creator/contents/${id}`, { method: 'DELETE' }),