feat:多货币以及支付方式配置
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user