'use server' import {callByUser} from '@/actions/base' export async function RechargeByAlipay(props: { amount: number }) { return callByUser<{ trade_no: string pay_url: string }>('/api/user/recharge/prepare/alipay', props) } export async function RechargeByAlipayConfirm(props: { trade_no: string }) { return callByUser('/api/user/recharge/confirm/alipay', props) } export async function RechargeByWechat(props: { amount: number }) { return callByUser<{ trade_no: string pay_url: string }>('/api/user/recharge/prepare/wechat', props) } export async function RechargeByWechatConfirm(props: { trade_no: string }) { return callByUser('/api/user/recharge/confirm/wechat', props) }