import request from "../utils/request";

/**
 * 预支付接口
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=e8d757e6-25a4-4088-8290-2840017042a1)
 */
export const vipPrePay = (data) => request.post("/weapp/vip/prepay", data);

/**
 * 支付完成接口
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=4aeef220-7df1-415c-a13a-575af72dbaca)
 */
export const vipCompletePay = (data) =>
  request.post("/weapp/vip/complete/pay", data);

/**
 * [轮询]支付状态查询接口
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=3b0d4bb2-923f-44e5-b733-3f629a9492fd)
 */
export const vipQueryPay = (data) => request.post("/weapp/vip/query/pay", data);
