|
@@ -0,0 +1,67 @@
|
|
|
|
|
+package com.miekir.shibei.bean;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import javax.persistence.*;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ *
|
|
|
|
|
+ *
|
|
|
|
|
+ * @author Miekir
|
|
|
|
|
+ * @date 2020/7/7 19:37
|
|
|
|
|
+ * Description: 优惠券实体
|
|
|
|
|
+ */
|
|
|
|
|
+@Entity
|
|
|
|
|
+@Table(name = "t_coupon", schema = "shibei", catalog = "")
|
|
|
|
|
+public class CouponBean {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 模板Id
|
|
|
|
|
+ */
|
|
|
|
|
+ @Id
|
|
|
|
|
+ @GeneratedValue(strategy= GenerationType.AUTO)
|
|
|
|
|
+ @Column(name = "id", nullable = false, insertable = true, updatable = false)
|
|
|
|
|
+ public long couponId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 模板类型
|
|
|
|
|
+ */
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "couponType", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public int couponType;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 模板名称
|
|
|
|
|
+ */
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "couponName", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public String couponName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 点击之后跳转的链接
|
|
|
|
|
+ */
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "jumpUrl", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public String jumpUrl;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 封面图片URL
|
|
|
|
|
+ */
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "coverUrl", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public String coverUrl;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否可以响应点击
|
|
|
|
|
+ */
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "actionEnable", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public boolean actionEnable;
|
|
|
|
|
+
|
|
|
|
|
+ /**是否是本地写死的数据*/
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(name = "isLocal", nullable = true, insertable = true, updatable = true)
|
|
|
|
|
+ public boolean isLocal;
|
|
|
|
|
+
|
|
|
|
|
+ /*columnDefinition = "MEDIUMTEXT"可以解决文字太长保存不进去的bug
|
|
|
|
|
+ @Basic
|
|
|
|
|
+ @Column(columnDefinition = "MEDIUMTEXT", name = "content", nullable = true, insertable = true, updatable = true)*/
|
|
|
|
|
+}
|