Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toutiao
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
toutiao
Commits
d7da84ad
Commit
d7da84ad
authored
Jul 16, 2019
by
[zhangzhiwei]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加今日头条账号认证类型及是否认证
parent
9db65425
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
80 deletions
+118
-80
pom.xml
+1
-1
src/main/java/com/zhiwei/toutiao/bean/TouTiaoAccount.java
+117
-79
src/main/java/com/zhiwei/toutiao/parse/TouTiaoAccountParse.java
+0
-0
No files found.
pom.xml
View file @
d7da84ad
...
@@ -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>
...
...
src/main/java/com/zhiwei/toutiao/bean/TouTiaoAccount.java
View file @
d7da84ad
...
@@ -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
_i
d
;
//帐号id
public
Long
user
I
d
;
//帐号id
public
String
name
;
//帐号昵称
public
String
name
;
//帐号昵称
public
Long
media
_i
d
;
//未知
public
Long
media
I
d
;
//未知
public
String
description
;
//描述
public
String
description
;
//描述
public
Integer
user
_v
erified
;
//是否认证 (0,不是;1 是)
public
Integer
user
V
erified
;
//是否认证 (0,不是;1 是)
public
String
verify
_c
ontent
;
//认证原因
public
String
verify
C
ontent
;
//认证原因
public
Integer
follow
_c
ount
;
//粉丝数
public
Integer
follow
C
ount
;
//粉丝数
public
Integer
friend
_c
ount
;
//关注数
public
Integer
friend
C
ount
;
//关注数
public
String
img
_u
rl
;
//头像地址
public
String
img
U
rl
;
//头像地址
public
Date
create
_t
ime
;
//账号注册时间
public
Date
create
T
ime
;
//账号注册时间
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_i
d
+
", user
Id = "
+
userI
d
+
", name = "
+
name
+
", name = "
+
name
+
",
media_id = "
+
media_i
d
+
",
userId = "
+
userI
d
+
", description = "
+
description
+
", description = "
+
description
+
", user
_verified = "
+
user_v
erified
+
", user
Verified = "
+
userV
erified
+
", verify
_content = "
+
verify_c
ontent
+
", verify
Content = "
+
verifyC
ontent
+
", follow
_count = "
+
follow_c
ount
+
", follow
Count = "
+
followC
ount
+
", friend
_count = "
+
friend_c
ount
+
", friend
Count = "
+
friendC
ount
+
", img
_url = "
+
img_u
rl
+
", img
Url = "
+
imgU
rl
+
", create
_time = "
+
create_t
ime
+
", create
Time = "
+
createT
ime
+
", 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_v
erified
public
TouTiaoAccount
(
Long
user
Id
,
String
name
,
Long
mediaId
,
String
description
,
Integer
userV
erified
,
String
verify
_content
,
Integer
follow_count
,
String
img_url
,
Date
create_t
ime
,
String
gender
,
String
verify
Content
,
Integer
followCount
,
String
imgUrl
,
Date
createT
ime
,
String
gender
,
String
user_type
){
,
Integer
userType
,
Integer
authType
,
Boolean
isDv
){
this
.
id
=
user_id
+
""
;
this
.
id
=
String
.
valueOf
(
userId
)
;
this
.
user
_id
=
user_i
d
;
this
.
user
Id
=
userI
d
;
this
.
name
=
name
;
this
.
name
=
name
;
this
.
media
_id
=
media_i
d
;
this
.
media
Id
=
mediaI
d
;
this
.
description
=
description
;
this
.
description
=
description
;
this
.
user
_verified
=
user_v
erified
;
this
.
user
Verified
=
userV
erified
;
this
.
verify
_content
=
verify_c
ontent
;
this
.
verify
Content
=
verifyC
ontent
;
this
.
follow
_count
=
follow_c
ount
;
this
.
follow
Count
=
followC
ount
;
this
.
img
_url
=
img_u
rl
;
this
.
img
Url
=
imgU
rl
;
this
.
create
_time
=
create_t
ime
;
this
.
create
Time
=
createT
ime
;
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
_i
d
()
{
public
Long
getUser
I
d
()
{
return
user
_i
d
;
return
user
I
d
;
}
}
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
_i
d
()
{
public
Long
getMedia
I
d
()
{
return
media
_i
d
;
return
media
I
d
;
}
}
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
set
Create_time
(
Date
create_time
)
{
public
void
set
UserId
(
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_cou
nt
;
this
.
verifyContent
=
verifyConte
nt
;
}
}
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_t
ype
;
this
.
userType
=
userT
ype
;
}
}
public
void
set
User_type
(
String
user_t
ype
)
{
public
void
set
AuthType
(
Integer
authT
ype
)
{
this
.
user_type
=
user_t
ype
;
this
.
authType
=
authT
ype
;
}
}
public
Boolean
getIsDv
()
{
return
isDv
;
}
public
void
setIsDv
(
Boolean
isDv
)
{
this
.
isDv
=
isDv
;
}
}
}
src/main/java/com/zhiwei/toutiao/parse/TouTiaoAccountParse.java
View file @
d7da84ad
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment