This commit is contained in:
zwt13703
2026-07-02 14:48:05 +08:00
parent a1a314cf99
commit e558733f05
64 changed files with 3258 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import http from './index'
export const templateApi = {
list: (params?: any) => http.get('/templates', { params }),
get: (id: number) => http.get(`/templates/${id}`),
upload: (formData: FormData) => http.post('/templates/upload', formData, { headers: { 'Content-Type': 'multipart/form-data' } }),
saveParagraphs: (id: number, data: any) => http.put(`/templates/${id}/paragraphs`, data),
delete: (id: number) => http.delete(`/templates/${id}`),
}