2025-08-04 17:05:53 +09:00
|
|
|
import { User } from './entities/user.entity';
|
2025-07-15 17:32:19 +09:00
|
|
|
import { Repository } from 'typeorm';
|
|
|
|
import { CreateUserDto } from './dto/create-user.dto';
|
2025-07-16 16:25:16 +09:00
|
|
|
import { ChangePasswordDto } from './dto/change-password.dto';
|
2025-08-04 16:18:30 +09:00
|
|
|
import { UserInfoResponseDto } from './dto/user-info-response.dto';
|
2025-07-15 17:32:19 +09:00
|
|
|
export declare class UsersService {
|
|
|
|
private repo;
|
|
|
|
constructor(repo: Repository<User>);
|
2025-07-18 15:02:46 +09:00
|
|
|
findById(id: number): Promise<User | null>;
|
2025-07-15 17:32:19 +09:00
|
|
|
findByName(name: string): Promise<User | null>;
|
|
|
|
findByEmail(email: string): Promise<User | null>;
|
|
|
|
create(dto: CreateUserDto): Promise<User>;
|
2025-07-16 16:25:16 +09:00
|
|
|
changePassword(userId: number, dto: ChangePasswordDto): Promise<void>;
|
2025-08-04 16:18:30 +09:00
|
|
|
softDelete(userId: number): Promise<void>;
|
2025-07-18 15:02:46 +09:00
|
|
|
findUserInfoByIdOrFail(id: number): Promise<UserInfoResponseDto>;
|
2025-08-04 16:18:30 +09:00
|
|
|
findUserWithProfileByIdOrFail(id: number): Promise<UserInfoResponseDto>;
|
2025-07-15 17:32:19 +09:00
|
|
|
}
|