concrete-crud.service.ts 487 B

12345678910
  1. import { AppDataSource } from '../data-source';
  2. import { GenericCrudService, UserTrackingOptions, RelationFieldOptions } from './generic-crud.service';
  3. import { ObjectLiteral } from 'typeorm';
  4. // 创建具体CRUD服务类
  5. export class ConcreteCrudService<T extends ObjectLiteral> extends GenericCrudService<T> {
  6. constructor(entity: new () => T, options?: { userTracking?: UserTrackingOptions; relationFields?: RelationFieldOptions }) {
  7. super(AppDataSource, entity, options);
  8. }
  9. }