zju.js 482 B

12345678910111213141516171819
  1. import http from "../http.js";
  2. // 最近观看
  3. export const watchRecord = () => {
  4. return http.get('/api/user/watchrecord/list');
  5. }
  6. // 追剧列表
  7. export const shelfList = () => {
  8. return http.get('/api/user/watchrecord/getshelf');
  9. }
  10. // 删除追剧
  11. export const delShelf = id => {
  12. return http.post('/api/user/watchrecord/cancelshelf',{video_id:id});
  13. }
  14. // 添加追剧
  15. export const storeshelf = id => {
  16. return http.post('/api/user/watchrecord/storeshelf',{video_id:id});
  17. }