wjy_branch
wangjiaoyan 3 weeks ago
parent ed884e68c8
commit 12f6fe2a18

@ -5,6 +5,7 @@ import com.yj.bean.User;
import java.util.List; import java.util.List;
/** /**
* 访
* @author yj * @author yj
* @create 2020-08-21 11:57 * @create 2020-08-21 11:57
*/ */
@ -19,30 +20,64 @@ public interface UserDao {
/** /**
* *
* @param username * @param username
* @param password * @param password
* @return null * @return null
*/ */
public User querybyUsernameAndPassword(String username, String password); public User querybyUsernameAndPassword(String username, String password);
/** /**
* *
* @param user * @param user
* @return * @return
*/ */
public int saveUser(User user); public int saveUser(User user);
/**
*
* @param user
* @return
*/
public int addUser(User user); public int addUser(User user);
/**
* ID
* @param i ID
* @return
*/
public int deleteUserById(int i); public int deleteUserById(int i);
/**
*
* @param user
* @return
*/
public int updateUser(User user); public int updateUser(User user);
/**
* ID
* @param id ID
* @return null
*/
public User queryUserById(Integer id); public User queryUserById(Integer id);
/**
*
* @return
*/
public List<User> queryUsers(); public List<User> queryUsers();
/**
*
* @return
*/
public Integer queryForPageTotalCount(); public Integer queryForPageTotalCount();
/**
*
* @param begin
* @param pageSize
* @return
*/
public List<User> queryForPageItems(int begin, int pageSize); public List<User> queryForPageItems(int begin, int pageSize);
} }

Loading…
Cancel
Save