import { Injectable } from '@nestjs/common' ; import { CourseTaken } from '../entity/course-taken.entity' ; import { Mapper } from '../../CommonsModule/mapper/mapper' ; import { CourseTakenDTO } from '../dto/course-taken.dto' ; @ Injectable ( ) export class CourseTakenMapper extends Mapper < CourseTaken , CourseTakenDTO > { constructor ( ) { super ( CourseTaken , CourseTakenDTO ) ; } toDto ( entityObject ) { return super . toDto ( entityObject ) ; } toDtoList ( entityArray ) { return super . toDtoList ( entityArray ) ; } toEntity ( dtoObject ) { return super . toEntity ( dtoObject ) ; } toEntityList ( dtoArray ) { return super . toEntityList ( dtoArray ) ; } }