🐛 fix(user): Update user subscribe display
This commit is contained in:
@@ -25,6 +25,24 @@ export async function getApplication(options?: { [key: string]: any }) {
|
||||
});
|
||||
}
|
||||
|
||||
/** Check verification code POST /v1/common/check_verification_code */
|
||||
export async function checkVerificationCode(
|
||||
body: API.CheckVerificationCodeRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.CheckVerificationCodeRespone }>(
|
||||
'/v1/common/check_verification_code',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** Get verification code POST /v1/common/send_code */
|
||||
export async function sendEmailCode(body: API.SendCodeRequest, options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.SendCodeResponse }>('/v1/common/send_code', {
|
||||
|
||||
+12
@@ -121,6 +121,17 @@ declare namespace API {
|
||||
telephone: string;
|
||||
};
|
||||
|
||||
type CheckVerificationCodeRequest = {
|
||||
method: 'email' | 'mobile';
|
||||
account: string;
|
||||
code: string;
|
||||
type: number;
|
||||
};
|
||||
|
||||
type CheckVerificationCodeRespone = {
|
||||
status: boolean;
|
||||
};
|
||||
|
||||
type CloseOrderRequest = {
|
||||
orderNo: string;
|
||||
};
|
||||
@@ -910,6 +921,7 @@ declare namespace API {
|
||||
subscribe: Subscribe;
|
||||
start_time: number;
|
||||
expire_time: number;
|
||||
finished_at: number;
|
||||
reset_time: number;
|
||||
traffic: number;
|
||||
download: number;
|
||||
|
||||
Reference in New Issue
Block a user