| 1234567891011121314151617181920212223242526 |
- /**
- * Wallet / Recharge API module
- * 钱包充值配置等相关接口
- */
- import { http } from '~/utils/request'
- import type { ResultVOString, WalletRechargeConfigVO } from '~/types/api'
- export const walletApi = {
- /**
- * 获取浏览器端钱包充值配置
- * 对应后端接口:POST /wallet/recharge/browser/goldCoin/config
- */
- getRechargeConfig() {
- return http.post<WalletRechargeConfigVO>('/wallet/recharge/browser/goldCoin/config')
- },
- /**
- * 提交浏览器端钱包充值
- * 对应后端接口:POST /wallet/recharge/browser/submit
- * @param id 充值档位 ID(后端返回的 items.id)
- */
- submitRecharge(id: string, uri: string) {
- return http.post<ResultVOString>('/wallet/recharge/browser/submit', { id, uri })
- },
- }
|