Commit d7da84ad by [zhangzhiwei]

添加今日头条账号认证类型及是否认证

parent 9db65425
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.zhiwei</groupId> <groupId>com.zhiwei</groupId>
<artifactId>toutiao</artifactId> <artifactId>toutiao</artifactId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.6-SNAPSHOT</version>
<dependencies> <dependencies>
<dependency> <dependency>
......
...@@ -15,68 +15,76 @@ public class TouTiaoAccount implements Serializable{ ...@@ -15,68 +15,76 @@ public class TouTiaoAccount implements Serializable{
public String id; //主键 帐号id public String id; //主键 帐号id
public Long user_id; //帐号id public Long userId; //帐号id
public String name; //帐号昵称 public String name; //帐号昵称
public Long media_id; //未知 public Long mediaId; //未知
public String description; //描述 public String description; //描述
public Integer user_verified; //是否认证 (0,不是;1 是) public Integer userVerified; //是否认证 (0,不是;1 是)
public String verify_content; //认证原因 public String verifyContent; //认证原因
public Integer follow_count; //粉丝数 public Integer followCount; //粉丝数
public Integer friend_count; //关注数 public Integer friendCount; //关注数
public String img_url; //头像地址 public String imgUrl; //头像地址
public Date create_time; //账号注册时间 public Date createTime; //账号注册时间
public String gender; //性别 public String gender; //性别
public String user_type; //用户类型 public Integer userType; //用户类型
public Integer authType; //用户认证类型
public Boolean isDv; //是否加V
@Override @Override
public String toString(){ public String toString(){
return "new TouTiaoAccount[" return "new TouTiaoAccount["
+ "id = " + id + "id = " + id
+ ", user_id = " + user_id + ", userId = " + userId
+ ", name = " + name + ", name = " + name
+ ", media_id = " + media_id + ", userId = " + userId
+ ", description = " + description + ", description = " + description
+ ", user_verified = " + user_verified + ", userVerified = " + userVerified
+ ", verify_content = " + verify_content + ", verifyContent = " + verifyContent
+ ", follow_count = " + follow_count + ", followCount = " + followCount
+ ", friend_count = " + friend_count + ", friendCount = " + friendCount
+ ", img_url = " + img_url + ", imgUrl = " + imgUrl
+ ", create_time = " + create_time + ", createTime = " + createTime
+ ", gender = " + gender + ", gender = " + gender
+ ", user_type = " + user_type + ", userType = " + userType
+ ", authType = " + authType
+ ", isDv = " + isDv
+ "]"; + "]";
} }
public TouTiaoAccount(){} public TouTiaoAccount(){}
public TouTiaoAccount(Long user_id,String name, Long media_id, String description,Integer user_verified public TouTiaoAccount(Long userId,String name, Long mediaId, String description,Integer userVerified
,String verify_content, Integer follow_count, String img_url, Date create_time, String gender ,String verifyContent, Integer followCount, String imgUrl, Date createTime, String gender
,String user_type){ ,Integer userType, Integer authType, Boolean isDv){
this.id = user_id+""; this.id = String.valueOf(userId);
this.user_id = user_id; this.userId = userId;
this.name = name; this.name = name;
this.media_id = media_id; this.mediaId = mediaId;
this.description = description; this.description = description;
this.user_verified = user_verified; this.userVerified = userVerified;
this.verify_content = verify_content; this.verifyContent = verifyContent;
this.follow_count = follow_count; this.followCount = followCount;
this.img_url = img_url; this.imgUrl = imgUrl;
this.create_time = create_time; this.createTime = createTime;
this. gender = gender; this. gender = gender;
this.user_type = user_type; this.userType = userType;
this.authType = authType;
this.isDv = isDv;
} }
...@@ -84,99 +92,124 @@ public class TouTiaoAccount implements Serializable{ ...@@ -84,99 +92,124 @@ public class TouTiaoAccount implements Serializable{
return id; return id;
} }
public void setId(String id) {
this.id = id;
}
public Long getUser_id() { public Long getUserId() {
return user_id; return userId;
} }
public void setUser_id(Long user_id) {
this.user_id = user_id;
}
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) {
this.name = name;
}
public Long getMedia_id() { public Long getMediaId() {
return media_id; return mediaId;
} }
public void setMedia_id(Long media_id) {
this.media_id = media_id;
}
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) {
this.description = description; public Integer getUserVerified() {
return userVerified;
} }
public Integer getUser_verified() {
return user_verified; public String getVerifyContent() {
return verifyContent;
} }
public void setUser_verified(Integer user_verified) {
this.user_verified = user_verified; public Integer getFollowCount() {
return followCount;
} }
public Integer getFollow_count() {
return follow_count; public Integer getFriendCount() {
return friendCount;
} }
public void setFollow_count(Integer follow_count) {
this.follow_count = follow_count; public String getImgUrl() {
return imgUrl;
} }
public String getVerify_content() {
return verify_content; public Date getCreateTime() {
return createTime;
} }
public void setVerify_content(String verify_content) {
this.verify_content = verify_content; public String getGender() {
return gender;
} }
public String getImg_url() { public Integer getUserType() {
return img_url; return userType;
} }
public void setImg_url(String img_url) { public Integer getAuthType() {
this.img_url = img_url; return authType;
} }
public Date getCreate_time() { public void setId(String id) {
return create_time; this.id = id;
} }
public void setCreate_time(Date create_time) { public void setUserId(Long userId) {
this.create_time = create_time; this.userId = userId;
} }
public String getGender() { public void setName(String name) {
return gender; this.name = name;
}
public void setMediaId(Long mediaId) {
this.mediaId = mediaId;
}
public void setDescription(String description) {
this.description = description;
}
public void setUserVerified(Integer userVerified) {
this.userVerified = userVerified;
} }
public int getFriend_count() { public void setVerifyContent(String verifyContent) {
return friend_count; this.verifyContent = verifyContent;
} }
public void setFriend_count(int friend_count) { public void setFollowCount(Integer followCount) {
this.friend_count = friend_count; this.followCount = followCount;
}
public void setFriendCount(Integer friendCount) {
this.friendCount = friendCount;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
} }
...@@ -185,18 +218,23 @@ public class TouTiaoAccount implements Serializable{ ...@@ -185,18 +218,23 @@ public class TouTiaoAccount implements Serializable{
} }
public String getUser_type() { public void setUserType(Integer userType) {
return user_type; this.userType = userType;
} }
public void setUser_type(String user_type) { public void setAuthType(Integer authType) {
this.user_type = user_type; this.authType = authType;
} }
public Boolean getIsDv() {
return isDv;
}
public void setIsDv(Boolean isDv) {
this.isDv = isDv;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment