@Override public boolean regist(User user) { return ud.saveUser(user) == 1; }
@Override public boolean getUserByUserName(String userName) { User user = ud.getUserByUserName(userName); return !(user == null); }
@Override public User Login(User user) { return ud.getUserByUsernameAndPassword(user); }