📅  最后修改于: 2022-03-11 14:55:09             🧑  作者: Mango
export class UserService {
private userRepository: UserRepository;
private authRepository: AuthRepository;
constructor(
private readonly connection: Connection
) {
this.userRepository = this.connection.getCustomRepository(UserRepository);
this.authRepository = this.connection.getCustomRepository(AuthRepository);
}
}