|
|
@@ -1,4 +1,4 @@ |
|
|
|
import { fetchApi } from '@/utils/request'; |
|
|
|
import { fetchApi, wrapErrorHint } from '@/utils/request'; |
|
|
|
import { firstCharToLowerCase, firstCharToUpperCase } from '@/utils/tool'; |
|
|
|
|
|
|
|
export async function createTemplate(params) { |
|
|
@@ -15,4 +15,14 @@ export async function uploadXmind(file) { |
|
|
|
return await fetchApi('template/uploadingXmind', file, { headers: { |
|
|
|
'Content-Type': 'application/octet-stream', |
|
|
|
} }); |
|
|
|
} |
|
|
|
|
|
|
|
export async function queryTemplateById(templateId) { |
|
|
|
const res = await fetchApi('template/queryTemplateByTemplateId', { id: templateId }); |
|
|
|
return wrapErrorHint(res); |
|
|
|
} |
|
|
|
|
|
|
|
export async function updateTemplate(params) { |
|
|
|
const res = await fetchApi('template/updateTemplate', params); |
|
|
|
return wrapErrorHint(res); |
|
|
|
} |