feat: 增加模板升级预览与显式升级
This commit is contained in:
1 parent
388032000a
commit
44b6f6db64
5 files changed
+114
No files matched your search
@@ -345,6 +345,18 @@ export class ApiClient {
|
||||
installAdminTemplate(templateKey: "personal" | "food"): Promise<unknown> {
|
||||
return this.request("/admin/workspace/install", { method: "POST", body: { templateKey } });
|
||||
}
|
||||
getAdminTemplateUpgradePreview(): Promise<{
|
||||
currentVersion: string;
|
||||
latestVersion: string;
|
||||
canUpgrade: boolean;
|
||||
missingModules: unknown[];
|
||||
missingFields: unknown[];
|
||||
}> {
|
||||
return this.request("/admin/workspace/template/preview");
|
||||
}
|
||||
upgradeAdminTemplate(): Promise<unknown> {
|
||||
return this.request("/admin/workspace/template/upgrade", { method: "POST" });
|
||||
}
|
||||
updateAdminModule(id: string, body: Partial<BrandModule>): Promise<BrandModule> {
|
||||
return this.request(`/admin/workspace/modules/${encodeURIComponent(id)}`, {
|
||||
method: "PATCH",
|
||||
|
||||
Reference in new issue
Block a user