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