point.js 773 B

12345678910111213141516171819202122232425262728293031323334
  1. import request from '@/sheep/request';
  2. const PointApi = {
  3. // 获得积分商城活动分页
  4. getPointActivityPage: (params) => {
  5. return request({ url: 'promotion/point-activity/page', method: 'GET', params });
  6. },
  7. // 获得积分商城活动列表,基于活动编号数组
  8. getPointActivityListByIds: (ids) => {
  9. return request({
  10. url: '/promotion/point-activity/list-by-ids',
  11. method: 'GET',
  12. params: {
  13. ids,
  14. },
  15. });
  16. },
  17. /**
  18. * 获得积分商城活动明细
  19. * @param {number} id 积分商城活动编号
  20. * @return {*}
  21. */
  22. getPointActivity: (id) => {
  23. return request({
  24. url: 'promotion/point-activity/get-detail',
  25. method: 'GET',
  26. params: { id },
  27. });
  28. },
  29. };
  30. export default PointApi;