店铺装修接口修改
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.czg.account.entity;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -39,7 +40,7 @@ public class ShopExtend implements Serializable {
|
||||
/**
|
||||
* 商户Id
|
||||
*/
|
||||
private Integer shopId;
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* img:图片;text:文本;
|
||||
@@ -74,5 +75,45 @@ public class ShopExtend implements Serializable {
|
||||
private LocalDateTime createTime;
|
||||
|
||||
private String detail;
|
||||
|
||||
/**
|
||||
* index_bg:店铺首页背景图
|
||||
* my_bg: 我的页面背景图
|
||||
* member_bg:会员卡页面背景图
|
||||
* shopinfo_bg:商品列表顶部背景图
|
||||
* @param autokey
|
||||
*/
|
||||
public void initAutoKey(String autokey,long shopId) {
|
||||
if (StrUtil.isBlank(name)) {
|
||||
switch (autokey) {
|
||||
case "index_bg":
|
||||
this.name = "首页";
|
||||
this.detail="建议尺寸: 375*600 ";
|
||||
this.value = "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/shuangbackground.png";
|
||||
break;
|
||||
case "my_bg":
|
||||
this.name = "个人中心";
|
||||
this.detail="建议尺寸: 375*200";
|
||||
this.value = "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/myTopBack.png";
|
||||
break;
|
||||
case "member_bg":
|
||||
this.name = "会员卡";
|
||||
this.detail="建议尺寸: 315*152";
|
||||
this.value = "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/menber/member_bg.png";
|
||||
break;
|
||||
case "shopinfo_bg":
|
||||
this.name = "商品列表";
|
||||
this.detail="建议尺寸: 375*120";
|
||||
this.value = "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/shopDetails/topBanner.png";
|
||||
break;
|
||||
case "ticket_logo":
|
||||
this.name = "小票logo";
|
||||
this.detail="建议尺寸: 417*139";
|
||||
this.value = "https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20241022/eeee8e85c66947e5bcaebf687381b5d6.png";
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.type="img";
|
||||
this.shopId=shopId;
|
||||
this.autoKey = autokey;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ import com.czg.account.dto.extend.ShopExtendDTO;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.ShopExtend;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店铺扩展信息 服务层。
|
||||
*
|
||||
@@ -14,4 +16,5 @@ public interface ShopExtendService extends IService<ShopExtend> {
|
||||
|
||||
Boolean edit(Long shopId, ShopExtendDTO shopExtendDTO);
|
||||
|
||||
List<ShopExtend> listInfo(Long shopId, String autoKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user