添加获取登录验证码接口
This commit is contained in:
@@ -32,6 +32,8 @@ import type {
|
|||||||
OperatorRemarkInfoResponse,
|
OperatorRemarkInfoResponse,
|
||||||
InputOperatorRemarkInfoAdd,
|
InputOperatorRemarkInfoAdd,
|
||||||
OperatorRemarkInfoAddResponse,
|
OperatorRemarkInfoAddResponse,
|
||||||
|
InputVerificationCodeImage,
|
||||||
|
VerificationCodeImageResponse,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -262,3 +264,16 @@ export const saveOperatorRemarkInfo = (
|
|||||||
).then(res => res.data);
|
).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);
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -530,3 +530,26 @@ export interface OutputOperatorRemarkInfoAdd {
|
|||||||
*/
|
*/
|
||||||
export type OperatorRemarkInfoAddResponse = CommonActionResult<OutputOperatorRemarkInfoAdd>;
|
export type OperatorRemarkInfoAddResponse = CommonActionResult<OutputOperatorRemarkInfoAdd>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取登录验证码(图片)入参
|
||||||
|
*/
|
||||||
|
export interface InputVerificationCodeImage {
|
||||||
|
/** 应用ID */
|
||||||
|
app_id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取登录验证码(图片)出参
|
||||||
|
*/
|
||||||
|
export interface OutputVerificationCodeImage {
|
||||||
|
/** 验证码标识键 */
|
||||||
|
verification_code_key: string;
|
||||||
|
/** 验证码图片(Base64 或图片地址) */
|
||||||
|
verification_code_image: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取登录验证码(图片)响应
|
||||||
|
*/
|
||||||
|
export type VerificationCodeImageResponse = CommonActionResult<OutputVerificationCodeImage>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user