小程序 页面修改
分享配置 轮播图配置
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
|
||||
package com.czg.market.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 轮播图配置表 实体类。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-27
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
public class MkCarouselDTO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 轮播图名称(20字内)
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 是否可分享 1=开启 0=关闭
|
||||
*/
|
||||
private Integer isShareable;
|
||||
|
||||
/**
|
||||
* 启用状态 1=启用 0=禁用
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.czg.market.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 轮播图配置表 实体类。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-27
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("mk_carousel")
|
||||
public class MkCarousel implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@Id(keyType = KeyType.Auto)
|
||||
private BigInteger id;
|
||||
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 轮播图名称(20字内)
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 轮播图片地址
|
||||
*/
|
||||
private String imageUrl;
|
||||
|
||||
/**
|
||||
* 是否可分享 1=开启 0=关闭
|
||||
*/
|
||||
private Integer isShareable;
|
||||
|
||||
/**
|
||||
* 跳转页面 tb_mini_app_pages的 id
|
||||
*/
|
||||
private Long jumpPageId;
|
||||
/**
|
||||
* 跳转页面路径
|
||||
*/
|
||||
@Column(ignore = true)
|
||||
private String jumpPagePath;
|
||||
|
||||
/**
|
||||
* 扩展参数
|
||||
*/
|
||||
private String extendParam;
|
||||
|
||||
/**
|
||||
* 排序值,值越大越靠前
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 启用状态 1=启用 0=禁用
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.czg.market.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分享奖励基础配置 实体类。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-27
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("mk_share_base")
|
||||
public class MkShareBase implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
@Id
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 功能开启状态 1=开启 0=关闭
|
||||
*/
|
||||
private Integer isEnabled;
|
||||
|
||||
/**
|
||||
* 可获得奖励的分享页面,用逗号分隔,
|
||||
* 店铺首页 index
|
||||
* 我的 dine
|
||||
* 点餐页 eat
|
||||
* 点餐页 eat-detail
|
||||
* 套餐推广-列表 pp-list
|
||||
* 套餐推广-详情 pp-detail
|
||||
* 商品拼团-列表 gb-list
|
||||
* 商品拼团-详情 gb-detail
|
||||
* 全民股东 dis
|
||||
*/
|
||||
private String rewardSharePages;
|
||||
|
||||
/**
|
||||
* 分享人奖励的优惠券ID,关联优惠券表
|
||||
*/
|
||||
private Long sharerCouponId;
|
||||
/**
|
||||
* 分享人奖励的优惠券名称
|
||||
*/
|
||||
@Column(ignore = true)
|
||||
private String sharerCouponName;
|
||||
|
||||
/**
|
||||
* 分享人单次获得优惠券数量
|
||||
*/
|
||||
private Integer sharerCouponNum;
|
||||
|
||||
/**
|
||||
* 可获得奖励次数 1=仅1次 2=每次分享成功
|
||||
*/
|
||||
private Integer rewardTimesType;
|
||||
|
||||
/**
|
||||
* 被分享人奖励的优惠券ID,关联优惠券表(可选)
|
||||
*/
|
||||
private Long sharedUserCouponId;
|
||||
/**
|
||||
* 被分享人奖励的优惠券名称
|
||||
*/
|
||||
@Column(ignore = true)
|
||||
private String sharedUserCouponName;
|
||||
|
||||
/**
|
||||
* 被分享人单次获得优惠券数量(可选)
|
||||
*/
|
||||
private Integer sharedUserCouponNum;
|
||||
|
||||
/**
|
||||
* 被分享人弹窗开关 1=开启 0=关闭
|
||||
*/
|
||||
private Integer isSharedUserPopup;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.czg.market.service;
|
||||
|
||||
import com.czg.market.dto.MkCarouselDTO;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.market.entity.MkCarousel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 轮播图配置表 服务层。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-27
|
||||
*/
|
||||
public interface MkCarouselService extends IService<MkCarousel> {
|
||||
|
||||
List<MkCarousel> getCarousels(MkCarouselDTO mkCarouselDTO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.czg.market.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.market.entity.MkShareBase;
|
||||
|
||||
/**
|
||||
* 分享奖励基础配置 服务层。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-27
|
||||
*/
|
||||
public interface MkShareBaseService extends IService<MkShareBase> {
|
||||
|
||||
MkShareBase getShareBase(Long shopId);
|
||||
}
|
||||
Reference in New Issue
Block a user