combination.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. // 获得拼团活动列表,基于活动编号数组
  23. getCombinationActivityListByIds: (ids) => {
  24. return request({
  25. url: '/promotion/combination-activity/list-by-ids',
  26. method: 'GET',
  27. params: {
  28. ids,
  29. },
  30. });
  31. },
  32. // 获得最近 n 条拼团记录(团长发起的)
  33. getHeadCombinationRecordList: (activityId, status, count) => {
  34. return request({
  35. url: '/promotion/combination-record/get-head-list',
  36. method: 'GET',
  37. params: {
  38. activityId,
  39. status,
  40. count,
  41. },
  42. });
  43. },
  44. // 获得我的拼团记录分页
  45. getCombinationRecordPage: (params) => {
  46. return request({
  47. url: '/promotion/combination-record/page',
  48. method: 'GET',
  49. params,
  50. });
  51. },
  52. // 获得拼团记录明细
  53. getCombinationRecordDetail: (id) => {
  54. return request({
  55. url: '/promotion/combination-record/get-detail',
  56. method: 'GET',
  57. params: {
  58. id,
  59. },
  60. });
  61. },
  62. // 获得拼团记录的概要信息
  63. getCombinationRecordSummary: () => {
  64. return request({
  65. url: '/promotion/combination-record/get-summary',
  66. method: 'GET',
  67. });
  68. },
  69. };
  70. export default CombinationApi;