1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/model/IUserManager.ts
2016-12-26 23:36:38 +01:00

9 lines
553 B
TypeScript

import {User, UserRoles} from "../../common/entities/User";
export interface IUserManager {
findOne(filter: any, cb: (error: any, result: User) => void): void;
find(filter: any, cb: (error: any, result: Array<User>) => void): void;
createUser(user: User, cb: (error: any, result: User) => void): void;
deleteUser(id: number, cb: (error: any, result: string) => void): void;
changeRole(id: number, newRole: UserRoles, cb: (error: any) => void): void;
changePassword(request: any, cb: (error: any, result: string) => void): void;
}