feat: 增加模板示例内容导入接口
This commit is contained in:
1 parent
cd9352a849
commit
d451c93398
2 files changed
+95
No files matched your search
@@ -490,6 +490,16 @@ export class ApiClient {
|
||||
body,
|
||||
});
|
||||
}
|
||||
previewAdminSampleContent(): Promise<{
|
||||
templateKey: string;
|
||||
alreadyImported: boolean;
|
||||
counts: Record<string, number>;
|
||||
}> {
|
||||
return this.request("/admin/workspace/sample-content/preview");
|
||||
}
|
||||
importAdminSampleContent(): Promise<{ imported: boolean; counts: Record<string, number> }> {
|
||||
return this.request("/admin/workspace/sample-content/import", { method: "POST" });
|
||||
}
|
||||
getAdminTemplateUpgradePreview(): Promise<{
|
||||
currentVersion: string;
|
||||
latestVersion: string;
|
||||
|
||||
Reference in new issue
Block a user