2
0

feat:多货币以及支付方式配置

This commit is contained in:
zhongzm
2025-04-27 19:19:03 +08:00
parent 59d54185f5
commit 4422a2bab2
8 changed files with 233 additions and 13 deletions

View File

@@ -490,6 +490,29 @@ export function updateUserProfile(data: { email: string; code: string }) {
data
});
}
/** 更新支付配置 */
export function updatePaymentConfig(data: {
currency: string;
currencySymbol: string;
paymentMethods: string[];
}) {
return request<any>({
url: '/system/config/pay',
method: 'put',
data
});
}
/** 获取支付配置 */
export function getPaymentConfig() {
return request<{
currency: string;
currencySymbol: string;
paymentMethods: string[];
}>({
url: '/system/config/pay',
method: 'get'
});
}