feat: 增加模板组合预览接口
This commit is contained in:
1 parent
4c9f9a05d0
commit
6c049b8672
3 files changed
+49
No files matched your search
@@ -405,6 +405,30 @@ export class ApiClient {
|
||||
}> {
|
||||
return this.request("/public/templates");
|
||||
}
|
||||
previewPublicTemplateCombination(
|
||||
industry: string,
|
||||
visual: string,
|
||||
): Promise<{
|
||||
industry: BrandTemplateDefinition;
|
||||
visual: {
|
||||
key: string;
|
||||
version: string;
|
||||
name: string;
|
||||
description: string;
|
||||
variants: Record<string, string>;
|
||||
theme: { colors: Record<string, string> };
|
||||
};
|
||||
runtime: {
|
||||
schemaVersion: string;
|
||||
modules: Array<{ key: string; type: string; title: string; variant: string }>;
|
||||
capabilities: Array<{ key: string; version: string }>;
|
||||
theme: unknown;
|
||||
};
|
||||
}> {
|
||||
return this.request(
|
||||
`/public/templates/preview?industry=${encodeURIComponent(industry)}&visual=${encodeURIComponent(visual)}`,
|
||||
);
|
||||
}
|
||||
getPublicOffering(id: string): Promise<Offering> {
|
||||
return this.request(`/public/offerings/${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user