feat: 添加法币充值页面,更新相关路由和组件,优化钱包卡片以支持充值功能
This commit is contained in:
9
src/api/enum.ts
Normal file
9
src/api/enum.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export enum PaymentChannelEnum {
|
||||
FIAT = "fiat",
|
||||
CRYPTO = "crypto",
|
||||
}
|
||||
|
||||
export enum AssetCodeEnum {
|
||||
USDT = "USDT",
|
||||
OPTS = "OPTS",
|
||||
}
|
||||
10
src/api/types.ts
Normal file
10
src/api/types.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Treaty } from "@elysiajs/eden";
|
||||
import type { client } from ".";
|
||||
import type { AssetCodeEnum, PaymentChannelEnum } from "./enum";
|
||||
|
||||
export type DepositFiatBody = Parameters<typeof client.api.asset.deposit.fiat.post>[0] & {
|
||||
paymentChannel: PaymentChannelEnum;
|
||||
assetCode: AssetCodeEnum;
|
||||
};
|
||||
|
||||
export type DepositFiatData = Treaty.Data<typeof client.api.asset.deposit.fiat.post>;
|
||||
Reference in New Issue
Block a user