import { DataSource, ObjectLiteral } from 'typeorm';
import { GenericCrudService, UserTrackingOptions, RelationFieldOptions } from './generic-crud.service';

// 创建具体CRUD服务类
export class ConcreteCrudService<T extends ObjectLiteral> extends GenericCrudService<T> {
  constructor(
    dataSource: DataSource,
    entity: new () => T,
    options?: { userTracking?: UserTrackingOptions; relationFields?: RelationFieldOptions }
  ) {
    super(dataSource, entity, options);
  }
}