Files
CosScene/clients/api/tag.js
T
2026-05-09 16:40:29 +08:00

6 lines
282 B
JavaScript

import { get, post, del } from "@/utils/request";
export const getTags = (params) => get("/tags", params);
export const addTagToSpot = (spotId, data) => post(`/spots/${spotId}/tags`, data);
export const removeTagFromSpot = (spotId, tagId) => del(`/spots/${spotId}/tags/${tagId}`);