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