activity.js 910 B

1234567891011121314151617181920212223
  1. import {
  2. request
  3. } from "../utils/request";
  4. module.exports = {
  5. // 获取贺卡列表
  6. getActivityList: data => request('/card/activity', 'get', data),
  7. // 获取贺卡详情
  8. getActivityInfo: data => request(`/card/activity/template/${data}`, 'get'),
  9. // 获取贺卡作品
  10. getMyActivity: data => request('/card/activity/my', 'get', data),
  11. // 获取单条贺卡作品
  12. getOneActivity: data => request(`/card/activity/cardRead/${data}`, 'get'),
  13. // 保存贺卡
  14. saveActivity: data => request('/card/activity', 'post', data),
  15. // 触发播放音频埋点
  16. playAudioEvent: data => request(`/card/activity/play/${data}`, 'get'),
  17. // 点赞
  18. thumbsUp: data => request(`/card/activity/like/${data}`, 'get'),
  19. // 删除作品
  20. deleteActivity: data => request(`/card/activity/delete/${data}`, 'get'),
  21. // 获取分享文案
  22. getShareText: data => request('/card/activity/share', 'get', data),
  23. }