mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 11:34:55 +00:00
common module import
This commit is contained in:
@ -5,6 +5,8 @@ import {
|
||||
SpaceProductItemModelEntity,
|
||||
SpaceProductModelEntity,
|
||||
SubspaceModelEntity,
|
||||
SubspaceProductItemModelEntity,
|
||||
SubspaceProductModelEntity,
|
||||
} from '../entities';
|
||||
|
||||
@Injectable()
|
||||
@ -20,6 +22,20 @@ export class SubspaceModelRepository extends Repository<SubspaceModelEntity> {
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceProductModelRepository extends Repository<SubspaceProductModelEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceProductModelEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceProductItemModelRepository extends Repository<SubspaceProductItemModelEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceProductItemModelEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SpaceProductModelRepository extends Repository<SpaceProductModelEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
|
||||
Reference in New Issue
Block a user