feat: 增加视觉模板预览与配置合并
This commit is contained in:
1 parent
facf261bd6
commit
4810ed7bde
3 files changed
+56
-2
No files matched your search
@@ -366,6 +366,18 @@ export class ApiClient {
|
||||
getAdminBrand(): Promise<BrandProfile> {
|
||||
return this.request("/admin/config/brand");
|
||||
}
|
||||
getAdminVisualTemplatePreview(): Promise<{
|
||||
current: {
|
||||
key: string;
|
||||
version: string;
|
||||
name: string;
|
||||
theme: unknown;
|
||||
variants: Record<string, string>;
|
||||
} | null;
|
||||
available: string[];
|
||||
}> {
|
||||
return this.request("/admin/config/visual-template/preview");
|
||||
}
|
||||
updateAdminBrand(body: BrandUpdate): Promise<BrandProfile> {
|
||||
return this.request("/admin/config/brand", { method: "PATCH", body });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user