添加获取登录验证码接口
This commit is contained in:
@@ -32,6 +32,8 @@ import type {
|
||||
OperatorRemarkInfoResponse,
|
||||
InputOperatorRemarkInfoAdd,
|
||||
OperatorRemarkInfoAddResponse,
|
||||
InputVerificationCodeImage,
|
||||
VerificationCodeImageResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -262,3 +264,16 @@ export const saveOperatorRemarkInfo = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取登录验证码(图片)
|
||||
*/
|
||||
export const getVerificationCodeImage = (
|
||||
data: InputVerificationCodeImage
|
||||
): Promise<VerificationCodeImageResponse> => {
|
||||
// 注意:此接口基础路径与其他 HIS 接口不同,直接使用 /api/auth
|
||||
return request.post<VerificationCodeImageResponse>(
|
||||
`/api/auth/verification-code/image`,
|
||||
data
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user