import http from './index.js';

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

// 查询文章点赞
export const getArticleLike = (ArticleLikeId) => http.get('/cms/article-like/' + ArticleLikeId)

// 查询全部文字
export const listArticleLike = (params) => http.get('/cms/article-like', {params})

// 添加文章点赞
export const addArticleLike = (data) => http.post('/cms/article-like', data)

// 删除文章点赞
export const removeArticleLike = (id) => http.delete('/cms/article-like/' + id)

export default {
	pageArticleLike,
	listArticleLike,
	getArticleLike,
	addArticleLike,
	removeArticleLike
}
