You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
519 B
12 lines
519 B
import { User } from './user.entity';
|
|
import { Repository } from 'typeorm';
|
|
import { CreateUserDto } from './dto/create-user.dto';
|
|
import { ChangePasswordDto } from './dto/change-password.dto';
|
|
export declare class UsersService {
|
|
private repo;
|
|
constructor(repo: Repository<User>);
|
|
findByName(name: string): Promise<User | null>;
|
|
findByEmail(email: string): Promise<User | null>;
|
|
create(dto: CreateUserDto): Promise<User>;
|
|
changePassword(userId: number, dto: ChangePasswordDto): Promise<void>;
|
|
}
|
|
|