init
This commit is contained in:
@@ -21,5 +21,6 @@ public class AddUserReq {
|
||||
private Integer marriage;
|
||||
private String profession;
|
||||
private Integer annualIncome;
|
||||
private Integer forPersonals;
|
||||
private String pictures;
|
||||
}
|
||||
|
||||
@@ -19,5 +19,6 @@ public class UpdateUserReq {
|
||||
private Integer education;
|
||||
private Integer marriage;
|
||||
private String profession;
|
||||
private Integer forPersonals;
|
||||
private Integer annualIncome;
|
||||
}
|
||||
|
||||
@@ -372,6 +372,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements Use
|
||||
updateUser.setGender(updateUserReq.getGender());
|
||||
updateUser.setHeight(updateUserReq.getHeight());
|
||||
updateUser.setWeight(updateUserReq.getWeight());
|
||||
updateUser.setForPersonals(updateUserReq.getForPersonals());
|
||||
if(updateUserReq.getBirthday() != null){
|
||||
updateUser.setAge(AgeUtil.getAge(updateUserReq.getBirthday()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user