combinationRecord.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. import request from '@/config/axios'
  2. export interface CombinationRecordVO {
  3. id: number // 拼团记录编号
  4. activityId: number // 拼团活动编号
  5. nickname: string // 用户昵称
  6. avatar: string // 用户头像
  7. headId: number // 团长编号
  8. expireTime: string // 过期时间
  9. userSize: number // 可参团人数
  10. userCount: number // 已参团人数
  11. status: number // 拼团状态
  12. spuName: string // 商品名字
  13. picUrl: string // 商品图片
  14. virtualGroup: boolean // 是否虚拟成团
  15. startTime: string // 开始时间 (订单付款后开始的时间)
  16. endTime: string // 结束时间(成团时间/失败时间)
  17. }
  18. // 查询拼团记录列表
  19. export const getCombinationRecordPage = async (params) => {
  20. return await request.get({ url: '/promotion/combination-record/page', params })
  21. }
  22. // 获得拼团记录的概要信息
  23. export const getCombinationRecordSummary = async () => {
  24. return await request.get({ url: '/promotion/combination-record/get-summary' })
  25. }
  26. // 获得拼团记录分页 tab count
  27. export const getCombinationRecordCount = async () => {
  28. return await request.get({ url: '/promotion/combination-record/get-count' })
  29. }