Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
b797a016
Commit
b797a016
authored
Sep 04, 2023
by
yajun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
1b5289b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
26 deletions
+20
-26
UserInfoEntityReq.java
.../quantgroup/xyqb/controller/req/v2/UserInfoEntityReq.java
+20
-26
No files found.
src/main/java/cn/quantgroup/xyqb/controller/req/v2/UserInfoEntityReq.java
View file @
b797a016
...
...
@@ -15,42 +15,36 @@ import java.time.LocalDate;
@Data
public
class
UserInfoEntityReq
{
//用户ID
private
Long
userId
;
//用户ID
private
Long
userId
;
//0 未知 1 女 2 男
private
Gender
gender
;
//0 未知 1 女 2 男
private
Gender
gender
;
private
String
email
;
private
String
email
;
private
String
qq
;
private
String
qq
;
//姓名预留字段,目前无场景使用
private
String
name
;
//姓名预留字段,目前无场景使用
private
String
name
;
//昵称
private
String
nickName
;
//昵称
private
String
nickName
;
//头像
private
String
photo
;
//头像
private
String
photo
;
//生日
private
String
birthday
;
//生日
private
String
birthday
;
public
static
boolean
checkParam
(
UserInfoEntityReq
req
)
{
if
(
req
==
null
||
req
.
getUserId
()
==
null
||
(
StringUtils
.
isEmpty
(
req
.
getBirthday
())
&&
StringUtils
.
isEmpty
(
req
.
getEmail
())
&&
StringUtils
.
isEmpty
(
req
.
getQq
())
&&
StringUtils
.
isEmpty
(
req
.
getName
())
&&
StringUtils
.
isEmpty
(
req
.
getNickName
())
&&
StringUtils
.
isEmpty
(
req
.
getPhoto
())
&&
req
.
getGender
()
==
null
))
{
public
static
boolean
checkParam
(
UserInfoEntityReq
req
)
{
if
(
req
==
null
||
req
.
getUserId
()
==
null
||
(
StringUtils
.
isEmpty
(
req
.
getNickName
())
&&
StringUtils
.
isEmpty
(
req
.
getPhoto
())))
{
return
false
;
}
return
true
;
return
false
;
}
return
true
;
}
}
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