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

9 lines
475 B
TypeScript
Raw Normal View History

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