| 12345678910111213141516 |
- import { get, post } from '@/utils/request'
- const collectApi = {
- collectVideoApi: '/api/content/collect/video',
- userCollectionApi: '/api/content/collect/video',
- }
- // 添加收藏
- export function collectVideo(data) {
- return post(collectApi.collectVideoApi, data)
- }
- // 获取用户收藏
- export function getUserCollection(pageNumber) {
- return get(collectApi.userCollectionApi + '?pageNumber=' + pageNumber)
- }
|