From be1cd9e5b30097ca427a9c2b7b054b28854e410a Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 11 三月 2026 13:21:36 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/system/entity/User.java | 78 +++++++++++++++++++++++++++++++++++++++
1 files changed, 78 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/system/entity/User.java b/src/main/java/com/zy/system/entity/User.java
index 519c0c6..78f470d 100644
--- a/src/main/java/com/zy/system/entity/User.java
+++ b/src/main/java/com/zy/system/entity/User.java
@@ -49,6 +49,31 @@
private String password;
/**
+ * 鏄惁鍏佽浣跨敤 MFA
+ */
+ @TableField("mfa_allow")
+ private Integer mfaAllow;
+
+ /**
+ * 鏄惁宸插惎鐢� MFA
+ */
+ @TableField("mfa_enabled")
+ private Integer mfaEnabled;
+
+ /**
+ * MFA 瀵嗛挜
+ */
+ @TableField(value = "mfa_secret", select = false)
+ private String mfaSecret;
+
+ /**
+ * MFA 缁戝畾鏃堕棿
+ */
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @TableField("mfa_bound_time")
+ private Date mfaBoundTime;
+
+ /**
* 瑙掕壊
*/
@TableField("role_id")
@@ -115,6 +140,59 @@
this.password = password;
}
+ public Integer getMfaAllow() {
+ return mfaAllow;
+ }
+
+ public String getMfaAllow$() {
+ if (null == this.mfaAllow) {
+ return null;
+ }
+ return Integer.valueOf(1).equals(this.mfaAllow) ? "鏄�" : "鍚�";
+ }
+
+ public void setMfaAllow(Integer mfaAllow) {
+ this.mfaAllow = mfaAllow;
+ }
+
+ public Integer getMfaEnabled() {
+ return mfaEnabled;
+ }
+
+ public String getMfaEnabled$() {
+ if (null == this.mfaEnabled) {
+ return null;
+ }
+ return Integer.valueOf(1).equals(this.mfaEnabled) ? "鏄�" : "鍚�";
+ }
+
+ public void setMfaEnabled(Integer mfaEnabled) {
+ this.mfaEnabled = mfaEnabled;
+ }
+
+ public String getMfaSecret() {
+ return mfaSecret;
+ }
+
+ public void setMfaSecret(String mfaSecret) {
+ this.mfaSecret = mfaSecret;
+ }
+
+ public Date getMfaBoundTime() {
+ return mfaBoundTime;
+ }
+
+ public String getMfaBoundTime$() {
+ if (Cools.isEmpty(this.mfaBoundTime)) {
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.mfaBoundTime);
+ }
+
+ public void setMfaBoundTime(Date mfaBoundTime) {
+ this.mfaBoundTime = mfaBoundTime;
+ }
+
public Long getRoleId() {
return roleId;
}
--
Gitblit v1.9.1