Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop

This commit is contained in:
momo
2023-11-23 15:37:51 +08:00
3 changed files with 11 additions and 17 deletions

View File

@@ -23,31 +23,26 @@ type QRcode struct {
IfShow bool `json:"if_show"`
UserDisabled bool `json:"user_disabled"`
Text string `json:"text"`
DefaultValue string `json:"default_value"`
}
type Website struct {
IfShow bool `json:"if_show"`
UserDisabled bool `json:"user_disabled"`
Text string `json:"text"`
DefaultValue string `json:"default_value"`
}
type Address struct {
IfShow bool `json:"if_show"`
UserDisabled bool `json:"user_disabled"`
Text string `json:"text"`
DefaultValue string `json:"default_value"`
}
type Slogan struct {
IfShow bool `json:"if_show"`
UserDisabled bool `json:"user_disabled"`
Text string `json:"text"`
DefaultValue string `json:"default_value"`
}
type Phone struct {
IfShow bool `json:"if_show"`
UserDisabled bool `json:"user_disabled"`
Text string `json:"text"`
DefaultValue string `json:"default_value"`
}
type Logo struct {
Material string `json:"material"`
@@ -64,7 +59,7 @@ type MaterialItem struct {
Text string `json:"text"`
}
// 获取模板开关信息(目前写死,以后后台做好了功能再更新变动)
// 获取模板开关信息
func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMaterialImg string) GetTemplateSwitchInfoRsp {
returnData := GetTemplateSwitchInfoRsp{
Id: templateId,
@@ -72,23 +67,18 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
SwitchInfo: SwitchInfo{
QRcode: QRcode{
UserDisabled: true,
DefaultValue: "your qrcode",
},
Website: Website{
UserDisabled: true,
DefaultValue: "your website",
},
Address: Address{
UserDisabled: true,
DefaultValue: "your address",
},
Phone: Phone{
UserDisabled: true,
DefaultValue: "your phone",
},
Slogan: Slogan{
UserDisabled: true,
DefaultValue: "your slogan",
},
Logo: Logo{
Material: "/image/logo/aHnT1_rzubdwax_scale.png",