import request from '@/utils/request' ; import { Comment } from '@root/src/models/comment' ; export const getCommentsPage = ( params ? ) => { return request . get < ResponseList < Comment > > ( '/comments' , params ) ; } ; export const addComment = ( params ? ) => { return request . post < ResponseData > ( '/comment' , params ) ; } ; export const replyComment = ( params ? ) => { return request . put < ResponseData > ( '/comment/reply' , params ) ; } ;