/**
 * 用户优惠券 API
 */

import { get } from '@/utils/request';

export interface UserCouponQueryParams {
  page?: number;
  pageSize?: number;
  userId?: number;
  couponCode?: string;
  status?: number;
}

export interface UserCouponListResponse {
  list: any[];
  total: number;
  pageSize: number;
  currentPage: number;
}

/** 获取用户优惠券列表 */
export function getUserCouponList(params: UserCouponQueryParams): Promise<UserCouponListResponse> {
  return get('/marketing/coupon/user/list', params);
}
