talk_appAmin/api/like/like.js

54 lines
881 B
JavaScript

import request from '@/utils/request'
// 查询话题点赞列表
export function listLike(query) {
return request({
url: '/like/like/list',
method: 'get',
params: query
})
}
// 查询话题点赞详细
export function getLike(id) {
return request({
url: '/like/like/' + id,
method: 'get'
})
}
// 新增话题点赞
export function addLike(data) {
return request({
url: '/like/like',
method: 'post',
data: data
})
}
// 修改话题点赞
export function updateLike(data) {
return request({
url: '/like/like',
method: 'put',
data: data
})
}
// 删除话题点赞
export function delLike(id) {
return request({
url: '/like/like/' + id,
method: 'delete'
})
}
// 删除话题点赞
export function delLikeByPostLike(data) {
return request({
url: '/like/like',
method: 'delete',
data: data
})
}