import request from '@/utils/request' // 查询文章列表不包含内容 export function listArticleNotContent(query) { return request({ url: '/admin/listArticleNotContent', method: 'get', params: query }) } // 查询文章列表 export function listArticle(query) { return request({ url: '/admin/list', method: 'get', params: query }) } // 查询文章详细 export function getArticle(id) { return request({ url: '/admin/' + id, method: 'get' }) } // 新增文章 export function addArticle(data) { return request({ url: '/admin', method: 'post', data: data }) } // 修改文章 export function updateArticle(data) { return request({ url: '/admin', method: 'put', data: data }) } // 删除文章 export function delArticle(id) { return request({ url: '/admin/' + id, method: 'delete' }) } // 导出文章 export function exportArticle(query) { return request({ url: '/admin/export', method: 'get', params: query }) }