Files

12 lines
285 B
JavaScript
Raw Permalink Normal View History

2026-08-20 19:15:41 +08:00
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 })
}