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