From 10df7e29b51d6a2efacc83d870856f57d97a9b66 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 24 十月 2022 13:48:24 +0800
Subject: [PATCH] #feat 修改别名

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActNeighborCircleFabulousDO.java |   48 ++++++++++++++++++++++++++++++++----------------
 1 files changed, 32 insertions(+), 16 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActNeighborCircleFabulousDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActNeighborCircleFabulousDO.java
index 6fbc3e6..5639eb6 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActNeighborCircleFabulousDO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActNeighborCircleFabulousDO.java
@@ -1,13 +1,11 @@
 package com.panzhihua.service_community.model.dos;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
 import java.io.Serializable;
 import java.util.Date;
 
+import com.baomidou.mybatisplus.annotation.*;
+
+import lombok.Data;
 
 /**
  * @auther lyq
@@ -24,13 +22,18 @@
     /**
      * 主键id
      */
-    @TableId(type = IdType.AUTO)
+    @TableId(type = IdType.ASSIGN_ID)
     private Long id;
 
     /**
      * 点赞类型(1.邻里圈 2.评论 3.回复)
      */
     private Integer type;
+
+    /**
+     * 邻里圈id
+     */
+    private Long circleId;
 
     /**
      * 点赞上级id
@@ -43,30 +46,43 @@
     private Long userId;
 
     /**
-     * 有效状态(1.有效  2.取消)
+     * 有效状态(1.有效 2.取消)
      */
     private Integer isEffective;
 
     /**
      * 点赞时间
      */
+    @TableField(fill = FieldFill.INSERT)
     private Date createAt;
 
     /**
      * 修改时间
      */
+    @TableField(fill = FieldFill.UPDATE)
     private Date updateAt;
 
     @Override
     public String toString() {
-        return "ComActNeighborCircleFabulousDO{" +
-                "id=" + id +
-                ", type=" + type +
-                ", parentId=" + parentId +
-                ", userId=" + userId +
-                ", isEffective=" + isEffective +
-                ", createAt=" + createAt +
-                ", updateAt=" + updateAt +
-                "}";
+        return "ComActNeighborCircleFabulousDO{" + "id=" + id + ", type=" + type + ", parentId=" + parentId
+            + ", userId=" + userId + ", isEffective=" + isEffective + ", createAt=" + createAt + ", updateAt="
+            + updateAt + "}";
+    }
+
+    /**
+     * 有效状态(1.有效 2.取消)
+     */
+    public interface isEffective {
+        int yes = 1;
+        int no = 2;
+    }
+
+    /**
+     * 点赞类型(1.邻里圈 2.评论 3.回复)
+     */
+    public interface type {
+        int llq = 1;
+        int pl = 2;
+        int hf = 3;
     }
 }
\ No newline at end of file

--
Gitblit v1.7.1