import { server } from "@/utils/client";

export interface RedPacketParams {
  /**
   * 活动id
   */
  id: number;
  // 红包索引
  index: number;
}

// 未登陆的红包信息
export const redPacketApi = () => {
  return server.request<any>({
      url: "/v1/api/front/activity/red_packet",
      data: {renter_id:'10000'},
      method: "POST",
  });
};

// 登陆后的红包状态信息
export const lredPacketApi = () => {
  return server.request<any>({
      url: "/v1/api/user/activity/red_packet",
      data: {renter_id:'10000'},
      method: "POST",
  });
};




export const receiveRedPacketApi = (data:RedPacketParams) => {
  return server.request<any>({
      url: "/v1/api/user/receive_red_packet",
      data,
      method: "POST",
  });
};
