activity.js 605 B

1234567891011121314151617
  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. saveActivity: data => request('/card/activity', 'post', data),
  13. // 点赞
  14. thumbsUp: data => request(`/card/activity/like/${data}`, 'get'),
  15. // 删除作品
  16. deleteActivity: data => request(`card/activity/delete/${data}`, 'get'),
  17. }