import { Injectable } from '@nestjs/common';
import { {{pascalCase name}}Entity } from '../../domain/entities/{{dashCase name}}.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { {{pascalCase name}}Model } from '../models/{{dashCase name}}.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 {{pascalCase name}}ReadService extends BaseReadService<{{pascalCase name}}Entity> {
  constructor(
    @InjectRepository({{pascalCase name}}Model, CONNECTION_NAME.DEFAULT)
    private repo: Repository<{{pascalCase name}}Model>,
  ) {
    super(repo);
  }
}
