product verity
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user