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