Initial project commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user