wjy_branch
wangjiaoyan 3 weeks ago
parent ed884e68c8
commit 12f6fe2a18

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

Loading…
Cancel
Save