import { Injectable } from '@nestjs/common';
import { TaxEntity } from '../../domain/entities/tax.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { TaxModel } from '../models/tax.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 TaxReadService extends BaseReadService<TaxEntity> {
  constructor(
    @InjectRepository(TaxModel, CONNECTION_NAME.DEFAULT)
    private repo: Repository<TaxModel>,
  ) {
    super(repo);
  }
}
