import { Injectable } from '@nestjs/common';
import { BaseDataService } from 'src/core/modules/data/service/base-data.service';
import { RefundEntity } from '../../domain/entities/refund.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { RefundModel } from '../models/refund.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';

@Injectable()
export class RefundDataService extends BaseDataService<RefundEntity> {
  constructor(
    @InjectRepository(RefundModel, CONNECTION_NAME.DEFAULT)
    private repo: Repository<RefundModel>,
  ) {
    super(repo);
  }
}
