feat: 添加账单页面及相关组件,优化充值记录显示和国际化支持
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user