refactor: 重构登陆模块
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { Treaty } from "@elysiajs/eden";
|
||||
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;
|
||||
@@ -51,3 +52,9 @@ export type RwaData = Treaty.Data<typeof client.api.rwa.subscription.available_e
|
||||
export type MySubscribeRwaData = Treaty.Data<typeof client.api.rwa.subscription.my_subscriptions.get>;
|
||||
|
||||
export type MySubscribeRwaBody = TreatyQuery<typeof client.api.rwa.subscription.my_subscriptions.get>;
|
||||
|
||||
export type PhoneNumberVerifyClient = TreatyBody<typeof authClient.phoneNumber.verify>;
|
||||
|
||||
export type UsernameClient = TreatyBody<typeof authClient.signIn.username>;
|
||||
|
||||
export type EmailVerifyClient = TreatyBody<typeof authClient.emailOtp.verifyEmail>;
|
||||
|
||||
Reference in New Issue
Block a user