www.pudn.com > ssh1.rar > AccountServiceImpl.java
/**
*
*/
package com.tarena.service;
import java.util.List;
import com.tarena.dao.IAccountDao;
/**
* @author dong xuyuan
*
*/
public class AccountServiceImpl implements IAccountService {
private IAccountDao accountDao;
public IAccountDao getAccount() {
return accountDao;
}
public void setAccountDao(IAccountDao account) {
this.accountDao = account;
}
public List queryAccounts(String username) {
return this.accountDao.queryAccounts(username);
}
public void registerAccount(String username, String password, String desc) {
this.accountDao.registerAccount(username, password, desc);
}
}