18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
import { http } from "@/utils/http";
|
|
import { BaseResponse } from "@/api/base";
|
|
|
|
export type ImageCaptchaResult = {
|
|
/** 验证码id */
|
|
id: string;
|
|
/** 验证码图片 */
|
|
img: string;
|
|
};
|
|
|
|
/** 获取验证码图片 */
|
|
export const getImgCaptcha = () => {
|
|
return http.request<BaseResponse<ImageCaptchaResult>>(
|
|
"get",
|
|
"/admin/v1/captcha/img"
|
|
);
|
|
};
|