瀏覽代碼

基础表entity修改

wangliang 5 年之前
父節點
當前提交
76c9f06af7

+ 2 - 26
themis-business/src/main/java/com/qmth/themis/business/entity/TBApp.java

@@ -1,10 +1,10 @@
 package com.qmth.themis.business.entity;
 
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.qmth.themis.business.base.BaseEntity;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 
-import java.io.Serializable;
 import java.util.Date;
 
 /**
@@ -15,7 +15,7 @@ import java.util.Date;
  * @Date: 2020/6/25
  */
 @ApiModel(value = "t_b_app", description = "app信息")
-public class TBApp implements Serializable {
+public class TBApp extends BaseEntity {
 
     private static final long serialVersionUID = 1L;
 
@@ -35,14 +35,6 @@ public class TBApp implements Serializable {
     @TableId(value = "access_secret")
     private String accessSecret;
 
-    @ApiModelProperty(value = "创建时间")
-    @TableId(value = "create_time")
-    private Date createTime;
-
-    @ApiModelProperty(value = "更新时间")
-    @TableId(value = "update_time")
-    private Date updateTime;
-
     @ApiModelProperty(value = "最近访问时间")
     @TableId(value = "last_access_time")
     private Date lastAccessTime;
@@ -83,22 +75,6 @@ public class TBApp implements Serializable {
         this.accessSecret = accessSecret;
     }
 
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-
     public Date getLastAccessTime() {
         return lastAccessTime;
     }

+ 2 - 25
themis-business/src/main/java/com/qmth/themis/business/entity/TBClientVersion.java

@@ -1,6 +1,7 @@
 package com.qmth.themis.business.entity;
 
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.qmth.themis.business.base.BaseEntity;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 
@@ -15,7 +16,7 @@ import java.util.Date;
  * @Date: 2020/6/25
  */
 @ApiModel(value = "t_b_client_version", description = "客户端版本")
-public class TBClientVersion implements Serializable {
+public class TBClientVersion extends BaseEntity {
 
     private static final long serialVersionUID = 1L;
 
@@ -47,14 +48,6 @@ public class TBClientVersion implements Serializable {
     @TableId(value = "user_id")
     private Long userId;
 
-    @ApiModelProperty(value = "创建时间")
-    @TableId(value = "create_time")
-    private Date createTime;
-
-    @ApiModelProperty(value = "更新时间")
-    @TableId(value = "update_time")
-    private Date updateTime;
-
     public static long getSerialVersionUID() {
         return serialVersionUID;
     }
@@ -114,20 +107,4 @@ public class TBClientVersion implements Serializable {
     public void setUserId(Long userId) {
         this.userId = userId;
     }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
 }

+ 48 - 23
themis-business/src/main/java/com/qmth/themis/business/entity/TBOrg.java

@@ -1,6 +1,7 @@
 package com.qmth.themis.business.entity;
 
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.qmth.themis.business.base.BaseEntity;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 
@@ -15,7 +16,7 @@ import java.util.Date;
  * @Date: 2020/6/25
  */
 @ApiModel(value = "t_b_org", description = "机构")
-public class TBOrg implements Serializable {
+public class TBOrg extends BaseEntity {
 
     private static final long serialVersionUID = 1L;
 
@@ -55,13 +56,53 @@ public class TBOrg implements Serializable {
     @TableId(value = "access_secret")
     private String accessSecret;
 
-    @ApiModelProperty(value = "创建时间")
-    @TableId(value = "create_time")
-    private Date createTime;
+    @ApiModelProperty(value = "联系人")
+    @TableId(value = "contact_name")
+    private String contactName;
 
-    @ApiModelProperty(value = "更新时间")
-    @TableId(value = "update_time")
-    private Date updateTime;
+    @ApiModelProperty(value = "联系人电话")
+    @TableId(value = "contact_phone")
+    private String contactPhone;
+
+    @ApiModelProperty(value = "是否允许使用活体")
+    @TableId(value = "enable_liveness")
+    private String enableLiveness;
+
+    @ApiModelProperty(value = "是否允许视频转录")
+    @TableId(value = "enable_video_record")
+    private String enableVideoRecord;
+
+    public String getContactName() {
+        return contactName;
+    }
+
+    public void setContactName(String contactName) {
+        this.contactName = contactName;
+    }
+
+    public String getContactPhone() {
+        return contactPhone;
+    }
+
+    public void setContactPhone(String contactPhone) {
+        this.contactPhone = contactPhone;
+    }
+
+    public String getEnableLiveness() {
+        return enableLiveness;
+    }
+
+    public void setEnableLiveness(String enableLiveness) {
+        this.enableLiveness = enableLiveness;
+    }
+
+    public String getEnableVideoRecord() {
+        return enableVideoRecord;
+    }
+
+    public void setEnableVideoRecord(String enableVideoRecord) {
+        this.enableVideoRecord = enableVideoRecord;
+    }
 
     public static long getSerialVersionUID() {
         return serialVersionUID;
@@ -138,20 +179,4 @@ public class TBOrg implements Serializable {
     public void setAccessSecret(String accessSecret) {
         this.accessSecret = accessSecret;
     }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
 }

+ 14 - 25
themis-business/src/main/java/com/qmth/themis/business/entity/TBUser.java

@@ -1,6 +1,7 @@
 package com.qmth.themis.business.entity;
 
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.qmth.themis.business.base.BaseEntity;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 
@@ -15,7 +16,7 @@ import java.util.Date;
  * @Date: 2020/6/25
  */
 @ApiModel(value = "t_b_user", description = "用户")
-public class TBUser implements Serializable {
+public class TBUser extends BaseEntity {
 
     private static final long serialVersionUID = 1L;
 
@@ -43,18 +44,22 @@ public class TBUser implements Serializable {
     @TableId(value = "org_id")
     private Long orgId;
 
-    @ApiModelProperty(value = "创建时间")
-    @TableId(value = "create_time")
-    private Date createTime;
-
-    @ApiModelProperty(value = "更新时间")
-    @TableId(value = "update_time")
-    private Date updateTime;
-
     @ApiModelProperty(value = "备注")
     @TableId(value = "remark")
     private String remark;
 
+    @ApiModelProperty(value = "姓名")
+    @TableId(value = "name")
+    private String name;
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
     public static long getSerialVersionUID() {
         return serialVersionUID;
     }
@@ -107,22 +112,6 @@ public class TBUser implements Serializable {
         this.orgId = orgId;
     }
 
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-
     public String getRemark() {
         return remark;
     }