import apiService from './apiClient'; // 支付方式类型定义 export interface PaymentMethod { key: string; value: string | string[]; } export interface CountryPaymentMethods { country?: number; country_name?: string; payment_methods: PaymentMethod[]; } export interface PaymentMethodsResponse { current_country_code: number; current_country_methods: PaymentMethod[]; other_country_methods: CountryPaymentMethods[]; } export const payApi = { // 获取当前国家支付方式 getCountryPaymentMethods: () => { return apiService.get('/api/payment/country_payment_methods'); }, };