feat: 按模板要求校验信任内容发布
This commit is contained in:
1 parent
e3a4074d8e
commit
5ed06b1abe
10 files changed
+71
-16
No files matched your search
@@ -87,7 +87,13 @@ export interface TemplateAdminSection {
|
||||
export interface AdminTemplateContent {
|
||||
displayName: string;
|
||||
admin: { sections: TemplateAdminSection[] };
|
||||
trustContentTypes?: Array<{ type: string; label: string; help?: string; placeholder?: string }>;
|
||||
trustContentTypes?: Array<{
|
||||
type: string;
|
||||
label: string;
|
||||
help?: string;
|
||||
placeholder?: string;
|
||||
required?: boolean;
|
||||
}>;
|
||||
assetSlots: Array<{
|
||||
key: string;
|
||||
binding: string;
|
||||
|
||||
@@ -293,19 +293,22 @@ export const generatedTemplatePackageRegistry = [
|
||||
"type": "schedule",
|
||||
"label": "出摊与营业安排",
|
||||
"help": "说明固定出摊时间、临时营业安排或接受预订的时段。",
|
||||
"placeholder": "例如:周一至周五 17:00 - 22:30"
|
||||
"placeholder": "例如:周一至周五 17:00 - 22:30",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "coverage",
|
||||
"label": "取餐与配送范围",
|
||||
"help": "说明服务地点、取餐方式和可配送范围。",
|
||||
"placeholder": "例如:支持校内宿舍楼下配送"
|
||||
"placeholder": "例如:支持校内宿舍楼下配送",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "process",
|
||||
"label": "定制餐品流程",
|
||||
"help": "每行写一步,从提出需求到完成交付。",
|
||||
"placeholder": "例如:提交需求\n确认菜单\n制作交付"
|
||||
"placeholder": "例如:提交需求\n确认菜单\n制作交付",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "credential",
|
||||
@@ -731,12 +734,14 @@ export const generatedTemplatePackageRegistry = [
|
||||
"type": "process",
|
||||
"label": "合作流程",
|
||||
"help": "每行写一步,从初次沟通到交付完成。",
|
||||
"placeholder": "例如:需求沟通\n方案确认\n落地交付"
|
||||
"placeholder": "例如:需求沟通\n方案确认\n落地交付",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "credential",
|
||||
"label": "专业资历与方法",
|
||||
"help": "填写经验、资质、专业标准或工作方法。"
|
||||
"help": "填写经验、资质、专业标准或工作方法。",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "case",
|
||||
@@ -980,4 +985,4 @@ export const generatedTemplatePackageRegistry = [
|
||||
}
|
||||
];
|
||||
export const generatedTemplatePackageRegistryHash =
|
||||
"afbd1045ccdc7eda85bd9707ce27083ba699899f115a26a3c60459a88a5e5148";
|
||||
"f7ba069156be4fdf8f21c6e600796082ff87d5c04b0ed2a07d3b7d4ca68817b5";
|
||||
@@ -230,6 +230,7 @@ export interface TemplatePackageManifest {
|
||||
label: string;
|
||||
help?: string;
|
||||
placeholder?: string;
|
||||
required?: boolean;
|
||||
}[];
|
||||
sampleContent?: Partial<Record<BrandTemplateKey, TemplateSampleContent>>;
|
||||
}
|
||||
|
||||
@@ -282,9 +282,9 @@
|
||||
]
|
||||
},
|
||||
"trustContentTypes": [
|
||||
{ "type": "schedule", "label": "出摊与营业安排", "help": "说明固定出摊时间、临时营业安排或接受预订的时段。", "placeholder": "例如:周一至周五 17:00 - 22:30" },
|
||||
{ "type": "coverage", "label": "取餐与配送范围", "help": "说明服务地点、取餐方式和可配送范围。", "placeholder": "例如:支持校内宿舍楼下配送" },
|
||||
{ "type": "process", "label": "定制餐品流程", "help": "每行写一步,从提出需求到完成交付。", "placeholder": "例如:提交需求\n确认菜单\n制作交付" },
|
||||
{ "type": "schedule", "label": "出摊与营业安排", "help": "说明固定出摊时间、临时营业安排或接受预订的时段。", "placeholder": "例如:周一至周五 17:00 - 22:30", "required": true },
|
||||
{ "type": "coverage", "label": "取餐与配送范围", "help": "说明服务地点、取餐方式和可配送范围。", "placeholder": "例如:支持校内宿舍楼下配送", "required": true },
|
||||
{ "type": "process", "label": "定制餐品流程", "help": "每行写一步,从提出需求到完成交付。", "placeholder": "例如:提交需求\n确认菜单\n制作交付", "required": true },
|
||||
{ "type": "credential", "label": "食品安全与制作标准", "help": "填写让顾客放心的资质、卫生或制作标准。" },
|
||||
{ "type": "case", "label": "客户案例与反馈", "help": "填写代表性订单、活动案例或客户评价。" },
|
||||
{ "type": "promise", "label": "回复与服务承诺", "help": "说明回复时间、退改规则或服务承诺。" }
|
||||
|
||||
@@ -69,6 +69,7 @@ export type TemplateTrustContentType = {
|
||||
label: string;
|
||||
help?: string;
|
||||
placeholder?: string;
|
||||
required?: boolean;
|
||||
};
|
||||
|
||||
export type TemplateSampleContent = {
|
||||
|
||||
@@ -272,8 +272,8 @@
|
||||
"trustContentTypes": [
|
||||
{ "type": "schedule", "label": "服务与合作安排", "help": "说明可预约时间、服务周期或项目排期。" },
|
||||
{ "type": "coverage", "label": "服务范围与适用对象", "help": "说明服务地区、项目类型或合作边界。" },
|
||||
{ "type": "process", "label": "合作流程", "help": "每行写一步,从初次沟通到交付完成。", "placeholder": "例如:需求沟通\n方案确认\n落地交付" },
|
||||
{ "type": "credential", "label": "专业资历与方法", "help": "填写经验、资质、专业标准或工作方法。" },
|
||||
{ "type": "process", "label": "合作流程", "help": "每行写一步,从初次沟通到交付完成。", "placeholder": "例如:需求沟通\n方案确认\n落地交付", "required": true },
|
||||
{ "type": "credential", "label": "专业资历与方法", "help": "填写经验、资质、专业标准或工作方法。", "required": true },
|
||||
{ "type": "case", "label": "项目案例与客户反馈", "help": "填写代表性项目、成果或客户评价。" },
|
||||
{ "type": "promise", "label": "合作预期与响应承诺", "help": "说明回复时间、合作边界和后续跟进方式。" }
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user