public boolean checkCookieExist(String nickname) { WeiboUser weiboUser = weiboUserRepository.findByNickname(nickname); if (weiboUser != null && weiboUser.getCookie() != null && !weiboUser.getCookie().equals("")) { return true; } else { return false; } }
public void saveWeiboUser(WeiboUser weiboUser) { weiboUserRepository.save(weiboUser); }
public WeiboUser findByUid(String uid) { return weiboUserRepository.findByUid(uid); }
public List<WeiboUser> findAllUsers() { return weiboUserRepository.findAll(); }