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