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

16 lines
394 B
TypeScript
Raw Normal View History

2018-03-31 03:30:30 +08:00
import {UserDTO, UserRoles} from '../../../common/entities/UserDTO';
2016-12-27 23:09:47 +08:00
export interface IUserManager {
2017-07-04 01:17:49 +08:00
findOne(filter: any): Promise<UserDTO>;
2018-03-31 03:30:30 +08:00
2017-07-04 01:17:49 +08:00
find(filter: any): Promise<UserDTO[]>;
2018-03-31 03:30:30 +08:00
2017-07-04 01:17:49 +08:00
createUser(user: UserDTO): Promise<UserDTO>;
2018-03-31 03:30:30 +08:00
2017-07-04 01:17:49 +08:00
deleteUser(id: number): Promise<UserDTO>;
2018-03-31 03:30:30 +08:00
2017-07-04 01:17:49 +08:00
changeRole(id: number, newRole: UserRoles): Promise<UserDTO>;
2018-03-31 03:30:30 +08:00
2017-07-04 01:17:49 +08:00
changePassword(request: any): Promise<void>;
}