Files
lgp-wx-plus/api/page/favorite.js
2026-08-20 19:15:41 +08:00

12 lines
285 B
JavaScript

import { get, post } from '../request'
const prefix = 'favorite/'
export const getFavoriteListApi = async () => {
return await get(`${prefix}list`)
}
export const toggleFavoriteApi = async (catalogueId) => {
return await post(`${prefix}toggle`, { catalogue_id: catalogueId })
}