From b3c6911c1e78563dc04998dd7bfb510130a9fcec Mon Sep 17 00:00:00 2001
From: huanghongfa <18228131219@163.com>
Date: 星期一, 01 二月 2021 16:37:52 +0800
Subject: [PATCH] auth

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java |   94 +++++++++++++++++++++++++----------------------
 1 files changed, 50 insertions(+), 44 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java
index 5ecb51f..8dd8643 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/model/dos/SysUserDO.java
@@ -1,12 +1,10 @@
 package com.panzhihua.service_user.model.dos;
 
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import lombok.Data;
 
+import java.io.Serializable;
 import java.util.Date;
 import java.util.List;
 
@@ -17,7 +15,7 @@
  */
 @Data
 @TableName("sys_user")
-public class SysUserDO 
+public class SysUserDO  implements Serializable
 {
 
     private static final long serialVersionUID = 1L;
@@ -25,16 +23,9 @@
     /**
      * user_id
      */
-    @TableId(type = IdType.AUTO)
+    @TableId(type=IdType.AUTO)
     private Long userId;
-    /**
-     *会话密钥
-     */
-    private String sessionKey;
-    /**
-     *用户在开放平台的唯一标识符
-     */
-    private String unionid;
+
     /**
      * 登录账户
      */
@@ -49,6 +40,16 @@
      * 微信小程序唯一标识
      */
     private String openid;
+
+    /**
+     * 会话密钥
+     */
+    private String sessionKey;
+
+    /**
+     * 用户在开放平台的唯一标识符
+     */
+    private String unionid;
 
     /**
      * 手机号
@@ -86,12 +87,12 @@
     private Date birthday;
 
     /**
-     * image_url
+     * 头像
      */
     private String imageUrl;
 
     /**
-     * type 用户类型 1 小程序 2 运营平台 3 社区平台
+     * 用户类型 1 小程序 2 运营平台 3 社区平台
      */
     private Integer type;
 
@@ -101,12 +102,12 @@
     private String job;
 
     /**
-     * 是否志愿者 1 是 2 否
+     * 是否志愿者 0 否 1 是
      */
     private Integer isVolunteer;
 
     /**
-     * 是否党员 1 是 2 否
+     * 是否党员 0 否 1 是
      */
     private Integer isPartymember;
 
@@ -118,41 +119,46 @@
     /**
      * 创建时间
      */
-    private Date createTime;
+    @TableField(fill = FieldFill.INSERT)
+    private Date createAt;
 
     /**
-     * last_login_time
+     * 最后登录时间
      */
     private Date lastLoginTime;
 
-    /** 部门对象 */
-    @TableField(exist = false)
-    private SysDeptDO dept;
+    /**
+     * 标签id 多个用,隔开
+     */
+    private String tags;
 
-    /** 角色对象 */
-    @TableField(exist = false)
-    private List<SysRoleDO> roles;
+    /**
+     * 家庭id
+     */
+    private Long familyId;
 
-    /** 角色组 */
-    @TableField(exist = false)
-    private Long[] roleIds;
+    /**
+     * 人脸采集照片url
+     */
+    private String faceUrl;
 
-    /** 岗位组 */
-    @TableField(exist = false)
-    private Long[] postIds;
+    /**
+     * 人脸采集审核状态 0 待审核 1 审核通过 2驳回
+     */
+    private Integer faceState;
 
-    public SysUserDO()
-    {
-
-    }
-    public static boolean isAdmin(Long userId)
-    {
-        return userId != null && 1l== userId;
-    }
-    public boolean isAdmin()
-    {
-        return isAdmin(this.userId);
-    }
+    /**
+     * 驳回原因
+     */
+    private String rejectReson;
+    /**
+     * 小区id
+     */
+    private Long areaId;
+    /**
+     * 连续登陆天数 每天凌晨更新 通过判断最后登录时间
+     */
+    private Integer continuousLandingDays;
 
 
 }

--
Gitblit v1.7.1