|
@@ -0,0 +1,83 @@
|
|
|
+package com.github.zuihou.business.baseconfig.entity;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.github.zuihou.base.entity.Entity;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Builder;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.ToString;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
+
|
|
|
+import java.time.LocalDateTime;
|
|
|
+
|
|
|
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 实体类
|
|
|
+ * 基础配置
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author zuihou
|
|
|
+ * @since 2023-04-27
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@ToString(callSuper = true)
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("bt_base_config")
|
|
|
+@ApiModel(value = "BaseConfig", description = "基础配置")
|
|
|
+@AllArgsConstructor
|
|
|
+public class BaseConfig extends Entity<Long> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订单积分比例
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "订单积分比例")
|
|
|
+ @TableField("order_point_scale")
|
|
|
+ @Excel(name = "订单积分比例")
|
|
|
+ private Integer orderPointScale;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户小程序客服电话
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "用户小程序客服电话")
|
|
|
+ @Length(max = 30, message = "用户小程序客服电话长度不能超过30")
|
|
|
+ @TableField(value = "xcx_cs_phone", condition = LIKE)
|
|
|
+ @Excel(name = "用户小程序客服电话")
|
|
|
+ private String xcxCsPhone;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 微信公众号二维码
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "微信公众号二维码")
|
|
|
+ @Length(max = 150, message = "微信公众号二维码长度不能超过150")
|
|
|
+ @TableField(value = "wxmp_qr_code", condition = LIKE)
|
|
|
+ @Excel(name = "微信公众号二维码")
|
|
|
+ private String wxmpQrCode;
|
|
|
+
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public BaseConfig(Long id, LocalDateTime createTime, Long createUser, LocalDateTime updateTime, Long updateUser,
|
|
|
+ Integer orderPointScale, String xcxCsPhone, String wxmpQrCode) {
|
|
|
+ this.id = id;
|
|
|
+ this.createTime = createTime;
|
|
|
+ this.createUser = createUser;
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ this.updateUser = updateUser;
|
|
|
+ this.orderPointScale = orderPointScale;
|
|
|
+ this.xcxCsPhone = xcxCsPhone;
|
|
|
+ this.wxmpQrCode = wxmpQrCode;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|