添加登录(账号密码登录-图片验证码)接口
This commit is contained in:
@@ -34,6 +34,8 @@ import type {
|
||||
OperatorRemarkInfoAddResponse,
|
||||
InputVerificationCodeImage,
|
||||
VerificationCodeImageResponse,
|
||||
InputLoginByPassword,
|
||||
LoginByPasswordResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -277,3 +279,15 @@ export const getVerificationCodeImage = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 登录(账号密码登录-图片验证码)
|
||||
*/
|
||||
export const loginByPassword = (
|
||||
data: InputLoginByPassword
|
||||
): Promise<LoginByPasswordResponse> => {
|
||||
return request.post<LoginByPasswordResponse>(
|
||||
`/api/auth/login-by-password`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user