feat: 让模板中心由注册表驱动
This commit is contained in:
1 parent
a30c939f90
commit
0d98d23892
4 files changed
+38
-7
No files matched your search
@@ -392,6 +392,19 @@ export class ApiClient {
|
||||
getPublicTemplate(key: "personal" | "food"): Promise<BrandTemplateDefinition> {
|
||||
return this.request(`/public/templates/${key}`);
|
||||
}
|
||||
listPublicTemplates(): Promise<{
|
||||
industries: BrandTemplateDefinition[];
|
||||
visuals: Array<{
|
||||
key: string;
|
||||
version: string;
|
||||
name: string;
|
||||
description: string;
|
||||
variants: Record<string, string>;
|
||||
theme: unknown;
|
||||
}>;
|
||||
}> {
|
||||
return this.request("/public/templates");
|
||||
}
|
||||
getPublicOffering(id: string): Promise<Offering> {
|
||||
return this.request(`/public/offerings/${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user