Browse Source

实体类注释修改

wangmh 7 years ago
parent
commit
04623024d0

+ 4 - 1
sso-server/src/main/java/com/uas/sso/entity/App.java

@@ -110,8 +110,11 @@ public class App implements Serializable {
      * 是否支持个人账号
      */
     @Column(name = "personal_enable", nullable = false)
-    private int personalEnable;
+    private Integer personalEnable;
 
+    /**
+     * 应用页面样式
+     */
     @com.fasterxml.jackson.annotation.JsonIgnore
     @OneToOne(mappedBy = "app", fetch = FetchType.LAZY)
     private PageStyle pageStyle;

+ 4 - 4
sso-server/src/main/java/com/uas/sso/entity/User.java

@@ -69,13 +69,13 @@ public class User implements Serializable {
     private String password;
 
     /**
-     * 用户密码
+     * 用户密码等级
      */
     @Column(name = "password_level", nullable = false)
-    private int passwordLevel = 2;
+    private Integer passwordLevel = 2;
 
     /**
-     * 用户erp密码
+     * 盐值
      */
     @Column(name = "salt")
     private String salt;
@@ -93,7 +93,7 @@ public class User implements Serializable {
     private String email;
 
     /**
-     * 用户邮箱
+     * 用户邮箱认证状态
      */
     @Column(name = "email_valid_code")
     private Short emailValidCode;

+ 2 - 1
sso-server/src/main/java/com/uas/sso/entity/UserQuestion.java

@@ -7,6 +7,7 @@ import javax.persistence.*;
 import java.io.Serializable;
 
 /**
+ * 用户密保
  * @author uas
  * @date 2018/1/10.
  */
@@ -35,7 +36,7 @@ public class UserQuestion implements Serializable {
     private Long userUU;
 
     /**
-     * 用户uu号
+     * 用户信息
      */
     @com.fasterxml.jackson.annotation.JsonIgnore
     @ManyToOne(cascade = {CascadeType.REFRESH}, fetch = FetchType.LAZY)

+ 12 - 0
sso-server/src/main/java/com/uas/sso/entity/UserRecord.java

@@ -22,16 +22,28 @@ public class UserRecord implements Serializable {
      */
     private static final long serialVersionUID = 1L;
 
+    /**
+     * 用户uu号
+     */
     @Id
     @Column(name = "user_uu")
     private Long userUU;
 
+    /**
+     * 上次登录时间
+     */
     @Column(name = "last_login_time")
     private Timestamp lastLoginTime;
 
+    /**
+     * 密码错误次数
+     */
     @Column(name = "pwd_error_count", nullable = false)
     private int pwdErrorCount;
 
+    /**
+     * 用户信息管理
+     */
     @OneToOne(fetch = FetchType.LAZY)
     @JoinColumn(name = "user_uu", unique = true, insertable = false, updatable = false)
     private User user;

+ 1 - 1
sso-server/src/main/java/com/uas/sso/entity/Userspace.java

@@ -225,7 +225,7 @@ public class Userspace implements Serializable {
     private String source;
 
     /**
-     * 
+     * 企业秘
      */
     @com.fasterxml.jackson.annotation.JsonIgnore
     @Column(name = "access_secret")