import type { ShopCoupon } from '@/api/shop/shopCoupon/model'

export type { ShopCoupon }

/** 优惠券状态枚举 */
export enum CouponStatus {
  Unused = 0,
  Used = 1,
  Expired = 2,
}

/** 优惠券状态文本 */
export const CouponStatusText: Record<CouponStatus, string> = {
  [CouponStatus.Unused]: '未使用',
  [CouponStatus.Used]: '已使用',
  [CouponStatus.Expired]: '已过期',
}
