This commit is contained in:
laodaming 2023-10-27 10:42:52 +08:00
parent ebd7c05523
commit 5b4ea9995b

View File

@ -97,31 +97,31 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
returnData.MaterialData.Phone = Phone{ returnData.MaterialData.Phone = Phone{
IfShow: v.Visible, IfShow: v.Visible,
Text: v.Text, Text: v.Text,
DefaultValue: "000 xxx xxx 1111", DefaultValue: "your phone",
} }
case "Address": //地址 case "Address": //地址
returnData.MaterialData.Address = Address{ returnData.MaterialData.Address = Address{
IfShow: v.Visible, IfShow: v.Visible,
Text: v.Text, Text: v.Text,
DefaultValue: "USA", DefaultValue: "your address",
} }
case "Website": case "Website":
returnData.MaterialData.Website = Website{ returnData.MaterialData.Website = Website{
IfShow: v.Visible, IfShow: v.Visible,
Text: v.Text, Text: v.Text,
DefaultValue: "https://www.xxxxxx.com", DefaultValue: "your website",
} }
case "QRcode": case "QRcode":
returnData.MaterialData.QRcode = QRcode{ returnData.MaterialData.QRcode = QRcode{
IfShow: v.Visible, IfShow: v.Visible,
Text: v.Text, Text: v.Text,
DefaultValue: "qrcode xxxxxxx", DefaultValue: "your qrcode content",
} }
case "Slogan": case "Slogan":
returnData.MaterialData.Slogan = Slogan{ returnData.MaterialData.Slogan = Slogan{
IfShow: v.Visible, IfShow: v.Visible,
Text: v.Text, Text: v.Text,
DefaultValue: "slogan xxxxxxx", DefaultValue: "your slogan",
} }
} }
} }