product verity

This commit is contained in:
morteza-mortezai
2025-11-29 08:52:05 +03:30
parent e54fc58b37
commit 37ecf9f449
35 changed files with 741 additions and 529 deletions
+8 -9
View File
@@ -39,17 +39,16 @@ import {
AttributeValueRepo,
CategoryAttributeRepo,
CategoryRepository,
ColorRepository,
MeterageRepository,
SizeRepository,
ThemeRepository,
ThemeValueRepository,
createAttributeValueRepo,
createCategoryAttributeRepo,
createCategoryRepo,
createColorRepo,
createMeterageRepo,
createSizeRepo,
createThemeRepo,
createThemeValueRepo,
} from "../modules/category/category.repository";
import { CategoryService } from "../modules/category/category.service";
import { ThemeService } from "../modules/category/theme.service";
import { ChatGateway } from "../modules/chat/chat.gateway";
import { ChatService } from "../modules/chat/chat.service";
import { ChatRepo, createChatRepo } from "../modules/chat/repository/chat.repository";
@@ -158,6 +157,7 @@ const containerModules = new AsyncContainerModule(async (bind) => {
bind<AsanPardakhtGateway>(IOCTYPES.AsanPardakhtGateway).to(AsanPardakhtGateway).inSingletonScope();
// #region services
bind<CategoryService>(IOCTYPES.CategoryService).to(CategoryService).inSingletonScope();
bind<ThemeService>(IOCTYPES.ThemeService).to(ThemeService).inSingletonScope();
bind<AuthService>(IOCTYPES.AuthService).to(AuthService).inSingletonScope();
bind<ChatGateway>(IOCTYPES.ChatGateway).to(ChatGateway).inSingletonScope();
bind<ChatService>(IOCTYPES.ChatService).to(ChatService).inSingletonScope();
@@ -217,9 +217,8 @@ const containerModules = new AsyncContainerModule(async (bind) => {
bind<ProductRepository>(IOCTYPES.ProductRepository).toDynamicValue(createProductRepo).inSingletonScope();
bind<ShipmentRepository>(IOCTYPES.ShipmentRepository).toDynamicValue(createShipmentRepository).inSingletonScope();
bind<ProductVariantRepository>(IOCTYPES.ProductVariantRepository).toDynamicValue(createProductVariantRepo).inSingletonScope();
bind<ColorRepository>(IOCTYPES.ColorRepository).toDynamicValue(createColorRepo).inSingletonScope();
bind<SizeRepository>(IOCTYPES.SizeRepository).toDynamicValue(createSizeRepo).inSingletonScope();
bind<MeterageRepository>(IOCTYPES.MeterageRepository).toDynamicValue(createMeterageRepo).inSingletonScope();
bind<ThemeRepository>(IOCTYPES.ThemeRepository).toDynamicValue(createThemeRepo).inSingletonScope();
bind<ThemeValueRepository>(IOCTYPES.ThemeValueRepository).toDynamicValue(createThemeValueRepo).inSingletonScope();
bind<QuestionRepository>(IOCTYPES.QuestionRepository).toDynamicValue(createQuestionRepo).inSingletonScope();
bind<CommentRepository>(IOCTYPES.CommentRepository).toDynamicValue(createCommentRepo).inSingletonScope();
bind<CartRepository>(IOCTYPES.CartRepository).toDynamicValue(createCartRepo).inSingletonScope();
+3
View File
@@ -5,6 +5,7 @@ export const IOCTYPES = {
PassportAuth: Symbol.for("PassportAuth"),
AuthService: Symbol.for("AuthService"),
CategoryService: Symbol.for("CategoryService"),
ThemeService: Symbol.for("ThemeService"),
UserService: Symbol.for("UserService"),
AdminService: Symbol.for("AdminService"),
SellerService: Symbol.for("SellerService"),
@@ -68,6 +69,8 @@ export const IOCTYPES = {
ColorRepository: Symbol.for("ColorRepository"),
SizeRepository: Symbol.for("SizeRepository"),
MeterageRepository: Symbol.for("MeterageRepository"),
ThemeRepository: Symbol.for("ThemeRepository"),
ThemeValueRepository: Symbol.for("ThemeValueRepository"),
QuestionRepository: Symbol.for("QuestionRepository"),
CommentRepository: Symbol.for("CommentRepository"),
ProductRequestRepo: Symbol.for("ProductRequestRepo"),