1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/model/interfaces/IUserManager.ts

9 lines
574 B
TypeScript
Raw Normal View History

2016-12-27 23:09:47 +08:00
import {UserDTO, UserRoles} from "../../../common/entities/UserDTO";
export interface IUserManager {
findOne(filter: any, cb: (error: any, result: UserDTO) => void): void;
find(filter: any, cb: (error: any, result: Array<UserDTO>) => void): void;
createUser(user: UserDTO, cb: (error: any, result: UserDTO) => 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;
}