mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 02:24:54 +00:00
subspace product repository created
This commit is contained in:
@ -5,7 +5,6 @@ import {
|
||||
SpaceEntity,
|
||||
SpaceLinkEntity,
|
||||
SpaceProductItemEntity,
|
||||
SubspaceEntity,
|
||||
} from '../entities';
|
||||
|
||||
@Injectable()
|
||||
@ -14,12 +13,6 @@ export class SpaceRepository extends Repository<SpaceEntity> {
|
||||
super(SpaceEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
@Injectable()
|
||||
export class SubspaceRepository extends Repository<SubspaceEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SpaceLinkRepository extends Repository<SpaceLinkEntity> {
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
import { DataSource, Repository } from 'typeorm';
|
||||
import {
|
||||
SubspaceEntity,
|
||||
SubspaceProductEntity,
|
||||
SubspaceProductItemEntity,
|
||||
} from '../entities';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceRepository extends Repository<SubspaceEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceProductRepository extends Repository<SubspaceProductEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceProductEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceProductItemRepository extends Repository<SubspaceProductItemEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceProductItemEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user