combination.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/sheep/request';
  2. // 拼团 API
  3. const CombinationApi = {
  4. // 获得拼团活动分页
  5. getCombinationActivityPage: (params) => {
  6. return request({
  7. url: '/promotion/combination-activity/page',
  8. method: 'GET',
  9. params,
  10. });
  11. },
  12. // 获得拼团活动明细
  13. getCombinationActivity: (id) => {
  14. return request({
  15. url: '/promotion/combination-activity/get-detail',
  16. method: 'GET',
  17. params: {
  18. id,
  19. },
  20. });
  21. },
  22. // 获得最近 n 条拼团记录(团长发起的)
  23. getHeadCombinationRecordList: (activityId, status, count) => {
  24. return request({
  25. url: '/promotion/combination-record/get-head-list',
  26. method: 'GET',
  27. params: {
  28. activityId,
  29. status,
  30. count,
  31. },
  32. });
  33. },
  34. // 获得我的拼团记录分页
  35. getCombinationRecordPage: (params) => {
  36. return request({
  37. url: "/promotion/combination-record/page",
  38. method: 'GET',
  39. params
  40. });
  41. },
  42. // 获得拼团记录明细
  43. getCombinationRecordDetail: (id) => {
  44. return request({
  45. url: '/promotion/combination-record/get-detail',
  46. method: 'GET',
  47. params: {
  48. id,
  49. },
  50. });
  51. },
  52. // 获得拼团记录的概要信息
  53. getCombinationRecordSummary: () => {
  54. return request({
  55. url: '/promotion/combination-record/get-summary',
  56. method: 'GET',
  57. });
  58. },
  59. };
  60. export default CombinationApi;