123
This commit is contained in:
@@ -10,6 +10,8 @@ import java.time.LocalDateTime;
|
|||||||
public class UserUpdateReq {
|
public class UserUpdateReq {
|
||||||
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
@Schema(description = "邀请人ID")
|
||||||
|
private Long inviteId;
|
||||||
@Schema(description = "城市")
|
@Schema(description = "城市")
|
||||||
private Integer cityId;
|
private Integer cityId;
|
||||||
@Schema(description = "昵称")
|
@Schema(description = "昵称")
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ public class CurrentUserInfoVo {
|
|||||||
@Schema(description = "用户ID")
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "邀请人ID")
|
||||||
|
private Long inviteId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户号/ID号
|
* 用户号/ID号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ public class CurrentUserUpdateInfoVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@Schema(description = "蜜瓜号")
|
@Schema(description = "蜜瓜号")
|
||||||
private String usercode;
|
private String usercode;
|
||||||
|
|
||||||
|
@Schema(description = "邀请人ID")
|
||||||
|
private Long inviteId;
|
||||||
/**
|
/**
|
||||||
* 昵称
|
* 昵称
|
||||||
*/
|
*/
|
||||||
@@ -49,6 +52,9 @@ public class CurrentUserUpdateInfoVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@Schema(description = "生日")
|
@Schema(description = "生日")
|
||||||
private LocalDate birthday;
|
private LocalDate birthday;
|
||||||
|
|
||||||
|
@Schema(description = "年龄")
|
||||||
|
private Integer age = 18;
|
||||||
/**
|
/**
|
||||||
* 城市
|
* 城市
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ public class CurrentUserManager {
|
|||||||
updateFlag=true;
|
updateFlag=true;
|
||||||
updateYunxin=true;
|
updateYunxin=true;
|
||||||
}
|
}
|
||||||
|
if(res.getInviteId() != null){
|
||||||
|
update.set(User::getInviteId,res.getInviteId());
|
||||||
|
// TODO 邀请人的后续操作
|
||||||
|
}
|
||||||
if(res.getBirthday() != null){
|
if(res.getBirthday() != null){
|
||||||
update.set(User::getBirthday,res.getBirthday());
|
update.set(User::getBirthday,res.getBirthday());
|
||||||
uinfoReq.setBirth(res.getBirthday().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
|
uinfoReq.setBirth(res.getBirthday().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
|
||||||
|
|||||||
Reference in New Issue
Block a user