import { requestClient } from '#/api/request';

const prefix = 'vip-store/';

export async function getVipStoreList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

export async function getVipStoreInfo(storeId: number) {
  return requestClient.get<any>(`${prefix}info`, { params: { store_id: storeId } });
}

export async function openVipStore(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}open`, data);
}

export async function getVipDurationPresets() {
  return requestClient.get<any>(`${prefix}duration-presets`);
}
