店铺扩展信息 初始化数据

This commit is contained in:
wangw 2024-08-28 15:44:33 +08:00
parent 41ee71b594
commit 73030b7d91
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class TbShopExtend extends Model<TbShopExtend> {
private String autokey;
//
private String value;
private String detail;
//更新时间
private Date updateTime;
//创建时间
@ -96,6 +97,14 @@ public class TbShopExtend extends Model<TbShopExtend> {
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
/**
* index_bg店铺首页背景图
* my_bg 我的页面背景图
@ -108,15 +117,19 @@ public class TbShopExtend extends Model<TbShopExtend> {
switch (autokey) {
case "index_bg":
this.name = "店铺首页背景图";
this.detail="建议尺寸: 375*600 ";
break;
case "my_bg":
this.name = "我的页面背景图";
this.detail="建议尺寸: 375*200";
break;
case "member_bg":
this.name = "会员卡页面背景图";
this.detail="建议尺寸: 315*152";
break;
case "shopinfo_bg":
this.name = "商品列表顶部背景图";
this.detail="建议尺寸: 375*120";
break;
}
}