import { http } from "@/utils/http";

type Result = {
  code: number;
  message: string;
  data?: any;
};

type ResultTable = {
  code: number;
  message: string;
  data?: {
    list: Array<any>;
    total: number;
    pageSize: number;
    currentPage: number;
  };
};

export const getUserCouponList = (params: {
  page?: number;
  pageSize?: number;
  userId?: number;
  couponCode?: string;
  status?: number;
}) => {
  return http.request<ResultTable>("get", "/marketing/coupon/user/list", { params });
};
