import { Injectable } from '@nestjs/common' ; import { Templates } from '../entity/templates.entity' ; import { TemplateDTO } from '../dto/templates.dto' ; import { Mapper } from '../../CommonsModule/mapper/mapper' ; @ Injectable ( ) export class TemplateMapper extends Mapper < Templates , TemplateDTO > { constructor ( ) { super ( Templates , TemplateDTO ) ; } toDto ( entityObject ) { return super . toDto ( entityObject ) ; } toDtoList ( entityArray ) { return super . toDtoList ( entityArray ) ; } toEntity ( dtoObject ) { return super . toEntity ( dtoObject ) ; } toEntityList ( dtoArray ) { return super . toEntityList ( dtoArray ) ; } }