20 lines
358 B
Java
20 lines
358 B
Java
|
package com.dao;
|
||
|
|
||
|
import com.domain.User;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
public interface UserDao {
|
||
|
List<User> findAll();
|
||
|
|
||
|
Long save(User user);
|
||
|
|
||
|
void saveUserRoleRel(Long id, Long[] roleIds);
|
||
|
|
||
|
void delUserRoleRel(Long userId);
|
||
|
|
||
|
void del(Long userId);
|
||
|
|
||
|
User findByUsernameAndPassword(String username, String password);
|
||
|
}
|