添加获取登录验证码(手机号
This commit is contained in:
@@ -36,6 +36,8 @@ import type {
|
||||
VerificationCodeImageResponse,
|
||||
InputLoginByPassword,
|
||||
LoginByPasswordResponse,
|
||||
InputVerificationCodePhone,
|
||||
VerificationCodePhoneResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -291,3 +293,15 @@ export const loginByPassword = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取登录验证码(手机号)
|
||||
*/
|
||||
export const getVerificationCodePhone = (
|
||||
data: InputVerificationCodePhone
|
||||
): Promise<VerificationCodePhoneResponse> => {
|
||||
return request.post<VerificationCodePhoneResponse>(
|
||||
`/api/auth/verification-code/phone`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user