mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-24 19:59:31 +08:00
优化头像上传
This commit is contained in:
@@ -204,6 +204,14 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changeAvatar(Integer userId, String avatar) {
|
||||
User user = new User();
|
||||
user.setId(userId);
|
||||
user.setAvatar(avatar);
|
||||
updateById(user);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user