7 lines
398 B
JavaScript
7 lines
398 B
JavaScript
import { get, post, del } from "@/utils/request";
|
|
|
|
export const getComments = (spotId, params) => get(`/spots/${spotId}/comments`, params);
|
|
export const createComment = (spotId, data) => post(`/spots/${spotId}/comments`, data);
|
|
export const deleteComment = (commentId) => del(`/comments/${commentId}`);
|
|
export const reportComment = (commentId, data) => post(`/comments/${commentId}/report`, data);
|