import { request } from 'umi' ; export async function queryComments ( params ? ) { return request ( 'comments' , { params , } ) ; } export async function updateComment ( id , data ) { return request ( `comments/${ id }` , { method : 'PUT' , data , } ) ; }