import { Injectable } from '@nestjs/common';
import { UserEntity } from '../../domain/entities/user.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { UserModel } from '../models/user.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';
import { BaseReadService } from 'src/core/modules/data/service/base-read.service';

@Injectable()
export class UserReadService extends BaseReadService<UserEntity> {
  constructor(
    @InjectRepository(UserModel, CONNECTION_NAME.DEFAULT)
    private repo: Repository<UserModel>,
  ) {
    super(repo);
  }
}
