// Wallet recharge config // 对应后端:/wallet/recharge/browser/goldCoin/config import type { NextDTO } from './skill' /** * 单个充值档位 * 后端字段:id, coinRechargeAmount, amount */ export interface WalletRechargeConfigItem { /** ID */ id: string /** 钻石数量 */ coinRechargeAmount: number /** 金额(数值) */ amount: number } /** * 钱包充值配置 */ export interface WalletRechargeConfigVO { /** 充值档位列表 */ items: WalletRechargeConfigItem[] } /** * 通用字符串结果 * 对应后端 ResultVOString.result */ export interface ResultVOString { /** 结果字符串(如收银台链接) */ result: string } /** * 钱包充值 - 查询订单状态 * 对应后端:POST /wallet/recharge/checkOrderState * 0:等待预下单, 1:预下未支付, 2:支付成功, 3:支付失败, 4:取消支付 */ export interface WalletRechargeOrderStateVo { /** 订单号 */ orderNo: string /** 订单状态 */ status: 0 | 1 | 2 | 3 | 4 /** 订单创建时间(时间戳,单位可能为 ms 或 s) */ createTime: number } // Wallet record (cursor pagination) // 对应后端:/wallet/record/goldCoin, /wallet/record/diamond, /wallet/record/bean /** * 钱包流水查询请求体 */ export interface WalletRecordDTO { /** 起始时间:yyyy-MM-dd */ beginDate?: string /** 结束时间:yyyy-MM-dd */ endDate?: string /** 游标分页参数 */ page: NextDTO } /** * 钱包流水记录项 */ export interface WalletRecordVo { /** 金额 */ amount: number /** 出入类型 1:收入,2:支出,3:结算 */ inOut: number /** 时间(时间戳) */ createAt: number /** 业务类型:30000... */ bizType: number /** 业务信息 */ data: Record } /** * 钱包流水 - 游标分页响应 */ export interface NextVOWalletRecordVo { /** 钱包流水 - 返回 */ list: WalletRecordVo[] /** 返回下一页的基准点 - 游标,NULL/空字符串 = 没有下一页 */ next: unknown } // Wallet withdraw real name auth // 对应后端:POST /wallet/withdraw/realNameAuth /** * 身份证信息 */ export interface IdCardInfoSub { /** 身份证编号 */ idNo: string /** 真实姓名 */ realName: string /** 身份证正面图片 */ idCardFrontImage: string /** 身份证背面图片 */ idCardBackImage: string } /** * 银行卡信息 */ export interface BankCardInfoSub { /** 银行卡号 */ bankNo: string /** 真实姓名 */ realName: string /** 银行名称 */ bankName: string /** 银行代码 */ bankCode: string } /** * 提现实名认证 - 请求参数 */ export interface WalletWithdrawRealNameAuthDTO { /** 身份证信息 */ idCard?: IdCardInfoSub /** 银行卡信息 */ bankCard?: BankCardInfoSub } /** * 提现实名认证 - 响应参数 */ export interface WalletWithdrawRealInfoAuthApplyVo { /** 身份证信息申请提交是否成功 */ idCardApply: boolean /** 银行卡信息申请提交是否成功 */ idBankCardApply: boolean } /** * 提现实名认证状态 * 0:没有信息,1:待审核,2:已实名,3:审核不通过 */ export type WalletWithdrawAuthState = 0 | 1 | 2 | 3 /** * 获得提现实名认证状态 - 响应参数 */ export interface WalletWithdrawRealInfoAuthStatusVo { /** 身份信息状态:0:没有身份信息,1:待审核,2:已实名,3:审核不通过 */ idCardState: WalletWithdrawAuthState /** 银行卡信息状态:0:没有银行卡信息,1:待审核,2:已实名,3:审核不通过 */ bankCardState: WalletWithdrawAuthState /** 身份证信息 */ idCardInfo?: IdCardInfoSub /** 银行卡信息 */ bankCardInfo?: BankCardInfoSub /** 身份证信息-审核备注 */ idCardReviewNotes?: string /** 银行卡信息-审核备注 */ bankReviewNotes?: string } // Wallet withdraw info // 对应后端:POST /wallet/withdraw/info export interface BaseWithdrawConfigBO { /** 币种 */ currency: string /** 最小提现金额(法币,如 IDR) */ minnum: number /** 固定手续费 */ feeAmount: number /** 手续费率 % */ feeRate: number /** 0:固定手续费,1:手续费率 */ feeType: 0 | 1 } export interface WalletWithdrawInfoVo { /** 金豆可用余额 */ availableBeanAmount: number /** 提现最小金豆数量 */ withdrawMinBeanAmount: number /** 配置 */ config: BaseWithdrawConfigBO } /** * 金豆提现计算 - 响应参数 * 对应后端:POST /wallet/withdraw/calculate */ export interface WalletWithdrawCalculateVo { /** IDR金额 */ amount: number /** IDR金额=实际提现所得 */ actualAmount: number /** 手续费金额 */ feeAmount: number } /** * 金豆提现申请提交 - 请求参数 * 对应后端:POST /wallet/withdraw/submit */ export interface WalletWithdrawApplyDTO { /** 要提现的金豆金额 */ amount: number }