feat: Implement chapter and lesson management with new services and types, and introduce Minio service.

This commit is contained in:
JakkrapartXD 2026-01-20 13:39:42 +07:00
parent 40b95ad902
commit 6bbbde062a
8 changed files with 382 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import { Prisma } from '@prisma/client';
import { config } from '../config';
import { logger } from '../config/logger';
import jwt from 'jsonwebtoken';
import { createCategory, createCategoryResponse, deleteCategoryResponse, updateCategory, updateCategoryResponse, listCategoriesResponse, Category } from '../types/categories.type';
import { createCategory, createCategoryResponse, deleteCategoryResponse, updateCategory, updateCategoryResponse, listCategoriesResponse, Category } from '../types/Categories.type';
import { UnauthorizedError, ValidationError, ForbiddenError } from '../middleware/errorHandler';
export class CategoryService {