1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

10 lines
388 B
TypeScript
Raw Normal View History

2016-12-27 16:09:47 +01:00
import {UserDTO, UserRoles} from "../../../common/entities/UserDTO";
export interface IUserManager {
2017-07-03 19:17:49 +02:00
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>;
}