/
viktorphp
/
back-socket
Обзор
Документация
Войти
/
viktorphp
/
back-socket
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/modules/ancestors/ancestors.module.ts
46 строк
2 KB
Иванов Виктор Евгеньевич
[feat-tree]: добавить функционал для построения дерева предков
13 апр 2026, 21:34
13 апр 2026, 21:34
52b3f3d
Код
Авторство
О чём код?
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Ancestor } from '../../entities/ancestors/ancestor.entity'; import { AncestorContribution } from '../../entities/ancestors/ancestor-contribution.entity'; import { AncestorMedia } from '../../entities/ancestors/ancestor-media.entity'; import { AncestorSibling } from '../../entities/ancestors/ancestor-sibling.entity'; import { FamilyRequest } from '../../entities/ancestors/family-request.entity'; import { UserTree } from '../../entities/ancestors/user-tree.entity'; import { User } from '../../entities/users/user.entity'; import { AncestorsService } from '../../services/ancestors/ancestors.service'; import { AncestorTreeService } from '../../services/ancestors/ancestor-tree.service'; import { FamilyRequestsService } from '../../services/ancestors/family-requests.service'; import { AncestorsController } from '../../controllers/ancestors/ancestors.controller'; import { FamilyRequestsController } from '../../controllers/ancestors/family-requests.controller'; import { UserTreeController } from '../../controllers/ancestors/user-tree.controller'; import { AncestorsGateway } from '../../gateways/ancestors/ancestors.gateway'; import { UsersModule } from '../users/users.module'; import { StorageService } from '../../services/storage/storage.service'; @Module({ imports: [ TypeOrmModule.forFeature([ Ancestor, AncestorContribution, AncestorMedia, AncestorSibling, FamilyRequest, UserTree, User, ]), UsersModule, ], controllers: [ AncestorsController, FamilyRequestsController, UserTreeController, ], providers: [ AncestorsService, AncestorTreeService, FamilyRequestsService, AncestorsGateway, StorageService, ], }) export class AncestorsModule {}