/** @format */

import web from "@/utils/axios/web.ts";

/**
 * 获取验证码
 */
export const getCaptcha = () => {
	return web.request({
		url: "/auth/ReactRotateCaptcha/get",
		method: "get",
	});
};
/**
 * 验证验证码
 * @param data
 * @constructor
 */
export const VerfiyCaptcha = (data: any) => {
	return web.request({
		url: "/auth/ReactRotateCaptcha/verfiy",
		method: "post",
		headers: {
			"Content-Type": "application/json;charset=UTF-8",
		},
		data: data,
	});
};
