import { request } from '../axios.config' ; import { Message , Replay } from '@/client/types/comment.interface' ; export const user = { postComment ( commentId , content ) { return request . post ( '/comment/user/create-message' , { comment_id : commentId , content , } ) ; } , deleteMessage ( messageId ) { return request . get ( '/comment/user/delete-message' , { params : { message_id : messageId , } , } ) ; } , postReplay ( messageId , content ) { return request . post ( '/comment/user/create-replay' , { message_id : messageId , content , } ) ; } , deleteReplay ( replayId ) { return request . get ( '/comment/user/delete-replay' , { params : { replay_id : replayId , } , } ) ; } } ;