import http from './index.js';

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

// 查询文章评论
export const getArticleComment = (ArticleCommentId) => http.get('/cms/article-comment/' + ArticleCommentId)

// 查询全部评论
export const listArticleComment = (params) => http.get('/cms/article-comment', {params})

// 添加文章评论
export const addArticleComment = (data) => http.post('/cms/article-comment', data)

// 删除文章评论
export const removeArticleComment = (id) => http.delete('/cms/article-comment/' + id)


// 未读评论数
export const getArticleCommentUnreadCount = () => http.get('/cms/article-comment/unread')

export default {
	pageArticleComment,
	listArticleComment,
	getArticleComment,
	addArticleComment,
	removeArticleComment,
	getArticleCommentUnreadCount
}
