This commit is contained in:
dute7liang
2024-01-14 15:33:36 +08:00
parent d5deaacfe8
commit 852b5e08de
3 changed files with 8 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ public class UserAppController {
return R.ok(currentUserManager.currentInfo());
}
@PostMapping("/update")
@Operation(summary = "修改当前用户信息")
public R<Boolean> userUpdate(@Validated @RequestBody UserUpdateReq res){

View File

@@ -73,6 +73,11 @@ public class CurrentUserInfoVo {
*/
@Schema(description = "可用状态 0-可用 1-封禁")
private Integer status;
/**
* 资料是否完成 0 未完成 1已完成
*/
@Schema(description = "资料是否完成 0 未完成 1已完成")
private Integer finishStatus;
/**
* 相册

View File

@@ -155,11 +155,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
@Override
public void checkFinishStatus(Long userId) {
User user = this.getById(userId);
if(user == null || user.getIsAnchor() == 1 || user.getFinishStatus() == 1){
if(user == null || user.getFinishStatus() == 1){
return;
}
if(user.getCity() != null && user.getBirthday() != null && StringUtils.isNotEmpty(user.getNickname())
&& user.getAvatarState() == 1){
&& user.getGender() == 0){
this.update(Wrappers.lambdaUpdate(User.class)
.eq(User::getId,user.getId())
.set(User::getFinishStatus,1));