TASK: 是否完成引导字段添加;

This commit is contained in:
shahaibo
2023-11-29 14:37:32 +08:00
parent 98ca270156
commit 6d99a5fa16
6 changed files with 23 additions and 3 deletions

View File

@@ -96,4 +96,6 @@ public interface AccountService extends IService<Account> {
String changeUserLanguage(String language);
Boolean trialUserLogout();
Boolean completeGuidance();
}

View File

@@ -442,4 +442,13 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
userLikeGroupService.deleteTrialData(userInfo.getId());
return Boolean.TRUE;
}
@Override
public Boolean completeGuidance() {
AuthPrincipalVo userInfo = UserContext.getUserHolder();
Account account = accountMapper.selectById(userInfo.getId());
account.setIsBeginner(0);
accountMapper.updateById(account);
return Boolean.TRUE;
}
}