import { Injectable } from '@nestjs/common' ; import { CreateMessageDto } from '../form/create_message.dto' ; import { CommentEntity } from '../entities/comment.entity' ; import { CreateReplayDto } from '../form/create_replay.dto' ; @ Injectable ( ) export class CommentService { constructor ( ) { } createMessage ( createMessageDto , userId ) { return CommentEntity . createMessage ( createMessageDto , userId ) ; } createReplay ( createReplayDto , userId ) { return CommentEntity . createReplay ( createReplayDto , userId ) ; } getComment ( articleId ? , bloggerId ? ) { return CommentEntity . getComment ( articleId , bloggerId ) ; } getList ( page , size , commentId ) { return CommentEntity . getList ( page , size , commentId ) ; } deleteMessage ( messageId , userId ) { return CommentEntity . deleteMessage ( messageId , userId ) ; } deleteReplay ( replayId , userId ) { return CommentEntity . deleteReplay ( replayId , userId ) ; } }