From b03b178fe3a4404d85321804b419392f5528eae5 Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 12 Jul 2024 14:24:02 +0200 Subject: [PATCH] docs(products): add TODOs for future functionalities This commit introduces several TODOs for future operations on the 'products' service and controller. These primarily outline desired functionalities such as adding, editing, and deleting a product, and listing all products with pagination. --- src/products/products.controller.ts | 10 +++++++++- src/products/products.service.ts | 11 ++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/products/products.controller.ts b/src/products/products.controller.ts index 054ba8c..834b245 100644 --- a/src/products/products.controller.ts +++ b/src/products/products.controller.ts @@ -1,4 +1,12 @@ import { Controller } from '@nestjs/common'; @Controller('products') -export class ProductsController {} +export class ProductsController { + //TODO add a new product (admin) + + //TODO edit a product (admin) + + //TODO delete a product (admin) + + //TODO list all product with pagination. +} diff --git a/src/products/products.service.ts b/src/products/products.service.ts index b3cc396..ce0db22 100644 --- a/src/products/products.service.ts +++ b/src/products/products.service.ts @@ -1,4 +1,13 @@ import { Injectable } from '@nestjs/common'; @Injectable() -export class ProductsService {} +export class ProductsService { + //TODO add a new product (admin) + + //TODO edit a product (admin) + + //TODO delete a product (admin) + + //TODO list all product with pagination. + +}