import http from './index.js';

// 分页查询文章
export const pageArticle = (params) => http.get('/cms/article/page', {params})

// 查询文章
export const getArticle = (articleId) => http.get('/cms/article/' + articleId)

// 添加文章
export const addArticle = (data) => http.post('/cms/article', data)


export default {
	pageArticle,
	getArticle,
	addArticle
}
