go-wxhelper-web/src/api/captcha.ts

18 lines
365 B
TypeScript
Raw Normal View History

2024-02-01 16:45:29 +08:00
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"
);
};