mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import {UserDTO, UserRoles} from '../../../common/entities/UserDTO';
|
|
|
|
export interface IUserManager {
|
|
findOne(filter: any): Promise<UserDTO>;
|
|
|
|
find(filter: any): Promise<UserDTO[]>;
|
|
|
|
createUser(user: UserDTO): Promise<UserDTO>;
|
|
|
|
deleteUser(id: number): Promise<UserDTO>;
|
|
|
|
changeRole(id: number, newRole: UserRoles): Promise<UserDTO>;
|
|
|
|
changePassword(request: any): Promise<void>;
|
|
}
|