feat: 添加账单页面及相关组件,优化充值记录显示和国际化支持

This commit is contained in:
2025-12-22 22:40:18 +07:00
parent 5c4ec4f50d
commit 9ca9b33dfd
13 changed files with 203 additions and 25 deletions

View File

@@ -3,11 +3,6 @@ import type { client } from ".";
import type { AssetCodeEnum, PaymentChannelEnum, WithdrawMethodEnum } from "./enum";
import type { authClient } from "@/auth";
export type DepositFiatBody = Parameters<typeof client.api.deposit.fiat.post>[0] & {
paymentChannel: PaymentChannelEnum;
assetCode: AssetCodeEnum;
};
export type TreatyQuery<T> = T extends (...args: any[]) => any
? NonNullable<NonNullable<Parameters<T>[0]>["query"]>
: never;
@@ -25,6 +20,8 @@ export type WithdrawBody = Omit<Parameters<typeof client.api.withdraw.post>[0],
withdrawMethod: WithdrawMethodEnum;
};
export type DepositFiatBody = TreatyBody<typeof client.api.deposit.fiat.post>;
export type UserProfileData = Treaty.Data<typeof client.api.user.profile.get>;
export type UpdateUserProfileBody = TreatyBody<typeof client.api.user.profile.put>;
@@ -58,3 +55,7 @@ export type PhoneNumberVerifyClient = TreatyBody<typeof authClient.phoneNumber.v
export type UsernameClient = TreatyBody<typeof authClient.signIn.username>;
export type EmailVerifyClient = TreatyBody<typeof authClient.emailOtp.verifyEmail>;
export type UserDepositOrderData = Treaty.Data<typeof client.api.deposit.orders.get>["data"][number];
export type UserDepositOrderBody = TreatyQuery<typeof client.api.deposit.orders.get>;