1234567891011121314151617181920212223 |
- import {
- request
- } from "../utils/request";
- module.exports = {
- // 获取贺卡列表
- getActivityList: data => request('/card/activity', 'get', data),
- // 获取贺卡详情
- getActivityInfo: data => request(`/card/activity/template/${data}`, 'get'),
- // 获取贺卡作品
- getMyActivity: data => request('/card/activity/my', 'get', data),
- // 获取单条贺卡作品
- getOneActivity: data => request(`/card/activity/cardRead/${data}`, 'get'),
- // 保存贺卡
- saveActivity: data => request('/card/activity', 'post', data),
- // 触发播放音频埋点
- playAudioEvent: data => request(`/card/activity/play/${data}`, 'get'),
- // 点赞
- thumbsUp: data => request(`/card/activity/like/${data}`, 'get'),
- // 删除作品
- deleteActivity: data => request(`/card/activity/delete/${data}`, 'get'),
- // 获取分享文案
- getShareText: data => request('/card/activity/share', 'get', data),
- }
|