import { ObjectLiteral } from 'typeorm';
import { GenericCrudService, UserTrackingOptions, RelationFieldOptions } from './generic-crud.service';
import { AppDataSource } from '@d8d/shared-utils';

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