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

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