feat: 增加可替换行业模板定义接口
This commit is contained in:
1 parent
2b1035dbc8
commit
c6785892ed
5 files changed
+61
No files matched your search
@@ -2,6 +2,12 @@
|
||||
"name": "@personal-brand/config",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"import": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
|
||||
@@ -1 +1,40 @@
|
||||
export const configPackageName = "personal-brand-config";
|
||||
|
||||
export type BrandTemplateKey = "personal" | "food";
|
||||
export interface BrandTemplateDefinition {
|
||||
key: BrandTemplateKey;
|
||||
name: string;
|
||||
description: string;
|
||||
serviceCategories: string[];
|
||||
trustContentTypes: string[];
|
||||
}
|
||||
export const brandTemplates: Record<BrandTemplateKey, BrandTemplateDefinition> = {
|
||||
personal: {
|
||||
key: "personal",
|
||||
name: "个人品牌",
|
||||
description: "围绕定位、信任、作品与合作建立个人品牌。",
|
||||
serviceCategories: ["consulting", "collaboration", "custom"],
|
||||
trustContentTypes: [
|
||||
"profile",
|
||||
"experience",
|
||||
"credential",
|
||||
"portfolio",
|
||||
"process",
|
||||
"testimonial",
|
||||
],
|
||||
},
|
||||
food: {
|
||||
key: "food",
|
||||
name: "餐饮模板",
|
||||
description: "适用于餐饮服务与套餐预约的行业模板。",
|
||||
serviceCategories: ["food-package", "private-chef", "custom"],
|
||||
trustContentTypes: [
|
||||
"profile",
|
||||
"experience",
|
||||
"credential",
|
||||
"portfolio",
|
||||
"process",
|
||||
"testimonial",
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user