import { Login } from '@/api/interface/auth'; import http from '@/api'; export const loginApi = (params: Login.ReqLoginForm) => { return http.post(`/auth/login`, params); }; export const mfaLoginApi = (params: Login.MFALoginForm) => { return http.post(`/auth/mfalogin`, params); }; export const getCaptcha = () => { return http.get(`/auth/captcha`); }; export const logOutApi = () => { return http.post(`/auth/logout`); }; export const checkIsSafety = (code: string) => { return http.get(`/auth/issafety?code=${code}`); }; export const checkIsDemo = () => { return http.get('/auth/demo'); };