favorite.js 307 B

123456789101112131415161718
  1. import request from '@/utils/request'
  2. //获取收藏夹列表
  3. export function getcollectList(data) {
  4. return request({
  5. url: '/api/collect/user',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 取消收藏
  11. export function delcollect(data) {
  12. return request({
  13. url: '/api/collect/del',
  14. method: 'post',
  15. data
  16. });
  17. }