个人中心修改密码2

This commit is contained in:
2025-09-18 15:25:32 +08:00
parent 11e48acc81
commit 1b2bf542fa
4 changed files with 18 additions and 5 deletions

View File

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.fuyuanshen.app.domain.AppUser;
import com.fuyuanshen.app.mapper.AppUserMapper;
import com.fuyuanshen.app.model.AppRegisterBody;
import com.fuyuanshen.app.model.AppUpdatePasswordBody;
import com.fuyuanshen.common.core.constant.Constants;
import com.fuyuanshen.common.core.constant.GlobalConstants;
import com.fuyuanshen.common.core.domain.model.RegisterBody;
@ -144,7 +145,7 @@ public class AppRegisterService {
userMapper.update(updateWrapper);
}
public void updatePassword(AppRegisterBody body) {
public void updatePassword(AppUpdatePasswordBody body) {
String username = AppLoginHelper.getUsername();
String password = body.getPassword();
UpdateWrapper<AppUser> updateWrapper = new UpdateWrapper<>();