|
|
@@ -0,0 +1,53 @@
|
|
|
+package seecoder.devcloud.web.po.user;
|
|
|
+
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.ToString;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.type.Alias;
|
|
|
+import org.hibernate.annotations.LazyCollection;
|
|
|
+import org.hibernate.annotations.LazyCollectionOption;
|
|
|
+import org.springframework.data.annotation.CreatedDate;
|
|
|
+import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
|
|
+import seecoder.devcloud.web.enums.UserIdentity;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.sql.Timestamp;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.HashSet;
|
|
|
+import java.util.Set;
|
|
|
+
|
|
|
+@Data
|
|
|
+public class User {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 注意用户id并非由此后端数据库生成,而是gitlab创建后填入,以确保两者的关联性的正确
|
|
|
+ */
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ private String username;
|
|
|
+
|
|
|
+ private String nickname="";
|
|
|
+
|
|
|
+ private String password;
|
|
|
+
|
|
|
+ private String phone;
|
|
|
+
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ private UserIdentity role;
|
|
|
+
|
|
|
+ private Timestamp createdAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 这个属性来自于gitlab
|
|
|
+ */
|
|
|
+ private Integer namespace;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 这个属性来自于gitlab
|
|
|
+ */
|
|
|
+ private String token;
|
|
|
+}
|