feat: Add new modules and services for stocks, transactions, and products
This commit introduces new nest.js modules for stocks, transactions and products, along with their respective services and controllers. These provide foundation for further feature development in these areas.
This commit is contained in:
parent
5d696a9118
commit
cb8de798c3
4
src/products/products.controller.ts
Normal file
4
src/products/products.controller.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('products')
|
||||
export class ProductsController {}
|
9
src/products/products.module.ts
Normal file
9
src/products/products.module.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ProductsController } from './products.controller';
|
||||
import { ProductsService } from './products.service';
|
||||
|
||||
@Module({
|
||||
controllers: [ProductsController],
|
||||
providers: [ProductsService]
|
||||
})
|
||||
export class ProductsModule {}
|
4
src/products/products.service.ts
Normal file
4
src/products/products.service.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class ProductsService {}
|
4
src/stocks/stocks.controller.ts
Normal file
4
src/stocks/stocks.controller.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('stocks')
|
||||
export class StocksController {}
|
9
src/stocks/stocks.module.ts
Normal file
9
src/stocks/stocks.module.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { StocksController } from './stocks.controller';
|
||||
import { StocksService } from './stocks.service';
|
||||
|
||||
@Module({
|
||||
controllers: [StocksController],
|
||||
providers: [StocksService]
|
||||
})
|
||||
export class StocksModule {}
|
4
src/stocks/stocks.service.ts
Normal file
4
src/stocks/stocks.service.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class StocksService {}
|
4
src/transactions/transactions.controller.ts
Normal file
4
src/transactions/transactions.controller.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('transactions')
|
||||
export class TransactionsController {}
|
9
src/transactions/transactions.module.ts
Normal file
9
src/transactions/transactions.module.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TransactionsController } from './transactions.controller';
|
||||
import { TransactionsService } from './transactions.service';
|
||||
|
||||
@Module({
|
||||
controllers: [TransactionsController],
|
||||
providers: [TransactionsService]
|
||||
})
|
||||
export class TransactionsModule {}
|
4
src/transactions/transactions.service.ts
Normal file
4
src/transactions/transactions.service.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class TransactionsService {}
|
Loading…
x
Reference in New Issue
Block a user